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
-
Field Summary
Fields Modifier and Type Field Description Event<Interval>onIntervalSelectedEvent<ZoomEventData>onZoomed -
Constructor Summary
Constructors Constructor Description TimeGraph(TimeGraphModel model) -
Method Summary
Modifier and Type Method Description voidaddDataDisplay(AbstractLineChartDataDisplay lineFormat)voidaddLine(java.lang.String dataSeriesId, LineChartCurveType graphType, float dataDotRadius, org.teamapps.common.format.Color lineColor)voidaddLine(java.lang.String dataSeriesId, LineChartCurveType graphType, float dataDotRadius, org.teamapps.common.format.Color lineColor, org.teamapps.common.format.Color areaColor)voidaddLine(AbstractLineChartDataDisplay lineFormat)org.teamapps.dto.UiComponentcreateUiComponent()protected voiddoDestroy()Override this method to release resources whenever this component gets destroyedjava.util.List<java.lang.String>getLineDataIds()intgetMaxPixelsBetweenDataPoints()LineChartMouseScrollZoomPanModegetMouseScrollZoomPanMode()IntervalgetSelectedInterval()voidhandleUiEvent(org.teamapps.dto.UiEvent event)voidrefresh()voidsetLines(java.util.List<? extends AbstractLineChartDataDisplay> lineFormats)voidsetMaxPixelsBetweenDataPoints(int maxPixelsBetweenDataPoints)voidsetModel(TimeGraphModel model)voidsetMouseScrollZoomPanMode(LineChartMouseScrollZoomPanMode mouseScrollZoomPanMode)voidsetSelectedInterval(Interval selectedInterval)voidzoomTo(long minX, long maxX)Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponentReference, destroy, getDebuggingId, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, isVisible, mapAbstractUiComponentProperties, onDestroyed, queueCommandIfRendered, render, reRenderIfRendered, setCssStyle, setDebuggingId, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, setVisible, toString, unrender
-
Field Details
-
Constructor Details
-
Method Details
-
addLine
public void addLine(java.lang.String dataSeriesId, LineChartCurveType graphType, float dataDotRadius, org.teamapps.common.format.Color lineColor) -
addLine
public void addLine(java.lang.String dataSeriesId, LineChartCurveType graphType, float dataDotRadius, org.teamapps.common.format.Color lineColor, org.teamapps.common.format.Color areaColor) -
addLine
-
addDataDisplay
-
setLines
-
getLineDataIds
public java.util.List<java.lang.String> getLineDataIds() -
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() -
zoomTo
public void zoomTo(long minX, long maxX) -
getMaxPixelsBetweenDataPoints
public int getMaxPixelsBetweenDataPoints() -
setMaxPixelsBetweenDataPoints
public void setMaxPixelsBetweenDataPoints(int maxPixelsBetweenDataPoints) -
getMouseScrollZoomPanMode
-
setMouseScrollZoomPanMode
-
getSelectedInterval
-
setSelectedInterval
-
setModel
-