Class TagDensityHistogramSource
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
-
- com.inductiveautomation.factorypmi.application.components.chart.easychart.TagDensityHistogramSource
-
- All Implemented Interfaces:
IHistogramDatasource
,IPenDatasource
,IQueryResponseListener
public class TagDensityHistogramSource extends AbstractChartQuery implements IHistogramDatasource
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
badQuality, chart, data, log, showWarnings
-
-
Constructor Summary
Constructors Constructor Description TagDensityHistogramSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPen(PenData penData)
Adds a pen to this datasource.Dataset
getDataset()
The underlying dataset that drives this datasourceIHistogram
getHistogram()
int
getNumDatapoints()
Return the number of datapoints currently loaded in this sourceprotected java.lang.String
getQuasiPropertyName()
Generate a unique string for the query, independent of any values that may change (date ranges, for example.) Used as the "property key" for the quality system in case the query fails.void
initRefs(java.util.Map<java.lang.String,PenData> allPens)
Gives the datasource a chance to install references to other pensboolean
isZoomTracking()
True if this datasource should be restarted when the zoom level changes.protected java.lang.Object
registerQuery(int pollTime, boolean runOnce)
Register this query with the QueryManager.protected void
setData(Dataset data)
-
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
getData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, setChart, shutdown, startup, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.components.chart.easychart.IPenDatasource
shutdown, startup
-
-
-
-
Method Detail
-
addPen
public void addPen(PenData penData)
Description copied from interface:IPenDatasource
Adds a pen to this datasource. All pens will be added before startup() is called for the first time.- Specified by:
addPen
in interfaceIPenDatasource
-
getHistogram
public IHistogram getHistogram()
- Specified by:
getHistogram
in interfaceIHistogramDatasource
-
registerQuery
protected java.lang.Object registerQuery(int pollTime, boolean runOnce)
Description copied from class:AbstractChartQuery
Register this query with the QueryManager. Called by AbstractchartQuery duringAbstractChartQuery.startup(PMIEasyChart)
- Specified by:
registerQuery
in classAbstractChartQuery
- Returns:
- The key object that the query manager gave back.
-
setData
protected void setData(Dataset data)
- Overrides:
setData
in classAbstractChartQuery
-
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
-
getNumDatapoints
public int getNumDatapoints()
Description copied from interface:IPenDatasource
Return the number of datapoints currently loaded in this source- Specified by:
getNumDatapoints
in interfaceIPenDatasource
-
getDataset
public Dataset getDataset()
Description copied from interface:IPenDatasource
The underlying dataset that drives this datasource- Specified by:
getDataset
in interfaceIPenDatasource
-
isZoomTracking
public boolean isZoomTracking()
Description copied from interface:IPenDatasource
True if this datasource should be restarted when the zoom level changes.- Specified by:
isZoomTracking
in interfaceIPenDatasource
-
getQuasiPropertyName
protected java.lang.String getQuasiPropertyName()
Description copied from class:AbstractChartQuery
Generate a unique string for the query, independent of any values that may change (date ranges, for example.) Used as the "property key" for the quality system in case the query fails.- Specified by:
getQuasiPropertyName
in classAbstractChartQuery
-
-