Class GanttVisualSet.GanttVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.visualsets.VisualSet.VisualElement
LabeledVisualSet<T>.com.amalgamasimulation.visualsets.LabeledVisualSet.LabeledVisualElement
com.amalgamasimulation.visualsets.GanttVisualSet.GanttVisualElement
- All Implemented Interfaces:
IBeginEndArgumentPropertyOwnerElement,IRowHeightPropertyOwnerElement,IAbstractChartVisualElement<T>,IGanttChartVisualElement<T>
- Enclosing class:
GanttVisualSet<T>
public class GanttVisualSet.GanttVisualElement
extends LabeledVisualSet<T>.LabeledVisualElement
implements IBeginEndArgumentPropertyOwnerElement, IGanttChartVisualElement<T>, IRowHeightPropertyOwnerElement
Internal class that represents visual element for gantt 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
ConstructorsConstructorDescriptionGanttVisualElement(T contents) Constructs visual element for the given gantt data element. -
Method Summary
Modifier and TypeMethodDescriptionDelegates a call toGanttVisualSet.getBackgroundColor(Object)for the data element corresponding to this visual element.doubleReturns the begin X-axis argument of the visual corresponding to this data element.Delegates a call toGanttVisualSet.getBorderColor(Object)for the data element corresponding to this visual element.doubleDelegates a call toGanttVisualSet.getBorderWidth(Object)for the data element corresponding to this visual element.doubleReturns the end X-axis argument of the visual corresponding to this data element.doubleDelegates a call toGanttVisualSet.getRowHeightFraction(Object)for the data element corresponding to this visual element.Returns the current VisualSet containing this VisualElement.Methods inherited from class com.amalgamasimulation.visualsets.LabeledVisualSet.LabeledVisualElement
getLabelColor, getLabelFontSize, getLabelSides, getLabelTextMethods 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
-
GanttVisualElement
Constructs visual element for the given gantt data element.- Parameters:
contents- gantt data element
-
-
Method Details
-
getBackgroundColor
Delegates a call toGanttVisualSet.getBackgroundColor(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
GanttVisualSet.getBackgroundColor(Object)
-
getBorderColor
Delegates a call toGanttVisualSet.getBorderColor(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
GanttVisualSet.getBorderColor(Object)
-
getBorderWidth
public double getBorderWidth()Delegates a call toGanttVisualSet.getBorderWidth(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
GanttVisualSet.getBorderWidth(Object)
-
getRowHeightFraction
public double getRowHeightFraction()Delegates a call toGanttVisualSet.getRowHeightFraction(Object)for the data element corresponding to this visual element.- Specified by:
getRowHeightFractionin interfaceIRowHeightPropertyOwnerElement- Returns:
- the result of a call
GanttVisualSet.getRowHeightFraction(Object)
-
getVisualSet
Description copied from interface:IAbstractChartVisualElementReturns the current VisualSet containing this VisualElement.- Specified by:
getVisualSetin interfaceIAbstractChartVisualElement<T>- Specified by:
getVisualSetin interfaceIGanttChartVisualElement<T>- 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- 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
-