Class HistogramQuery
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuery
com.inductiveautomation.factorypmi.application.components.chart.easychart.HistogramQuery
- All Implemented Interfaces:
- IHistogramDatasource,- IPenDatasource,- IQueryResponseListener
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQueryAbstractSQLQuery.QueryInfo
- 
Field SummaryFields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuerydatasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeColFields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuerybadQuality, chart, data, log, showWarnings
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a pen to this datasource.The underlying dataset that drives this datasourceintReturn the number of datapoints currently loaded in this sourceprotected AbstractSQLQuery.QueryInfoConstruct the query and any parametersvoidGives the datasource a chance to install references to other pensbooleanisDataIn()booleanTrue if this datasource should be restarted when the zoom level changes.protected ObjectregisterQuery(int pollTime, boolean runOnce) Register this query with the QueryManager.protected voidprotected voidsetDates(PMIEasyChart chart) Called in order to set theAbstractSQLQuery.startDateandAbstractSQLQuery.endDatefields with proper late-binding IValue implementations.voidstartup(PMIEasyChart chart) Start this datasouce up.Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuerygenerateWhereAndOrder, getDatasource, getGroupName, getPenWhere, getQuasiPropertyName, getTableName, getTimeCol, setChart, setDatasource, setGlobalWhere, setGroupName, setGroupWhere, setPenWhere, setTableName, setTimeCol, toStringMethods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuerygetData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, warnMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.factorypmi.application.components.chart.easychart.IPenDatasourceshutdown
- 
Constructor Details- 
HistogramQuery
 
- 
- 
Method Details- 
getWholeQueryDescription copied from class:AbstractSQLQueryConstruct the query and any parameters- Specified by:
- getWholeQueryin class- AbstractSQLQuery
 
- 
registerQueryDescription copied from class:AbstractChartQueryRegister this query with the QueryManager. Called by AbstractchartQuery duringAbstractChartQuery.startup(PMIEasyChart)- Overrides:
- registerQueryin class- AbstractSQLQuery
- Returns:
- The key object that the query manager gave back.
 
- 
setDatesDescription copied from class:AbstractSQLQueryCalled in order to set theAbstractSQLQuery.startDateandAbstractSQLQuery.endDatefields with proper late-binding IValue implementations.- Specified by:
- setDatesin class- AbstractSQLQuery
 
- 
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
- Overrides:
- startupin class- AbstractChartQuery
 
- 
setData- Overrides:
- setDatain class- AbstractChartQuery
 
- 
getHistogram- Specified by:
- getHistogramin interface- IHistogramDatasource
 
- 
isDataInpublic boolean isDataIn()
- 
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
 
- 
initRefsDescription copied from interface:IPenDatasourceGives the datasource a chance to install references to other pens- Specified by:
- initRefsin interface- IPenDatasource
 
- 
getNumDatapointspublic int getNumDatapoints()Description copied from interface:IPenDatasourceReturn the number of datapoints currently loaded in this source- Specified by:
- getNumDatapointsin interface- IPenDatasource
 
- 
getDatasetDescription copied from interface:IPenDatasourceThe underlying dataset that drives this datasource- Specified by:
- getDatasetin interface- IPenDatasource
 
- 
isZoomTrackingpublic boolean isZoomTracking()Description copied from interface:IPenDatasourceTrue if this datasource should be restarted when the zoom level changes.- Specified by:
- isZoomTrackingin interface- IPenDatasource
 
 
-