Module com.flexganttfx.view
Class StraightLinkRenderer<T extends ActivityLink<?>>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.renderer.LinkRenderer<T>
com.flexganttfx.view.graphics.renderer.StraightLinkRenderer<T>
public class StraightLinkRenderer<T extends ActivityLink<?>> extends LinkRenderer<T>
The straight link renderer is used to draw any link of type
ActivityLink. It is only used by the LinksCanvas.-
Property Summary
Properties inherited from class com.flexganttfx.view.graphics.renderer.LinkRenderer
arrowHeadColor, arrowSize, gap, offset, strokeColor, strokeWidthProperties inherited from class com.flexganttfx.view.graphics.renderer.RendererBase
alpha, enabled, snapToPixel -
Nested Class Summary
Nested classes/interfaces inherited from class com.flexganttfx.view.graphics.renderer.LinkRenderer
LinkRenderer.ArrowDirection, LinkRenderer.TargetLocation -
Constructor Summary
Constructors Constructor Description StraightLinkRenderer(GraphicsBase<?> graphics, String name)Constructs a new link renderer. -
Method Summary
Modifier and Type Method Description protected voiddrawEndToEnd(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)Draws a link in the given graphics context from the end of the source rectangle to the end of the target rectangle.protected voiddrawEndToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)Draws a link in the given graphics context from the end of the source rectangle to the start of the target rectangle.protected voiddrawStartToEnd(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)Draws a link in the given graphics context from the start of the source rectangle to the end of the target rectangle.protected voiddrawStartToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)Draws a link in the given graphics context from the start of the source rectangle to the start of the target rectangle.Methods inherited from class com.flexganttfx.view.graphics.renderer.LinkRenderer
arrowHeadColorProperty, arrowSizeProperty, calculateTargetLocation, draw, drawArrowHead, gapProperty, getArrowHeadColor, getArrowSize, getGap, getOffset, getStrokeColor, getStrokeWidth, offsetProperty, setArrowHeadColor, setArrowSize, setGap, setOffset, setStrokeColor, setStrokeWidth, strokeColorProperty, strokeWidthPropertyMethods inherited from class com.flexganttfx.view.graphics.renderer.RendererBase
alphaProperty, disableRedrawAfterPropertyChange, enabledProperty, enableRedrawAfterPropertyChange, getAlpha, getGraphics, getLocation, getName, getTimeAt, isEnabled, isSnapToPixel, redrawObservable, setAlpha, setEnabled, setSnapToPixel, snapPositionX, snapPositionY, snapSizeX, snapSizeY, snapSpaceX, snapSpaceY, snapToPixelProperty
-
Constructor Details
-
StraightLinkRenderer
Constructs a new link renderer.
-
-
Method Details
-
drawStartToStart
protected void drawStartToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect)Draws a link in the given graphics context from the start of the source rectangle to the start of the target rectangle.- Specified by:
drawStartToStartin classLinkRenderer<T extends ActivityLink<?>>- Parameters:
sourceRect- the source rectangletargetRect- the target rectangle
-
drawEndToEnd
Draws a link in the given graphics context from the end of the source rectangle to the end of the target rectangle.- Specified by:
drawEndToEndin classLinkRenderer<T extends ActivityLink<?>>- Parameters:
sourceRect- the source rectangletargetRect- the target rectangle
-
drawStartToEnd
Draws a link in the given graphics context from the start of the source rectangle to the end of the target rectangle.- Specified by:
drawStartToEndin classLinkRenderer<T extends ActivityLink<?>>- Parameters:
sourceRect- the source rectangletargetRect- the target rectangle
-
drawEndToStart
Draws a link in the given graphics context from the end of the source rectangle to the start of the target rectangle.- Specified by:
drawEndToStartin classLinkRenderer<T extends ActivityLink<?>>- Parameters:
sourceRect- the source rectangletargetRect- the target rectangle
-