Class WaterfallVisualSet<T>
java.lang.Object
com.amalgamasimulation.charts.visualsets.VisualSet<T>
com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet<T,WaterfallVisualSet.Category>
com.amalgamasimulation.charts.visualsets.BarVisualSet<T,WaterfallVisualSet.Category>
com.amalgamasimulation.charts.visualsets.WaterfallVisualSet<T>
- Type Parameters:
T- the type of elements in the visual set
- All Implemented Interfaces:
IAbstractBarVisualSet<T,,WaterfallVisualSet.Category> IUpdatePolicyPropertyOwner,IAbstractChartVisualSet,IBarChartVisualSet
Represents a Waterfall visual set that extends
BarVisualSet and
visualizes data in a waterfall format. This format is designed to display
cumulative effect of sequentially introduced positive or negative values.
Can be shown on a BarChart with BarsLayout ==
BarsLayout.STACK.
- Author:
- Andrey Malykhanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the category of a bar (data element) in the waterfall chart.static enumDefines the type of element represented in the waterfall chart.Nested classes/interfaces inherited from class com.amalgamasimulation.charts.visualsets.BarVisualSet
BarVisualSet.BarVisualElementNested classes/interfaces inherited from class com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet
BarLabeledVisualSet.BarLabeledVisualElementNested classes/interfaces inherited from class com.amalgamasimulation.charts.visualsets.VisualSet
VisualSet.ContextMenuHandler<T>, VisualSet.UpdatePolicy, VisualSet.VisualElement -
Field Summary
Fields inherited from class com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet
barLabelColorExtractor, barLabelFontSizeExtractor, barLabelTextExtractor, labelColorExtractors, labelFontSizeExtractors, labelTextExtractorsFields inherited from class com.amalgamasimulation.charts.visualsets.VisualSet
argumentExtractor, contentsToBeginArguments, contentsToEndArguments, contentsToVisualElements, contextMenuHandlers, dataElementsProvider, listeners, maxArgument, maxValueCache, minArgument, minValueCache, mouseEnterHandlers, mouseExitHandlers, mousePressedHandlers, mouseTransparent, name, needsUpdate, oldContentsList, tooltipTextExtractor, updatePolicy, visibilityChangeHandlers, visualElementsList -
Constructor Summary
ConstructorsConstructorDescriptionWaterfallVisualSet(String name, List<T> elements, Function<T, Double> valueExtractor, Function<T, WaterfallVisualSet.ElementType> typeExtractor) Constructs a new WaterfallVisualSet with the specified parameters. -
Method Summary
Methods inherited from class com.amalgamasimulation.charts.visualsets.BarVisualSet
addContextMenuHandler, addMouseEnterHandler, addMouseExitHandler, addMousePressedHandler, addVisibilityChangeHandler, createVisualElement, getBackgroundColor, getBorderColor, getBorderWidth, getCategories, getColumnWidthFraction, getElementText, getLegendLabelText, getMaxArgument, getMaxGroupValue, getMaxGroupValue, getMaxValueByAnyCategory, getMaxValueByAnyCategory, getMinArgument, getPercentOfMaxValue, getPercentOfMaxValue, getSummaryValue, getSummaryValue, getValue, getVisualElements, getVisualWidthFraction, setBackgroundColor, setBarLabelColor, setBarLabelFontSize, setBarLabelText, setBorderColor, setBorderWidth, setCategoriesComparator, setColumnWidthFraction, setElementText, setLabelText, setLegendLabelText, setMouseTransparent, setTooltipText, setUpdatePolicy, setVisualWidthFractionMethods inherited from class com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet
getBarLabelColor, getBarLabelFontSize, getBarLabelText, getLabelColor, getLabelFontSize, getLabelSides, getLabelTextMethods inherited from class com.amalgamasimulation.charts.visualsets.VisualSet
addVisualElement, addVisualElement, addVisualSetChangeHandler, clearDependencies, getArgument, getContents, getContextMenuHandlers, getDataElements, getInjectionIndex, getMouseEnterHandlers, getMouseExitHandlers, getMousePressedHandlers, getName, getTooltipText, getUpdatePolicy, getVisibilityChangeHandlers, getVisibleVisualElementIndex, getVisibleVisualElementsCount, isMouseTransparent, isNeedsUpdate, recalculateVisualElements, removeContextMenuHandler, removeMouseEnterHandler, removeMouseExitHandler, removeMousePressedHandler, removeVisibilityChangeHandler, removeVisualElement, removeVisualSetChangeHandler, sortVisualElements, toString, update, updateMinMaxArgumentsValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.amalgamasimulation.charts.visualsets.types.IAbstractChartVisualSet
addVisualSetChangeHandler, getContents, getName, getUpdatePolicy, getVisibilityChangeHandlers, getVisibleVisualElementsCount, isMouseTransparent, removeVisibilityChangeHandler, removeVisualSetChangeHandler
-
Constructor Details
-
WaterfallVisualSet
public WaterfallVisualSet(String name, List<T> elements, Function<T, Double> valueExtractor, Function<T, WaterfallVisualSet.ElementType> typeExtractor) Constructs a new WaterfallVisualSet with the specified parameters.- Parameters:
name- the name of the visual setelements- the list of elements to visualizevalueExtractor- a function to extract the value from each elementtypeExtractor- a function to determine theWaterfallVisualSet.ElementTypeof each element - must it be shown as an absolute value or as a delta from from the previous value.
-