Package com.amalgamasimulation.charts
Class HeatmapChart
java.lang.Object
com.amalgamasimulation.charts.Chart<IHeatmapChartVisualSet,HeatmapVisualSetContainer>
com.amalgamasimulation.charts.HeatmapChart
A heatmap chart is a specialized chart that uses colors to represent data
values in a table. This chart is typically used to show how some indicator
changes with change of two independent variables. For example, the chart can
show how service level in a supply chain changes with increase of storage
capacity and forecasting accuracy.
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.
- Author:
- Aleksey Kirillov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.amalgamasimulation.charts.internals.charts.HeatmapChartInternalprotected HeatmapChartXAxisprotected HeatmapChartYAxis -
Constructor Summary
ConstructorsConstructorDescriptionHeatmapChart(IChartEnvironment chartEnvironment) Constructs a Heatmap Chart with no title.HeatmapChart(IChartEnvironment chartEnvironment, String title) Constructs a Heatmap Chart with a given title. -
Method Summary
Modifier and TypeMethodDescriptionaddContextMenuItem(HeatmapChartContextMenuItem contextMenuItem) Adds the new context menu item to the end of the items list.Adds the action to be executed every time the contents area is clicked.Removes all context menu items added by the 'addContextMenuItem' calls.Removes all the contents area click actions.protected final com.amalgamasimulation.charts.internals.charts.HeatmapChartInternalgetXAxis()Returns the X-axis of this chart.getYAxis()Returns the Y-axis of this chart.removeContextMenuItem(HeatmapChartContextMenuItem contextMenuHandler) Removes the context menu item.Removes the contents area click action.setShowXAxisCategoryMenuItemVisible(boolean visible) Adds a context menu element that controls the search and navigation for elements of the X-axis.setShowYAxisCategoryMenuItemVisible(boolean visible) Adds a context menu element that controls the search and navigation for elements of the Y-axis.Methods 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
-
internalHeatmapChart
protected com.amalgamasimulation.charts.internals.charts.HeatmapChartInternal internalHeatmapChart -
xAxis
-
yAxis
-
-
Constructor Details
-
HeatmapChart
Constructs a Heatmap Chart with no title.- Parameters:
chartEnvironment- parent subtype ofIChartEnvironment, that is a layer between the parent composite and this chart
-
HeatmapChart
Constructs a Heatmap Chart with a 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 chart
-
-
Method Details
-
getChartInternal
protected final com.amalgamasimulation.charts.internals.charts.HeatmapChartInternal getChartInternal()- Specified by:
getChartInternalin classChart<IHeatmapChartVisualSet,HeatmapVisualSetContainer>
-
getXAxis
Description copied from class:ChartReturns the X-axis of this chart.- Specified by:
getXAxisin classChart<IHeatmapChartVisualSet,HeatmapVisualSetContainer> - Returns:
- the X-axis of this chart
-
getYAxis
Description copied from class:ChartReturns the Y-axis of this chart.- Specified by:
getYAxisin classChart<IHeatmapChartVisualSet,HeatmapVisualSetContainer> - Returns:
- the Y-axis of this chart
-
addContextMenuItem
Adds the new context menu item to the end of the items list.- Parameters:
contextMenuItem- new context menu item- Returns:
- reference to this object
-
removeContextMenuItem
Removes the context menu item.- Parameters:
contextMenuHandler- removed context menu item- Returns:
- reference to this object
-
clearContextMenuItems
Removes all context menu items added by the 'addContextMenuItem' calls. Does not affect pre-installed items such as 'copy to clipboard'.- Returns:
- reference to this object
-
setShowYAxisCategoryMenuItemVisible
Adds a context menu element that controls the search and navigation for elements of the Y-axis.- Parameters:
visible- new visibility of the menu element 'search and navigation'- Returns:
- reference to this object
-
setShowXAxisCategoryMenuItemVisible
Adds a context menu element that controls the search and navigation for elements of the X-axis.- Parameters:
visible- new visibility of the menu element 'search and navigation'- Returns:
- reference to this object
-
addMouseClickHandler
Adds the action to be executed every time the contents area is clicked.- Parameters:
handler- new contents area click action- Returns:
- reference to this object
-
removeMouseClickHandler
Removes the contents area click action.- Parameters:
handler- removed contents area click action- Returns:
- reference to this object
-
clearMouseClickHandlers
Removes all the contents area click actions.- Returns:
- reference to this object
-