Class MatrixChartRenderer

  • All Implemented Interfaces:
    MatrixRenderer

    public class MatrixChartRenderer
    extends Object
    implements MatrixRenderer
    Matrix chart renderer (based on jfreechart).
    Version:
    $Revision$ Last update : $Date$ By : $Author$
    Author:
    chatellier
    • Field Detail

      • chartRendererComboBox

        protected JComboBox chartRendererComboBox
      • chart

        protected org.jfree.chart.JFreeChart chart
    • Constructor Detail

      • MatrixChartRenderer

        public MatrixChartRenderer()
    • Method Detail

      • getJFreeChartPanel

        protected JPanel getJFreeChartPanel​(MatrixND matrix)
      • getChartRendererComboBox

        protected JComboBox getChartRendererComboBox()
        Chart renderers combo box.
        Returns:
        chart renderers combo box
        See Also:
        CategoryItemRenderer
      • getCategoryDataset

        protected org.jfree.data.category.CategoryDataset getCategoryDataset​(MatrixND matrix)
        JFreechart data model.
        Parameters:
        matrix -
        Returns:
        jfreechart data model
        See Also:
        CategoryDataset
      • getCategoryAxis

        protected org.jfree.chart.axis.CategoryAxis getCategoryAxis​(MatrixND matrix)
        Abscisse (nom + valeur à la verticale).
        Parameters:
        matrix -
        Returns:
        category axis
      • getValueAxis

        protected org.jfree.chart.axis.ValueAxis getValueAxis​(MatrixND matrix)
        Ordonnées (valeur seule).
        Parameters:
        matrix -
        Returns:
        value axis
      • getCategoryPlot

        protected org.jfree.chart.plot.CategoryPlot getCategoryPlot​(MatrixND matrix)
        Category plot.
        Parameters:
        matrix -
        Returns:
        category plot
      • getJFreeChart

        protected org.jfree.chart.JFreeChart getJFreeChart​(MatrixND matrix)
        Build chart.
        Returns:
        chart
      • getChartPanel

        protected org.jfree.chart.ChartPanel getChartPanel​(org.jfree.chart.JFreeChart chart)
        Build jfreechart panel.
        Parameters:
        chart - chart to render
        Returns:
        chart panel