Klasse AggregatingLineGraphModel
java.lang.Object
org.teamapps.ux.component.timegraph.model.AbstractLineGraphModel
org.teamapps.ux.component.timegraph.model.AggregatingLineGraphModel
- Alle implementierten Schnittstellen:
GraphModel<LineGraphData>,LineGraphModel
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAggregatingLineGraphModel(LineGraphData graphData, AggregationType aggregationType) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic LineGraphDatagetAggregateDataPoints(LineGraphData dataPoints, TimePartitioning zoomLevel, Interval alignedInterval, AggregationType aggregationType, ZoneId timeZone, boolean addDataPointBeforeAndAfterQueryResult) getData(TimePartitioning zoomLevel, ZoneId zoneId, Interval neededIntervalX, Interval displayedInterval) Retrieves graph data (GraphData) for the specifiedzoomLeveland {cod@ neededInterval}.booleanvoidsetAddDataPointBeforeAndAfterQueryResult(boolean addDataPointBeforeAndAfterQueryResult) voidsetAggregationPolicy(AggregationType aggregationType) voidsetGraphData(LineGraphData graphData) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.teamapps.ux.component.timegraph.model.GraphModel
onDataChanged
-
Felddetails
-
onDataChanged
-
-
Konstruktordetails
-
AggregatingLineGraphModel
public AggregatingLineGraphModel() -
AggregatingLineGraphModel
-
-
Methodendetails
-
setGraphData
-
setAggregationPolicy
-
getData
public LineGraphData getData(TimePartitioning zoomLevel, ZoneId zoneId, Interval neededIntervalX, Interval displayedInterval) Beschreibung aus Schnittstelle kopiert:GraphModelRetrieves graph data (GraphData) for the specifiedzoomLeveland {cod@ neededInterval}.The model MAY choose return more data than needed, covering a larger interval than requested.
However, the result MUST at least coverneededInterval!
If the model delegates to multiple sub-models for different graphs, its aggregatedGraphDataobject should use the intersection of the sub-model'sGraphData.getInterval()as its ownGraphData.getInterval().- Parameter:
zoomLevel- the requested zoom levelzoneId- the zoneId to apply when partitioning over timeneededIntervalX- the time interval requested by the clientdisplayedInterval- the time interval displayed by the client- Gibt zurück:
- graph data
-
getAggregateDataPoints
public static LineGraphData getAggregateDataPoints(LineGraphData dataPoints, TimePartitioning zoomLevel, Interval alignedInterval, AggregationType aggregationType, ZoneId timeZone, boolean addDataPointBeforeAndAfterQueryResult) -
getDomainX
-
isAddDataPointBeforeAndAfterQueryResult
public boolean isAddDataPointBeforeAndAfterQueryResult() -
setAddDataPointBeforeAndAfterQueryResult
public void setAddDataPointBeforeAndAfterQueryResult(boolean addDataPointBeforeAndAfterQueryResult) -
onDataChanged
- Angegeben von:
onDataChangedin SchnittstelleGraphModel<D extends GraphData>
-