Class HistogramVisualSet.HistogramVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.charts.visualsets.VisualSet.VisualElement
BarLabeledVisualSet<T,C>.com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet.BarLabeledVisualElement
com.amalgamasimulation.charts.visualsets.HistogramVisualSet.HistogramVisualElement
- All Implemented Interfaces:
IAbstractBarVisualSetElement<C>,IAbstractChartVisualElement<T>,IBarChartVisualElement<T>
- Enclosing class:
HistogramVisualSet<T extends HistogramDataAggregator<C,?>.HistogramDataGroup, C>
public class HistogramVisualSet.HistogramVisualElement
extends BarLabeledVisualSet<T,C>.BarLabeledVisualElement
implements IAbstractBarVisualSetElement<C>, IBarChartVisualElement<T>
Internal class that represents visual element for histogram data element.
This class is public for technical purposes, it is unlikely that API users
will need to interact with it.
- Author:
- Aleksey Kirillov
-
Field Summary
Fields inherited from class com.amalgamasimulation.charts.visualsets.VisualSet.VisualElement
contents, nextVisualElement, previousVisualElement -
Constructor Summary
ConstructorsConstructorDescriptionHistogramVisualElement(T contents) Constructs visual element for the given histogram data element. -
Method Summary
Modifier and TypeMethodDescriptionDelegates a call toBarLabeledVisualSet.getBarLabelColor(Object)for the data element corresponding to this visual element.doubleDelegates a call toBarLabeledVisualSet.getBarLabelFontSize(Object)for the data element corresponding to this visual element.Delegates a call toBarLabeledVisualSet.getBarLabelText(Object)for the data element corresponding to this visual element.Delegates a call toIAbstractBarVisualSet.getElementText(Object)for the data element corresponding to this visual element.doubleDelegates a call toIAbstractBarVisualSet.getSummaryValue(Object)for the data element corresponding to this visual element.doublegetSummaryValue(Predicate<C> categoryPredicate) Delegates a call toIAbstractBarVisualSet.getSummaryValue(Object, Predicate)for the data element corresponding to this visual element and given category predicate.doubleDelegates a call toIAbstractBarVisualSet.getValue(Object, Object)for the data element corresponding to this visual element and given category.Returns the current VisualSet containing this VisualElement.Methods inherited from class com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet.BarLabeledVisualElement
getLabelColor, getLabelFontSize, getLabelSides, getLabelTextMethods inherited from class com.amalgamasimulation.charts.visualsets.VisualSet.VisualElement
acceptContextMenuHandlers, getArgument, getContents, getInternalID, getNextVisualElement, getPreviousVisualElement, getTooltipText, onMouseEntered, onMouseExited, onMousePressed, setNextVisualElement, setPreviousVisualElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.charts.visualsets.types.IAbstractChartVisualElement
acceptContextMenuHandlers, getArgument, getContents, getNextVisualElement, getPreviousVisualElement, getTooltipText, onMouseEntered, onMouseExited, onMousePressed
-
Constructor Details
-
HistogramVisualElement
Constructs visual element for the given histogram data element.- Parameters:
contents- line data element
-
-
Method Details
-
getVisualSet
Description copied from interface:IAbstractChartVisualElementReturns the current VisualSet containing this VisualElement.- Specified by:
getVisualSetin interfaceIAbstractChartVisualElement<T extends HistogramDataAggregator<C,?>.HistogramDataGroup> - Specified by:
getVisualSetin interfaceIBarChartVisualElement<T extends HistogramDataAggregator<C,?>.HistogramDataGroup> - Overrides:
getVisualSetin classBarLabeledVisualSet<T extends HistogramDataAggregator<C,?>.HistogramDataGroup, C>.BarLabeledVisualElement - Returns:
- the current VisualSet containing this VisualElement
-
getValue
Description copied from interface:IAbstractBarVisualSetElementDelegates a call toIAbstractBarVisualSet.getValue(Object, Object)for the data element corresponding to this visual element and given category.- Specified by:
getValuein interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
IAbstractBarVisualSet.getValue(Object, Object)
-
getSummaryValue
public double getSummaryValue()Description copied from interface:IAbstractBarVisualSetElementDelegates a call toIAbstractBarVisualSet.getSummaryValue(Object)for the data element corresponding to this visual element.- Specified by:
getSummaryValuein interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
IAbstractBarVisualSet.getSummaryValue(Object)
-
getSummaryValue
Description copied from interface:IAbstractBarVisualSetElementDelegates a call toIAbstractBarVisualSet.getSummaryValue(Object, Predicate)for the data element corresponding to this visual element and given category predicate.- Specified by:
getSummaryValuein interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
IAbstractBarVisualSet.getSummaryValue(Object)
-
getElementText
Description copied from interface:IAbstractBarVisualSetElementDelegates a call toIAbstractBarVisualSet.getElementText(Object)for the data element corresponding to this visual element.- Specified by:
getElementTextin interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
IAbstractBarVisualSet.getElementText(Object)
-
getBarLabelText
Description copied from interface:IAbstractBarVisualSetElementDelegates a call toBarLabeledVisualSet.getBarLabelText(Object)for the data element corresponding to this visual element.- Specified by:
getBarLabelTextin interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
BarLabeledVisualSet.getBarLabelText(Object)
-
getBarLabelColor
Description copied from interface:IAbstractBarVisualSetElementDelegates a call toBarLabeledVisualSet.getBarLabelColor(Object)for the data element corresponding to this visual element.- Specified by:
getBarLabelColorin interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
BarLabeledVisualSet.getBarLabelColor(Object)
-
getBarLabelFontSize
public double getBarLabelFontSize()Description copied from interface:IAbstractBarVisualSetElementDelegates a call toBarLabeledVisualSet.getBarLabelFontSize(Object)for the data element corresponding to this visual element.- Specified by:
getBarLabelFontSizein interfaceIAbstractBarVisualSetElement<C>- Returns:
- the result of a call
BarLabeledVisualSet.getBarLabelFontSize(Object)
-