Class MatrixChartRenderer
- java.lang.Object
-
- org.nuiton.math.matrix.viewer.renderer.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 Summary
Fields Modifier and Type Field Description protected org.jfree.chart.JFreeChart
chart
protected JComboBox
chartRendererComboBox
-
Constructor Summary
Constructors Constructor Description MatrixChartRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jfree.chart.axis.CategoryAxis
getCategoryAxis(MatrixND matrix)
Abscisse (nom + valeur à la verticale).protected org.jfree.data.category.CategoryDataset
getCategoryDataset(MatrixND matrix)
JFreechart data model.protected org.jfree.chart.plot.CategoryPlot
getCategoryPlot(MatrixND matrix)
Category plot.protected org.jfree.chart.ChartPanel
getChartPanel(org.jfree.chart.JFreeChart chart)
Build jfreechart panel.protected JComboBox
getChartRendererComboBox()
Chart renderers combo box.Component
getComponent(MatrixND matrix)
Renderer component for matrix.Icon
getIcon()
Renderer icon (used inMatrixRendererSolution.ICON
rendering).protected org.jfree.chart.JFreeChart
getJFreeChart(MatrixND matrix)
Build chart.protected JPanel
getJFreeChartPanel(MatrixND matrix)
String
getName()
Renderer name (used inMatrixRendererSolution.RADIO_BUTTON
rendering).protected org.jfree.chart.axis.ValueAxis
getValueAxis(MatrixND matrix)
Ordonnées (valeur seule).
-
-
-
Field Detail
-
chartRendererComboBox
protected JComboBox chartRendererComboBox
-
chart
protected org.jfree.chart.JFreeChart chart
-
-
Method Detail
-
getComponent
public Component getComponent(MatrixND matrix)
Description copied from interface:MatrixRenderer
Renderer component for matrix.- Specified by:
getComponent
in interfaceMatrixRenderer
- Parameters:
matrix
- matrix to display (can be null with default rendering support)- Returns:
- component
- See Also:
MatrixViewerPanel.addMatrixRenderer(MatrixRenderer, boolean)
-
getIcon
public Icon getIcon()
Description copied from interface:MatrixRenderer
Renderer icon (used inMatrixRendererSolution.ICON
rendering).- Specified by:
getIcon
in interfaceMatrixRenderer
- Returns:
- plugin icon
-
getName
public String getName()
Description copied from interface:MatrixRenderer
Renderer name (used inMatrixRendererSolution.RADIO_BUTTON
rendering).- Specified by:
getName
in interfaceMatrixRenderer
- Returns:
- plugin name
-
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
-
-