Package com.amalgamasimulation.charts
Class TimeLineChart
java.lang.Object
com.amalgamasimulation.charts.Chart<ILineChartVisualSet,LineVisualSetContainer>
com.amalgamasimulation.charts.AbstractLineChart
com.amalgamasimulation.charts.TimeLineChart
- All Implemented Interfaces:
IVerticalGuidelineOwner<ILineChartVisualSet,LineVisualSetContainer>
A chart is a GUI component based on JavaFX's XYChart class that can be used
to conveniently draw numeric and statistical data. All charts are designed to
be compatible with Eclipse RCP applications and SWT framework. A Time Line
Chart is used to show linear plots or clouds of points in two-dimensional
coordinates with Time-related X-axis.
- Author:
- Aleksey Kirillov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Legend<ILineChartVisualSet> protected LineChartTimeXAxisprotected LineChartNumericYAxisFields inherited from class com.amalgamasimulation.charts.AbstractLineChart
internalLineChart -
Constructor Summary
ConstructorsConstructorDescriptionTimeLineChart(IChartEnvironment chartEnvironment) Constructs a Line Chart with a set of default parameters: no title, daily time units, begin displayed range is equals to 7 days.TimeLineChart(IChartEnvironment chartEnvironment, String title, ChronoUnit timeUnit) Constructs a Line Chart with given title and time units.TimeLineChart(IChartEnvironment chartEnvironment, String title, ChronoUnit timeUnit, ChronoUnit beginWindowSizeChronoUnit, double beginWindowSize) Constructs a Line Chart with manually setting of all initialization parameters.TimeLineChart(IChartEnvironment chartEnvironment, ChronoUnit timeUnit) Constructs a Line Chart with given time units and a set of default parameters: no title, begin displayed range is equals to 7 days.TimeLineChart(IChartEnvironment chartEnvironment, ChronoUnit timeUnit, ChronoUnit beginWindowSizeChronoUnit, double beginWindowSize) Constructs a Line Chart with given horizontal axis time units and begin displayed range. -
Method Summary
Methods inherited from class com.amalgamasimulation.charts.AbstractLineChart
addContextMenuItem, addVerticalGuidelineChangeHandler, clearContextMenuItems, clearVerticalGuidelineChangeHandlers, getChartInternal, getVerticalGuidelineColor, getVerticalGuidelineLabelFormat, getVerticalGuidelinePosition, getVerticalGuidelineWidth, hideVerticalGuideline, isVerticalGuidelineDisplayed, isVerticalGuidelineLabelVisible, isVerticalGuidelineSnapToGridLines, isVerticalGuidelineValuesVisible, isVerticalGuidelineVisible, removeContextMenuItem, removeVerticalGuidelineChangeHandler, setArgumentClipboardFormatter, setVerticalGuidelineColor, setVerticalGuidelineColor, setVerticalGuidelineLabelFormat, setVerticalGuidelineLabelVisible, setVerticalGuidelineSnapToGridLines, setVerticalGuidelineValuesVisible, setVerticalGuidelineVisible, setVerticalGuidelineWidth, showVerticalGuidelineDisplayedMethods inherited from class com.amalgamasimulation.charts.Chart
addKeyPressedHandler, addKeyReleasedHandler, addMouseDragExitedHandler, addMouseDraggedHandler, addMouseDragOverHandler, addMouseDragReleasedHandler, addMouseEnteredHandlers, addMouseExitedHandler, addMousePressedHandler, addMouseReleasedHandler, addMouseScrollHandler, addRedrawFinishedHandler, addTextLabel, addTextLabel, clearKeyPressedHandlers, clearKeyReleasedHandlers, clearMouseDragExitedHandlers, clearMouseDraggedHandlers, clearMouseDragOverHandlers, clearMouseDragReleasedHandlers, clearMouseEnteredHandlers, clearMouseExitedHandlers, clearMousePressedHandlers, clearMouseReleasedHandlers, clearMouseScrollHandlers, clearRedrawFinishedHandlers, copyToClipboard, dispose, getBackgroundColor, getBottomMargin, getContentBackgroundColor, getLeftMargin, getTitle, getTitleColor, getTitleFont, getTitleFontSize, getTopMargin, getVisualSetContainer, initializeChartGroup, isDisposed, isRedrawInProgress, isTitleVisible, isVisible, isVisualSetVisible, redraw, removeKeyPressedHandler, removeKeyReleasedHandler, removeMouseDragExitedHandler, removeMouseDraggedHandler, removeMouseDragOverHandler, removeMouseDragReleasedHandler, removeMouseEnteredHandler, removeMouseExitedHandler, removeMousePressedHandler, removeMouseReleasedHandler, removeMouseScrollHandler, removeRedrawFinishedHandler, removeTextLabel, resizeChart, setBackgroundColor, setBackgroundColor, setBottomMargin, setContentBackgroundColor, setContentBackgroundColor, setContextMenuVisible, setCopyToClipboardContextMenuItemVisible, setLeftMargin, setTitle, setTitleColor, setTitleColor, setTitleFont, setTitleFontSize, setTitleVisible, setTopMargin, setVisibility, setVisualSetContainer, setVisualSetVisible, updateSize
-
Field Details
-
xAxis
-
yAxis
-
legend
-
-
Constructor Details
-
TimeLineChart
Constructs a Line Chart with a set of default parameters: no title, daily time units, begin displayed range is equals to 7 days.- Parameters:
chartEnvironment- parent environment, that is a layer between the parent subtype ofIChartEnvironmentand this chart
-
TimeLineChart
Constructs a Line Chart with given time units and a set of default parameters: no title, begin displayed range is equals to 7 days.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttimeUnit- chart horizontal axis time units
-
TimeLineChart
Constructs a Line Chart with given title and time units. Begin displayed range is equals to 7 days and title is not set.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttitle- chart title i.e. label written above the charttimeUnit- chart horizontal axis time units
-
TimeLineChart
public TimeLineChart(IChartEnvironment chartEnvironment, ChronoUnit timeUnit, ChronoUnit beginWindowSizeChronoUnit, double beginWindowSize) Constructs a Line Chart with given horizontal axis time units and begin displayed range. Title is not set.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttimeUnit- chart horizontal axis time unitsbeginWindowSizeChronoUnit- chart begin displayed range time unitsbeginWindowSize- chart begin displayed range
-
TimeLineChart
public TimeLineChart(IChartEnvironment chartEnvironment, String title, ChronoUnit timeUnit, ChronoUnit beginWindowSizeChronoUnit, double beginWindowSize) Constructs a Line Chart with manually setting of all initialization parameters.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttitle- chart title i.e. label written above the charttimeUnit- chart horizontal axis time unitsbeginWindowSizeChronoUnit- chart begin displayed range time unitsbeginWindowSize- chart begin displayed range
-
-
Method Details
-
getXAxis
Description copied from class:ChartReturns the X-axis of this chart.- Specified by:
getXAxisin classChart<ILineChartVisualSet,LineVisualSetContainer> - Returns:
- the X-axis of this chart
-
getYAxis
Description copied from class:ChartReturns the Y-axis of this chart.- Specified by:
getYAxisin classChart<ILineChartVisualSet,LineVisualSetContainer> - Returns:
- the Y-axis of this chart
-
getLegend
Description copied from class:AbstractLineChartReturns theLegendcurrently shown on this chart.- Specified by:
getLegendin classAbstractLineChart- Returns:
- the
Legendcurrently shown on this chart
-