Class AbstractFunctionPenDatasource
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
-
- com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasource
-
- All Implemented Interfaces:
IPenDatasource
,java.util.EventListener
,javax.swing.event.ChangeListener
- Direct Known Subclasses:
LinearRegressionPenDatasource
,MovingAveragePenDatasource
,MultiplyPenDatasource
,RunningSumPenDatasource
,SpcPenDatasource
,SumDiffPenDatasource
public abstract class AbstractFunctionPenDatasource extends AbstractCalculatedPenDatasource implements javax.swing.event.ChangeListener
Base class for all calculated pen datasources that are functions of another pen
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,PenData>
referencedPens
-
Constructor Summary
Constructors Constructor Description AbstractFunctionPenDatasource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Dataset
createDataset()
Called when the dataset needs to be re-calculatedvoid
initRefs(java.util.Map<java.lang.String,PenData> allPens)
Gives the datasource a chance to install references to other pensvoid
stateChanged(javax.swing.event.ChangeEvent e)
Implements ChangeListener, used to listen to the referenced pens' PenData objects-
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
addPen, getDataset, getMillisRange, getNumDatapoints, isZoomTracking, setDataset, setDatasetLater, shutdown, startup, warn
-
-
-
-
Field Detail
-
referencedPens
protected java.util.Map<java.lang.String,PenData> referencedPens
-
-
Method Detail
-
initRefs
public void initRefs(java.util.Map<java.lang.String,PenData> allPens)
Description copied from interface:IPenDatasource
Gives the datasource a chance to install references to other pens- Specified by:
initRefs
in interfaceIPenDatasource
- Overrides:
initRefs
in classAbstractCalculatedPenDatasource
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
Implements ChangeListener, used to listen to the referenced pens' PenData objects- Specified by:
stateChanged
in interfacejavax.swing.event.ChangeListener
-
createDataset
protected abstract Dataset createDataset()
Called when the dataset needs to be re-calculated
-
-