public class HistogramQuery extends AbstractSQLQuery implements IHistogramDatasource
AbstractSQLQuery.QueryInfo
datasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeCol
badQuality, chart, data, log, showWarnings
Constructor and Description |
---|
HistogramQuery(java.lang.String datasource,
java.lang.String tableName,
java.lang.String timeCol) |
Modifier and Type | Method and Description |
---|---|
void |
addPen(PenData penData)
Adds a pen to this datasource.
|
Dataset |
getDataset()
The underlying dataset that drives this datasource
|
IHistogram |
getHistogram() |
int |
getNumDatapoints()
Return the number of datapoints currently loaded in this source
|
protected AbstractSQLQuery.QueryInfo |
getWholeQuery()
Construct the query and any parameters
|
void |
initRefs(java.util.Map<java.lang.String,PenData> allPens)
Gives the datasource a chance to install references to other pens
|
boolean |
isDataIn() |
boolean |
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) |
protected void |
setDates(PMIEasyChart chart)
Called in order to set the
AbstractSQLQuery.startDate and AbstractSQLQuery.endDate fields with proper late-binding IValue
implementations. |
void |
startup(PMIEasyChart chart)
Start this datasouce up.
|
generateWhereAndOrder, getDatasource, getGroupName, getPenWhere, getQuasiPropertyName, getTableName, getTimeCol, setChart, setDatasource, setGlobalWhere, setGroupName, setGroupWhere, setPenWhere, setTableName, setTimeCol, toString
getData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
shutdown
public HistogramQuery(java.lang.String datasource, java.lang.String tableName, java.lang.String timeCol)
protected AbstractSQLQuery.QueryInfo getWholeQuery()
AbstractSQLQuery
getWholeQuery
in class AbstractSQLQuery
protected java.lang.Object registerQuery(int pollTime, boolean runOnce)
AbstractChartQuery
AbstractChartQuery.startup(PMIEasyChart)
registerQuery
in class AbstractSQLQuery
protected void setDates(PMIEasyChart chart)
AbstractSQLQuery
AbstractSQLQuery.startDate
and AbstractSQLQuery.endDate
fields with proper late-binding IValue
implementations.setDates
in class AbstractSQLQuery
public void startup(PMIEasyChart chart)
IPenDatasource
startup
in interface IPenDatasource
startup
in class AbstractChartQuery
protected void setData(Dataset data)
setData
in class AbstractChartQuery
public IHistogram getHistogram()
getHistogram
in interface IHistogramDatasource
public boolean isDataIn()
public void addPen(PenData penData)
IPenDatasource
addPen
in interface IPenDatasource
public void initRefs(java.util.Map<java.lang.String,PenData> allPens)
IPenDatasource
initRefs
in interface IPenDatasource
public int getNumDatapoints()
IPenDatasource
getNumDatapoints
in interface IPenDatasource
public Dataset getDataset()
IPenDatasource
getDataset
in interface IPenDatasource
public boolean isZoomTracking()
IPenDatasource
isZoomTracking
in interface IPenDatasource