| Modifier and Type | Field and Description |
|---|---|
private org.apache.log4j.Logger |
logger |
private IPlotPanel |
plotPanel
The current
PlotPanel instance to control. |
| Modifier | Constructor and Description |
|---|---|
private |
Plot() |
| Modifier and Type | Method and Description |
|---|---|
static IPlot |
getInstance() |
IPlotPanel |
getPlotPanel()
Gets the current
PlotPanel instance. |
boolean |
isEmpty()
Returns whether or not the panel currently displays an item.
|
void |
reset()
Resets the plot panel.
|
void |
setChartData(org.jfree.chart.ChartPanel chartPanel,
ChartType type)
Sets new data to the
PlotPanel. |
void |
setNewData(List<PlotModel> plotModels,
ChartType type)
Sets new data to the
PlotPanel. |
void |
setNewData(PlotModel plotModel,
ChartType type)
Sets new data to the
PlotPanel. |
void |
setPlotPanel(IPlotPanel arg)
Sets the
PlotPanel instance to control. |
private void |
updateMainFrameTitle(boolean multiSelection) |
private final org.apache.log4j.Logger logger
private IPlotPanel plotPanel
PlotPanel instance to control.public static IPlot getInstance()
public IPlotPanel getPlotPanel()
PlotPanel instance.getPlotPanel in interface IPlotpublic void setPlotPanel(IPlotPanel arg)
PlotPanel instance to control.setPlotPanel in interface IPlotarg - public void setNewData(List<PlotModel> plotModels, ChartType type)
PlotPanel. The meta information of the first
PlotModel in the array is taken as the description of the graph
(x,y-axes, domain and range units, etc.). All plot models are computed in
a single XY line chart on the fly.setNewData in interface IPlotplotModels - can be 1...n plot modelstype - the type of the chart to be displayedfor setting a single model to the
viewpublic void setNewData(PlotModel plotModel, ChartType type)
PlotPanel.setNewData in interface IPlotplotModel - one single plot modeltype - the type of the chart to be displayedfor setting multiple models to the viewpublic void setChartData(org.jfree.chart.ChartPanel chartPanel,
ChartType type)
PlotPanel.setChartData in interface IPlotchartPanel - an already constructed ChartPanel, e.g. a histogramtype - the type of the chart to be displayedfor setting multiple models to the viewpublic boolean isEmpty()
private void updateMainFrameTitle(boolean multiSelection)
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.