Class AbstractCalculatedPenDatasource
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
- All Implemented Interfaces:
- IPenDatasource
- Direct Known Subclasses:
- AbstractFunctionPenDatasource,- ConstantPenDatasource
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a pen to this datasource.The underlying dataset that drives this datasourceprotected longgetMillisRange(PenData source) Returns the range of millis between the first and last points in the given pen datasetintReturn the number of datapoints currently loaded in this sourcevoidGives the datasource a chance to install references to other pensbooleanTrue if this datasource should be restarted when the zoom level changes.protected voidsetDataset(Dataset dataset) protected voidsetDatasetLater(Dataset dataset) voidshutdown()Shuts this datasoure down, if it has re-occurring activity.voidstartup(PMIEasyChart chart) Start this datasouce up.protected void
- 
Field Details- 
dataset
- 
pens
- 
datasets
- 
chart
- 
startDateThe starting date of the chart. Set instartup(PMIEasyChart)
- 
endDateThe configured end date. May be null - this means "up to current time". Set instartup(PMIEasyChart)
- 
log
 
- 
- 
Constructor Details- 
AbstractCalculatedPenDatasourceprotected AbstractCalculatedPenDatasource()
 
- 
- 
Method Details- 
addPenDescription copied from interface:IPenDatasourceAdds a pen to this datasource. All pens will be added before startup() is called for the first time.- Specified by:
- addPenin interface- IPenDatasource
 
- 
getDatasetDescription copied from interface:IPenDatasourceThe underlying dataset that drives this datasource- Specified by:
- getDatasetin interface- IPenDatasource
 
- 
setDataset
- 
setDatasetLater
- 
getNumDatapointspublic int getNumDatapoints()Description copied from interface:IPenDatasourceReturn the number of datapoints currently loaded in this source- Specified by:
- getNumDatapointsin interface- IPenDatasource
 
- 
getMillisRangeReturns the range of millis between the first and last points in the given pen dataset
- 
initRefsDescription copied from interface:IPenDatasourceGives the datasource a chance to install references to other pens- Specified by:
- initRefsin interface- IPenDatasource
 
- 
shutdownpublic void shutdown()Description copied from interface:IPenDatasourceShuts this datasoure down, if it has re-occurring activity.- Specified by:
- shutdownin interface- IPenDatasource
 
- 
startupDescription copied from interface:IPenDatasourceStart this datasouce up. This should certainly mean that the data gets generated at least once, and possibly more based upon the chart's polling settings. May be called again after shutdown().- Specified by:
- startupin interface- IPenDatasource
 
- 
warn
- 
isZoomTrackingpublic boolean isZoomTracking()Description copied from interface:IPenDatasourceTrue if this datasource should be restarted when the zoom level changes.- Specified by:
- isZoomTrackingin interface- IPenDatasource
 
 
-