Class JFreeChartVisualizationInput
- java.lang.Object
-
- org.palladiosimulator.commons.designpatterns.AbstractObservable<IVisualisationInputListener>
-
- org.palladiosimulator.edp2.visualization.AbstractInput
-
- org.palladiosimulator.edp2.visualization.AbstractVisualizationInput<JFreeChartVisualizationSingleDatastreamInput>
-
- org.palladiosimulator.edp2.visualization.jfreechart.input.JFreeChartVisualizationInput
-
- All Implemented Interfaces:
IAdaptable
,ISelection
,IEditorInput
,IPersistable
,IPersistableElement
,org.palladiosimulator.commons.designpatterns.IAbstractObservable<IVisualisationInputListener>
,IPropertyConfigurable
,IVisualisationInput<JFreeChartVisualizationSingleDatastreamInput>
- Direct Known Subclasses:
AbstractXYVisualizationInput
,PieChartVisualizationInput
public abstract class JFreeChartVisualizationInput extends AbstractVisualizationInput<JFreeChartVisualizationSingleDatastreamInput>
Implementation of anAbstractVisualizationInput
forJFreeChartVisualizationSingleDatastreamInput
s.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.edp2.visualization.AbstractVisualizationInput
inputs
-
-
Constructor Summary
Constructors Constructor Description JFreeChartVisualizationInput()
Empty constructor.JFreeChartVisualizationInput(JFreeChartVisualizationSingleDatastreamInput firstInput)
Constructor with a first input.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
configureSeriesColors(org.jfree.chart.renderer.AbstractRenderer renderer)
org.jfree.chart.JFreeChart
createChart()
Creates a newJFreeChart
.protected PropertyConfigurable
createConfiguration()
JFreeChartVisualizationSingleDatastreamInput
createNewInput(IDataSource source)
boolean
exists()
protected abstract org.jfree.data.general.AbstractDataset
generateDataset()
protected abstract org.jfree.chart.plot.Plot
generatePlot(PropertyConfigurable config, org.jfree.data.general.AbstractDataset dataset)
protected String
getAxisDefaultLabel(int pos)
ImageDescriptor
getImageDescriptor()
String
getName()
IPersistableElement
getPersistable()
String
getToolTipText()
boolean
isEmpty()
void
reloadData()
void
saveState(IMemento memento)
-
Methods inherited from class org.palladiosimulator.edp2.visualization.AbstractVisualizationInput
addInput, canAccept, firstChildInputAdded, getInputs, removeInput
-
Methods inherited from class org.palladiosimulator.edp2.visualization.AbstractInput
getAdapter, getConfiguration, getDefaultConfiguration, getKeys, getProperties, getPropertyKeysTriggeringUpdate, getPropertyType, isPropertyNotSet, setProperties, unsetProperty
-
Methods inherited from class org.palladiosimulator.commons.designpatterns.AbstractObservable
addObserver, getEventDispatcher, getObservers, removeAllObserver, removeObserver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.palladiosimulator.commons.designpatterns.IAbstractObservable
addObserver, removeObserver
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Methods inherited from interface org.eclipse.ui.IPersistableElement
getFactoryId
-
Methods inherited from interface org.palladiosimulator.edp2.visualization.IVisualisationInput
getConfiguration
-
-
-
-
Constructor Detail
-
JFreeChartVisualizationInput
public JFreeChartVisualizationInput()
Empty constructor.
-
JFreeChartVisualizationInput
public JFreeChartVisualizationInput(JFreeChartVisualizationSingleDatastreamInput firstInput)
Constructor with a first input.
-
-
Method Detail
-
createNewInput
public JFreeChartVisualizationSingleDatastreamInput createNewInput(IDataSource source)
-
exists
public boolean exists()
-
getImageDescriptor
public ImageDescriptor getImageDescriptor()
-
getName
public String getName()
-
getPersistable
public IPersistableElement getPersistable()
-
getToolTipText
public String getToolTipText()
-
isEmpty
public boolean isEmpty()
-
saveState
public void saveState(IMemento memento)
-
createChart
public final org.jfree.chart.JFreeChart createChart()
Creates a newJFreeChart
. Charts are specific for each EditorInput. Typically an update of the current DataSet is recommended, before the chart itself is updated.
-
reloadData
public void reloadData()
-
getAxisDefaultLabel
protected String getAxisDefaultLabel(int pos)
-
configureSeriesColors
protected void configureSeriesColors(org.jfree.chart.renderer.AbstractRenderer renderer)
- Parameters:
renderer
-
-
createConfiguration
protected PropertyConfigurable createConfiguration()
- Specified by:
createConfiguration
in classAbstractInput
-
generatePlot
protected abstract org.jfree.chart.plot.Plot generatePlot(PropertyConfigurable config, org.jfree.data.general.AbstractDataset dataset)
-
generateDataset
protected abstract org.jfree.data.general.AbstractDataset generateDataset()
-
-