Klasse CurvedLinkRenderer<T extends ActivityLink<?>>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.renderer.LinkRenderer<T>
com.flexganttfx.view.graphics.renderer.CurvedLinkRenderer<T>
A link renderer used to draw curved link lines between activities of type
ActivityLink. It is only used by the LinksCanvas.-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen com.flexganttfx.view.graphics.renderer.LinkRenderer
LinkRenderer.ArrowDirection, LinkRenderer.TargetLocation -
Eigenschaftsübersicht
Von Klasse geerbte Eigenschaften com.flexganttfx.view.graphics.renderer.LinkRenderer
arrowHeadColor, arrowSize, gap, offset, strokeColor, strokeWidthVon Klasse geerbte Eigenschaften com.flexganttfx.view.graphics.renderer.RendererBase
alpha, enabled, snapToPixel -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCurvedLinkRenderer(GraphicsBase<?> graphics, String name) Constructs a new link renderer. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected 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 path 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 path 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.final doublegetCurve()Returns the radius of the curve.final voidsetCurve(double curve) Sets the radius for the curve.Von Klasse geerbte Methoden 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, strokeWidthPropertyVon Klasse geerbte Methoden 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
-
Konstruktordetails
-
CurvedLinkRenderer
Constructs a new link renderer.
-
-
Methodendetails
-
drawStartToStart
Draws a link in the given graphics context from the start of the source rectangle to the start of the target rectangle.- Angegeben von:
drawStartToStartin KlasseLinkRenderer<T extends ActivityLink<?>>- Parameter:
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.- Angegeben von:
drawEndToEndin KlasseLinkRenderer<T extends ActivityLink<?>>- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle
-
drawStartToEnd
Draws a path in the given graphics context from the start of the source rectangle to the end of the target rectangle.- Angegeben von:
drawStartToEndin KlasseLinkRenderer<T extends ActivityLink<?>>- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle
-
drawEndToStart
Draws a path in the given graphics context from the end of the source rectangle to the start of the target rectangle.- Angegeben von:
drawEndToStartin KlasseLinkRenderer<T extends ActivityLink<?>>- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle
-
setCurve
public final void setCurve(double curve) Sets the radius for the curve. The radius can not be larger than the offset (seeLinkRenderer.setOffset(double)). Setting this value to 0 results in corners instead of curves (but then you might consider using theStraightLinkRendereras it is more efficient).- Parameter:
curve- the radius of the curve
-
getCurve
public final double getCurve()Returns the radius of the curve.- Gibt zurück:
- the curve radius
-