Class BarVisualSet.BarVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.charts.visualsets.VisualSet.VisualElement
BarLabeledVisualSet<T,C>.com.amalgamasimulation.charts.visualsets.BarLabeledVisualSet.BarLabeledVisualElement
com.amalgamasimulation.charts.visualsets.BarVisualSet.BarVisualElement
- All Implemented Interfaces:
IAbstractBarVisualSetElement<C>,IAbstractChartVisualElement<T>,IBarChartVisualElement<T>
- Enclosing class:
BarVisualSet<T,C>
public class BarVisualSet.BarVisualElement
extends BarLabeledVisualSet<T,C>.BarLabeledVisualElement
implements IAbstractBarVisualSetElement<C>, IBarChartVisualElement<T>
Internal class that represents visual element for bar 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
ConstructorsConstructorDescriptionBarVisualElement(T contents) Constructs visual element for the given bar 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
-
BarVisualElement
Constructs visual element for the given bar data element.- Parameters:
contents- bar data element
-
-
Method Details
-
getVisualSet
Description copied from interface:IAbstractChartVisualElementReturns the current VisualSet containing this VisualElement.- Specified by:
getVisualSetin interfaceIAbstractChartVisualElement<T>- Specified by:
getVisualSetin interfaceIBarChartVisualElement<T>- Overrides:
getVisualSetin classBarLabeledVisualSet<T,C>.BarLabeledVisualElement - Returns:
- the current VisualSet containing this VisualElement
-
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)
-
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)
-