Class AbstractLineVisualSet.AbstractLineVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.visualsets.VisualSet.VisualElement
com.amalgamasimulation.visualsets.AbstractLineVisualSet.AbstractLineVisualElement
- All Implemented Interfaces:
IBeginEndArgumentPropertyOwnerElement,IValuePropertyOwnerElement,IAbstractChartVisualElement<T>
- Direct Known Subclasses:
AbstractPolylineVisualSet.AbstractPolylineVisualElement,LineVisualSet.LineVisualElement
- Enclosing class:
AbstractLineVisualSet<T>
public abstract class AbstractLineVisualSet.AbstractLineVisualElement
extends VisualSet<T>.VisualElement
implements IValuePropertyOwnerElement, IBeginEndArgumentPropertyOwnerElement
Internal class that represents visual element for line 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
ConstructorsConstructorDescriptionAbstractLineVisualElement(T contents) Constructs visual element for the given line data element. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the begin X-axis argument of the visual corresponding to this data element.doubleReturns the end X-axis argument of the visual corresponding to this data element.doublegetValue()Returns the value of this data element.Methods inherited from class com.amalgamasimulation.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.visualsets.types.IAbstractChartVisualElement
getVisualSet
-
Constructor Details
-
AbstractLineVisualElement
Constructs visual element for the given line data element.- Parameters:
contents- line data element
-
-
Method Details
-
getBeginArgument
public double getBeginArgument()Description copied from interface:IBeginEndArgumentPropertyOwnerElementReturns the begin X-axis argument of the visual corresponding to this data element.- Specified by:
getBeginArgumentin interfaceIBeginEndArgumentPropertyOwnerElement- Returns:
- the begin X-axis argument of the visual corresponding to this data element
-
getEndArgument
public double getEndArgument()Description copied from interface:IBeginEndArgumentPropertyOwnerElementReturns the end X-axis argument of the visual corresponding to this data element.- Specified by:
getEndArgumentin interfaceIBeginEndArgumentPropertyOwnerElement- Returns:
- the end X-axis argument of the visual corresponding to this data element
-
getValue
public double getValue()Description copied from interface:IValuePropertyOwnerElementReturns the value of this data element.- Specified by:
getValuein interfaceIValuePropertyOwnerElement- Returns:
- the value of this data element
-