Package com.amalgamasimulation.charts
Class NumericLineChart
java.lang.Object
com.amalgamasimulation.charts.Chart<ILineChartVisualSet,LineVisualSetContainer>
com.amalgamasimulation.charts.AbstractLineChart
com.amalgamasimulation.charts.NumericLineChart
- 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 Numeric Line
Chart is used to show linear plots or clouds of points in two-dimensional
coordinates with Numeric X-axis.
- Author:
- Aleksey Kirillov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Legend<ILineChartVisualSet> protected LineChartNumericXAxisprotected LineChartNumericYAxisFields inherited from class com.amalgamasimulation.charts.AbstractLineChart
internalLineChart -
Constructor Summary
ConstructorsConstructorDescriptionNumericLineChart(IChartEnvironment chartEnvironment) Constructs a Line Chart with a set of default parameters: no title, default begin displayed range size etc.NumericLineChart(IChartEnvironment chartEnvironment, double beginDisplayedRangeSize) Constructs a Line Chart with a given begin displayed range size and no title.NumericLineChart(IChartEnvironment chartEnvironment, String title) Constructs a Line Chart with a given title and default begin displayed range size.NumericLineChart(IChartEnvironment chartEnvironment, String title, double beginDisplayedRangeSize) Constructs a Line Chart with a given begin displayed range size and given title. -
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
-
NumericLineChart
Constructs a Line Chart with a set of default parameters: no title, default begin displayed range size etc.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this chart
-
NumericLineChart
Constructs a Line Chart with a given title and default begin displayed range size.- 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
-
NumericLineChart
Constructs a Line Chart with a given begin displayed range size and no title.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this chartbeginDisplayedRangeSize- begin displayed range size
-
NumericLineChart
public NumericLineChart(IChartEnvironment chartEnvironment, String title, double beginDisplayedRangeSize) Constructs a Line Chart with a given begin displayed range size and 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 chartbeginDisplayedRangeSize- begin displayed range size
-
-
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
-