Package com.amalgamasimulation.charts
Class BarChart
java.lang.Object
com.amalgamasimulation.charts.Chart<IBarChartVisualSet,BarVisualSetContainer>
com.amalgamasimulation.charts.AbstractBarChart
com.amalgamasimulation.charts.BarChart
- All Implemented Interfaces:
IVerticalGuidelineOwner<IBarChartVisualSet,BarVisualSetContainer>
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. Bar Chart is
used to show statistical data by categories.
- Author:
- Aleksey Kirillov
-
Field Summary
FieldsFields inherited from class com.amalgamasimulation.charts.AbstractBarChart
internalBarChart -
Constructor Summary
ConstructorsConstructorDescriptionBarChart(IChartEnvironment chartEnvironment) Constructs a Bar Chart with a set of default parameters: no title, stackBarsLayout, etc.BarChart(IChartEnvironment chartEnvironment, BarsLayout barsLayout) Constructs a Bar Chart with a givenBarsLayoutand no title.BarChart(IChartEnvironment chartEnvironment, String title) Constructs a Bar Chart with a given title and defaultBarsLayout(stack-layout).BarChart(IChartEnvironment chartEnvironment, String title, BarsLayout barsLayout) Constructs a Bar Chart with a givenBarsLayoutand given title. -
Method Summary
Methods inherited from class com.amalgamasimulation.charts.AbstractBarChart
addContextMenuItem, addVerticalGuidelineChangeHandler, clearContextMenuItems, clearVerticalGuidelineChangeHandlers, getVerticalGuidelineColor, getVerticalGuidelinePosition, getVerticalGuidelineWidth, hideVerticalGuideline, isVerticalGuidelineDisplayed, isVerticalGuidelineLabelVisible, isVerticalGuidelineSnapToGridLines, isVerticalGuidelineValuesVisible, isVerticalGuidelineVisible, removeContextMenuItem, removeVerticalGuidelineChangeHandler, setVerticalGuidelineColor, setVerticalGuidelineColor, 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
-
barChartLegend
-
-
Constructor Details
-
BarChart
Constructs a Bar Chart with a set of default parameters: no title, stackBarsLayout, etc.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this chart
-
BarChart
Constructs a Bar Chart with a given title and defaultBarsLayout(stack-layout).- 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
-
BarChart
Constructs a Bar Chart with a givenBarsLayoutand no title.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this chartbarsLayout- a type of arranging different categories within different Bar Chart data-elements
-
BarChart
Constructs a Bar Chart with a givenBarsLayoutand given title.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this charttitle- chart title i.e. label written above the chartbarsLayout- a type of arranging different categories within different data-elements
-
-
Method Details
-
getBarsLayout
-
getChartInternal
protected com.amalgamasimulation.charts.internals.charts.BarChartInternal getChartInternal()- Overrides:
getChartInternalin classAbstractBarChart
-
getXAxis
Description copied from class:ChartReturns the X-axis of this chart.- Specified by:
getXAxisin classChart<IBarChartVisualSet,BarVisualSetContainer> - Returns:
- the X-axis of this chart
-
getYAxis
Description copied from class:ChartReturns the Y-axis of this chart.- Specified by:
getYAxisin classChart<IBarChartVisualSet,BarVisualSetContainer> - Returns:
- the Y-axis of this chart
-
getLegend
Description copied from class:AbstractBarChartReturns theLegendcurrently shown on this chart.- Specified by:
getLegendin classAbstractBarChart- Returns:
- the
Legendcurrently shown on this chart
-