Class ConnectionVisualSet.ConnectionVisualElement
java.lang.Object
VisualSet<T>.com.amalgamasimulation.visualsets.VisualSet.VisualElement
com.amalgamasimulation.visualsets.ConnectionVisualSet.ConnectionVisualElement
- All Implemented Interfaces:
IBeginEndArgumentPropertyOwnerElement,IAbstractChartVisualElement<T>,IGanttChartVisualElement<T>
- Enclosing class:
ConnectionVisualSet<T>
public class ConnectionVisualSet.ConnectionVisualElement
extends VisualSet<T>.VisualElement
implements IBeginEndArgumentPropertyOwnerElement, IGanttChartVisualElement<T>
Internal class that represents visual element for connection 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
ConstructorsConstructorDescriptionConnectionVisualElement(T contents) Constructs visual element for the given connection 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.Delegates a call toConnectionVisualSet.getLineStyle(Object)for the data element corresponding to this visual element.Delegates a call toConnectionVisualSet.getSourceGanttChartRow(Object)for the data element corresponding to this visual element.Delegates a call toConnectionVisualSet.getTargetGanttChartRow(Object)for the data element corresponding to this visual 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
-
ConnectionVisualElement
Constructs visual element for the given connection data element.- Parameters:
contents- line data element
-
-
Method Details
-
getSourceGanttChartRow
Delegates a call toConnectionVisualSet.getSourceGanttChartRow(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
ConnectionVisualSet.getSourceGanttChartRow(Object)
-
getTargetGanttChartRow
Delegates a call toConnectionVisualSet.getTargetGanttChartRow(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
ConnectionVisualSet.getTargetGanttChartRow(Object)
-
getLineStyle
Delegates a call toConnectionVisualSet.getLineStyle(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
ConnectionVisualSet.getLineStyle(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
-