Class SumDiffPenDatasource
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
- 
- com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasource
- 
- com.inductiveautomation.factorypmi.application.components.chart.easychart.SumDiffPenDatasource
 
 
 
- 
- All Implemented Interfaces:
- IPenDatasource,- java.util.EventListener,- javax.swing.event.ChangeListener
 
 public class SumDiffPenDatasource extends AbstractFunctionPenDatasource Filename - SumPensDatasource Author: Perry Arellano-Jones Year: 2014This datasource adds or subtracts the value of two pens and returns a dataset of the result. It requires two pens to be specified, a 'driving' Pen and a 'secondary' pen. Results are derived by adding to or subtracting from to the driving Pen. Utilizes the PenAttribute#FUNCTION_PARAM to determine whether summation or negation is done on the driving pen. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSumDiffPenDatasource.SumDiffPenFunctionFactory
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringDIFFstatic java.lang.StringSUM- 
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasourcereferencedPens
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DatasetcreateDataset()Called when the dataset needs to be re-calculatedvoidinitRefs(java.util.Map<java.lang.String,PenData> allPens)Gives the datasource a chance to install references to other pens- 
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasourcestateChanged
 - 
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasourceaddPen, getDataset, getMillisRange, getNumDatapoints, isZoomTracking, setDataset, setDatasetLater, shutdown, startup, warn
 
- 
 
- 
- 
- 
Field Detail- 
SUMpublic static final java.lang.String SUM - See Also:
- Constant Field Values
 
 - 
DIFFpublic static final java.lang.String DIFF - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createDatasetprotected Dataset createDataset() Description copied from class:AbstractFunctionPenDatasourceCalled when the dataset needs to be re-calculated- Specified by:
- createDatasetin class- AbstractFunctionPenDatasource
 
 - 
initRefspublic void initRefs(java.util.Map<java.lang.String,PenData> allPens) Description copied from interface:IPenDatasourceGives the datasource a chance to install references to other pens- Specified by:
- initRefsin interface- IPenDatasource
- Overrides:
- initRefsin class- AbstractFunctionPenDatasource
 
 
- 
 
-