Class TimeGraph
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.timegraph.TimeGraph
-
- All Implemented Interfaces:
Component
public class TimeGraph extends AbstractComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeGraph.EagerFetchingParameters
-
Field Summary
Fields Modifier and Type Field Description Event<Interval>onIntervalSelectedEvent<ZoomEventData>onZoomed-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
onDestroyed, onRendered
-
-
Constructor Summary
Constructors Constructor Description TimeGraph(TimeGraphModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLine(java.lang.String lineId, LineChartCurveType graphType, float dataDotRadius, org.teamapps.common.format.Color lineColor, org.teamapps.common.format.Color areaColor)voidaddLine(LineChartLine lineFormat)org.teamapps.dto.UiComponentcreateUiComponent()protected voiddoDestroy()Override this method to release resources whenever this component gets destroyedjava.util.function.Supplier<TimeGraph.EagerFetchingParameters>getEagerFetchingParametersSupplier()java.util.List<java.lang.String>getLineIds()intgetMaxPixelsBetweenDataPoints()LineChartMouseScrollZoomPanModegetMouseScrollZoomPanMode()IntervalgetSelectedInterval()voidhandleUiEvent(org.teamapps.dto.UiEvent event)voidrefresh()voidsetEagerFetchingParametersSupplier(java.util.function.Supplier<TimeGraph.EagerFetchingParameters> eagerFetchingParameterSupplier)voidsetLines(java.util.List<LineChartLine> lineFormats)voidsetMaxPixelsBetweenDataPoints(int maxPixelsBetweenDataPoints)voidsetModel(TimeGraphModel model)voidsetMouseScrollZoomPanMode(LineChartMouseScrollZoomPanMode mouseScrollZoomPanMode)voidsetSelectedInterval(Interval selectedInterval)-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponentReference, destroy, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, setVisible, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.Component
setCssStyle
-
-
-
-
Field Detail
-
onZoomed
public final Event<ZoomEventData> onZoomed
-
-
Constructor Detail
-
TimeGraph
public TimeGraph(TimeGraphModel model)
-
-
Method Detail
-
addLine
public void addLine(java.lang.String lineId, LineChartCurveType graphType, float dataDotRadius, org.teamapps.common.format.Color lineColor, org.teamapps.common.format.Color areaColor)
-
addLine
public void addLine(LineChartLine lineFormat)
-
setLines
public void setLines(java.util.List<LineChartLine> lineFormats)
-
getLineIds
public java.util.List<java.lang.String> getLineIds()
-
createUiComponent
public org.teamapps.dto.UiComponent createUiComponent()
- Specified by:
createUiComponentin classAbstractComponent
-
doDestroy
protected void doDestroy()
Description copied from class:AbstractComponentOverride this method to release resources whenever this component gets destroyed- Overrides:
doDestroyin classAbstractComponent
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)
-
refresh
public void refresh()
-
getMaxPixelsBetweenDataPoints
public int getMaxPixelsBetweenDataPoints()
-
setMaxPixelsBetweenDataPoints
public void setMaxPixelsBetweenDataPoints(int maxPixelsBetweenDataPoints)
-
getMouseScrollZoomPanMode
public LineChartMouseScrollZoomPanMode getMouseScrollZoomPanMode()
-
setMouseScrollZoomPanMode
public void setMouseScrollZoomPanMode(LineChartMouseScrollZoomPanMode mouseScrollZoomPanMode)
-
getSelectedInterval
public Interval getSelectedInterval()
-
setSelectedInterval
public void setSelectedInterval(Interval selectedInterval)
-
setModel
public void setModel(TimeGraphModel model)
-
setEagerFetchingParametersSupplier
public void setEagerFetchingParametersSupplier(java.util.function.Supplier<TimeGraph.EagerFetchingParameters> eagerFetchingParameterSupplier)
-
getEagerFetchingParametersSupplier
public java.util.function.Supplier<TimeGraph.EagerFetchingParameters> getEagerFetchingParametersSupplier()
-
-