Class BarLabeledVisualSet.BarLabeledVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.visualsets.VisualSet.VisualElement
com.amalgamasimulation.visualsets.BarLabeledVisualSet.BarLabeledVisualElement
- All Implemented Interfaces:
IAbstractChartVisualElement<T>
- Direct Known Subclasses:
BarVisualSet.BarVisualElement,HistogramVisualSet.HistogramVisualElement
- Enclosing class:
BarLabeledVisualSet<T,C>
public abstract class BarLabeledVisualSet.BarLabeledVisualElement
extends VisualSet<T>.VisualElement
Internal class that represents visual element for bar labeled 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.visualsets.VisualSet.VisualElement
contents, nextVisualElement, previousVisualElement -
Constructor Summary
ConstructorsConstructorDescriptionBarLabeledVisualElement(T contents) Constructs visual element for the given bar labeled data element. -
Method Summary
Modifier and TypeMethodDescriptiongetLabelColor(LabelSide labelSide, C category) Delegates a call toBarLabeledVisualSet.getLabelColor(Object, Object, LabelSide)for the data element corresponding to this visual element with givenLabelSideand category.doublegetLabelFontSize(LabelSide labelSide, C category) Delegates a call toBarLabeledVisualSet.getLabelFontSize(Object, Object, LabelSide)for the data element corresponding to this visual element with givenLabelSideand category.Delegates a call toBarLabeledVisualSet.getLabelSides()for the data element corresponding to this visual element.getLabelText(LabelSide labelSide, C category) Delegates a call toBarLabeledVisualSet.getLabelText(Object, Object, LabelSide)for the data element corresponding to this visual element with givenLabelSideand category.Returns the current VisualSet containing this VisualElement.Methods inherited from class com.amalgamasimulation.visualsets.VisualSet.VisualElement
acceptContextMenuHandlers, getArgument, getContents, getInternalID, getNextVisualElement, getPreviousVisualElement, getTooltipText, onMouseEntered, onMouseExited, onMousePressed, setNextVisualElement, setPreviousVisualElement
-
Constructor Details
-
BarLabeledVisualElement
Constructs visual element for the given bar labeled data element.- Parameters:
contents- bar labeled data element
-
-
Method Details
-
getVisualSet
Description copied from interface:IAbstractChartVisualElementReturns the current VisualSet containing this VisualElement.- Returns:
- the current VisualSet containing this VisualElement
-
getLabelSides
Delegates a call toBarLabeledVisualSet.getLabelSides()for the data element corresponding to this visual element.- Returns:
- the result of a call
BarLabeledVisualSet.getLabelSides()
-
getLabelText
Delegates a call toBarLabeledVisualSet.getLabelText(Object, Object, LabelSide)for the data element corresponding to this visual element with givenLabelSideand category.- Parameters:
labelSide- theLabelSideof bar where the corresponding label is drawncategory- data category for which the label text is being checked- Returns:
- the result of a call
BarLabeledVisualSet.getLabelText(Object, Object, LabelSide)
-
getLabelFontSize
Delegates a call toBarLabeledVisualSet.getLabelFontSize(Object, Object, LabelSide)for the data element corresponding to this visual element with givenLabelSideand category.- Parameters:
labelSide- theLabelSideof bar where the corresponding label is drawncategory- data category for which the label font size is being checked- Returns:
- the result of a call
BarLabeledVisualSet.getLabelFontSize(Object, Object, LabelSide)
-
getLabelColor
Delegates a call toBarLabeledVisualSet.getLabelColor(Object, Object, LabelSide)for the data element corresponding to this visual element with givenLabelSideand category.- Parameters:
labelSide- theLabelSideof bar where the corresponding label is drawncategory- data category for which the label color is being checked- Returns:
- the result of a call
BarLabeledVisualSet.getLabelColor(Object, Object, LabelSide)
-