Package com.amalgamasimulation.charts
Class TimeGanttChart
java.lang.Object
com.amalgamasimulation.charts.Chart<IGanttChartVisualSet,GanttVisualSetContainer>
com.amalgamasimulation.charts.AbstractGanttChart
com.amalgamasimulation.charts.TimeGanttChart
- All Implemented Interfaces:
IVerticalGuidelineOwner<IGanttChartVisualSet,GanttVisualSetContainer>
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 Gantt
Chart is used to show history of some state changes or schedules with
Time-related X-axis.
- Author:
- Aleksey Kirillov
-
Field Summary
FieldsFields inherited from class com.amalgamasimulation.charts.AbstractGanttChart
internalGanttChart -
Constructor Summary
ConstructorsConstructorDescriptionTimeGanttChart(IChartEnvironment chartEnvironment) Constructs a Gantt Chart with a set of default parameters: no title, daily time units, begin displayed range is equals to 7 days, bar height fraction is equal to 1.TimeGanttChart(IChartEnvironment chartEnvironment, String title) Constructs a Gantt Chart with given title and a set of default parameters: daily time units, begin displayed range is equals to 7 days, bar height fraction is equal to 1.TimeGanttChart(IChartEnvironment chartEnvironment, String title, ChronoUnit timeUnit) Constructs a Gantt Chart with given title and time units.TimeGanttChart(IChartEnvironment chartEnvironment, String title, ChronoUnit timeUnit, ChronoUnit beginDisplayedRangeChronoUnit, double beginDisplayedRange, double barHeightFraction) Constructs a Gantt Chart with manually setting of all initialization parameters.TimeGanttChart(IChartEnvironment chartEnvironment, ChronoUnit timeUnit) Constructs a Gantt Chart with given chrono unit and a set of default parameters: no title, begin displayed range is equals to 7 days, bar height fraction is equal to 1.TimeGanttChart(IChartEnvironment chartEnvironment, ChronoUnit timeUnit, ChronoUnit beginDisplayedRangeChronoUnit, double beginDisplayedRange) Constructs a Gantt Chart with given horizontal axis time units and begin displayed range. -
Method Summary
Methods inherited from class com.amalgamasimulation.charts.AbstractGanttChart
addContextMenuItem, addMouseClickHandler, addVerticalGuidelineChangeHandler, clearContextMenuItems, clearMouseClickHandlers, clearVerticalGuidelineChangeHandlers, getChartInternal, getVerticalGuidelineColor, getVerticalGuidelineLabelFormat, getVerticalGuidelinePosition, getVerticalGuidelineWidth, hideVerticalGuideline, isVerticalGuidelineDisplayed, isVerticalGuidelineLabelVisible, isVerticalGuidelineSnapToGridLines, isVerticalGuidelineValuesVisible, isVerticalGuidelineVisible, removeContextMenuItem, removeMouseClickHandler, removeVerticalGuidelineChangeHandler, setShowGanttChartRowMenuItemVisible, 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
-
-
Constructor Details
-
TimeGanttChart
Constructs a Gantt Chart with a set of default parameters: no title, daily time units, begin displayed range is equals to 7 days, bar height fraction is equal to 1.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this chart
-
TimeGanttChart
Constructs a Gantt Chart with given title and a set of default parameters: daily time units, begin displayed range is equals to 7 days, bar height fraction is equal to 1.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttitle- chart title i.e. label written above the chart
-
TimeGanttChart
Constructs a Gantt Chart with given chrono unit and a set of default parameters: no title, begin displayed range is equals to 7 days, bar height fraction is equal to 1.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttimeUnit- chart horizontal axis time units
-
TimeGanttChart
Constructs a Gantt Chart with given title and time units. Begin displayed range is equals to default value of 7 days, bar height fraction is equal to 1.- 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
-
TimeGanttChart
public TimeGanttChart(IChartEnvironment chartEnvironment, ChronoUnit timeUnit, ChronoUnit beginDisplayedRangeChronoUnit, double beginDisplayedRange) Constructs a Gantt Chart with given horizontal axis time units and begin displayed range. Begin displayed range is equals to default value of 7 days, bar height fraction is equal to 1, title is not set.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttimeUnit- chart horizontal axis time unitsbeginDisplayedRangeChronoUnit- chart begin displayed range time unitsbeginDisplayedRange- chart begin displayed range
-
TimeGanttChart
public TimeGanttChart(IChartEnvironment chartEnvironment, String title, ChronoUnit timeUnit, ChronoUnit beginDisplayedRangeChronoUnit, double beginDisplayedRange, double barHeightFraction) Constructs a Gantt 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 unitsbeginDisplayedRangeChronoUnit- chart begin displayed range time unitsbeginDisplayedRange- chart begin displayed rangebarHeightFraction- sets the relative height of gantt-visuals within a singleGanttChartRow
-
-
Method Details
-
getXAxis
Description copied from class:ChartReturns the X-axis of this chart.- Specified by:
getXAxisin classChart<IGanttChartVisualSet,GanttVisualSetContainer> - Returns:
- the X-axis of this chart
-
getYAxis
Description copied from class:ChartReturns the Y-axis of this chart.- Specified by:
getYAxisin classChart<IGanttChartVisualSet,GanttVisualSetContainer> - Returns:
- the Y-axis of this chart
-