Class GanttPolylineVisualSet.GanttPolylineVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.visualsets.VisualSet.VisualElement
AbstractLineVisualSet<T>.com.amalgamasimulation.visualsets.AbstractLineVisualSet.AbstractLineVisualElement
AbstractPolylineVisualSet<T>.com.amalgamasimulation.visualsets.AbstractPolylineVisualSet.AbstractPolylineVisualElement
com.amalgamasimulation.visualsets.GanttPolylineVisualSet.GanttPolylineVisualElement
- All Implemented Interfaces:
IBeginEndArgumentPropertyOwnerElement,IRowHeightPropertyOwnerElement,IValuePropertyOwnerElement,IAbstractChartVisualElement<T>,IGanttChartVisualElement<T>
- Enclosing class:
GanttPolylineVisualSet<T>
public class GanttPolylineVisualSet.GanttPolylineVisualElement
extends AbstractPolylineVisualSet<T>.AbstractPolylineVisualElement
implements IGanttChartVisualElement<T>, IValuePropertyOwnerElement, IBeginEndArgumentPropertyOwnerElement, IRowHeightPropertyOwnerElement
Internal class that represents visual element for polyline 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
ConstructorsConstructorDescriptionGanttPolylineVisualElement(T contents) Constructs visual element for the given polyline 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.doubleReturns the fraction height of the region in which visual is drawn.doublegetValue()Returns the value of this data element.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, 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
acceptContextMenuHandlers, getArgument, getContents, getNextVisualElement, getPreviousVisualElement, getTooltipText, onMouseEntered, onMouseExited, onMousePressed
-
Constructor Details
-
GanttPolylineVisualElement
Constructs visual element for the given polyline data element.- Parameters:
contents- line data element
-
-
Method Details
-
getRowHeightFraction
public double getRowHeightFraction()Description copied from interface:IRowHeightPropertyOwnerElementReturns the fraction height of the region in which visual is drawn.- Specified by:
getRowHeightFractionin interfaceIRowHeightPropertyOwnerElement- Returns:
- the fraction height of the region in which visual is drawn
-
getVisualSet
Description copied from interface:IAbstractChartVisualElementReturns the current VisualSet containing this VisualElement.- Specified by:
getVisualSetin interfaceIAbstractChartVisualElement<T>- Specified by:
getVisualSetin interfaceIGanttChartVisualElement<T>- Overrides:
getVisualSetin classAbstractPolylineVisualSet<T>.AbstractPolylineVisualElement- Returns:
- the current VisualSet containing this VisualElement
-
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- Overrides:
getBeginArgumentin classAbstractLineVisualSet<T>.AbstractLineVisualElement- 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- Overrides:
getEndArgumentin classAbstractLineVisualSet<T>.AbstractLineVisualElement- 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- Overrides:
getValuein classAbstractLineVisualSet<T>.AbstractLineVisualElement- Returns:
- the value of this data element
-