Class DelegatingHoseModel
- java.lang.Object
-
- org.teamapps.ux.component.timegraph.model.AbstractHoseGraphModel
-
- org.teamapps.ux.component.timegraph.model.DelegatingHoseModel
-
- All Implemented Interfaces:
GraphModel<HoseGraphData>,HoseGraphModel
public class DelegatingHoseModel extends AbstractHoseGraphModel
-
-
Field Summary
Fields Modifier and Type Field Description Event<java.lang.Void>onDataChanged
-
Constructor Summary
Constructors Constructor Description DelegatingHoseModel(GraphModel<LineGraphData> minModel, GraphModel<LineGraphData> maxModel)DelegatingHoseModel(GraphModel<LineGraphData> minModel, GraphModel<LineGraphData> avgModel, GraphModel<LineGraphData> maxModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HoseGraphDatagetData(TimePartitioning zoomLevel, java.time.ZoneId zoneId, Interval neededInterval, Interval displayedInterval)Retrieves graph data (GraphData) for the specifiedzoomLeveland {cod@ neededInterval}.IntervalgetDomainX()Event<java.lang.Void>onDataChanged()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.timegraph.model.GraphModel
onDataChanged
-
-
-
-
Field Detail
-
onDataChanged
public final Event<java.lang.Void> onDataChanged
-
-
Constructor Detail
-
DelegatingHoseModel
public DelegatingHoseModel(GraphModel<LineGraphData> minModel, GraphModel<LineGraphData> avgModel, GraphModel<LineGraphData> maxModel)
-
DelegatingHoseModel
public DelegatingHoseModel(GraphModel<LineGraphData> minModel, GraphModel<LineGraphData> maxModel)
-
-
Method Detail
-
getDomainX
public Interval getDomainX()
-
getData
public HoseGraphData getData(TimePartitioning zoomLevel, java.time.ZoneId zoneId, Interval neededInterval, Interval displayedInterval)
Description copied from interface: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().- Parameters:
zoomLevel- the requested zoom levelzoneId- the zoneId to apply when partitioning over timeneededInterval- the time interval requested by the clientdisplayedInterval- the time interval displayed by the client- Returns:
- graph data
-
onDataChanged
public Event<java.lang.Void> onDataChanged()
- Specified by:
onDataChangedin interfaceGraphModel<D extends GraphData>
-
-