Klasse LinkRenderer<T extends ActivityLink<?>>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.renderer.LinkRenderer<T>
- Bekannte direkte Unterklassen:
CurvedLinkRenderer,StraightLinkRenderer
The base class for all link renderers. It is only used by the
LinksCanvas.- Seit:
- 1.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumAn enum listing the various directions the arrow can be painted.static enumAn enumerator of possible locations that the target object can have relative to the source object. -
Eigenschaftsübersicht
EigenschaftenTypEigenschaftBeschreibungfinal ObjectProperty<Color> final IntegerPropertyThe arrow size determines how big the arrow head will be drawn.The gap determines how far the line is drawn away from the bounds of the source or target timeline object.final DoublePropertyThe offset determines the end location of the first segment of the calculated path.final ObjectProperty<Color> final DoublePropertyVon Klasse geerbte Eigenschaften com.flexganttfx.view.graphics.renderer.RendererBase
alpha, enabled, snapToPixel -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedLinkRenderer(GraphicsBase<?> graphics, String name) Constructs a new link renderer. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal ObjectProperty<Color> final IntegerPropertyThe arrow size determines how big the arrow head will be drawn.protected final LinkRenderer.TargetLocationcalculateTargetLocation(double sx, double sy, double tx, double ty) voiddraw(T link, GraphicsContext gc, Rectangle2D sourceBounds, Rectangle2D targetBounds) Draws the given link between the two activity bounds into the given graphics context.protected voiddrawArrowHead(LinkRenderer.ArrowDirection direction, GraphicsContext gc, double x, double y) protected abstract voiddrawEndToEnd(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect) Draws a path in the given graphics context from the end of the source rectangle to the end of the target rectangle.protected abstract 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 abstract 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 abstract voiddrawStartToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect) Draws a path in the given graphics context from the start of the source rectangle to the start of the target rectangle.The gap determines how far the line is drawn away from the bounds of the source or target timeline object.final ColorRuft den Wert derarrowHeadColor-Eigenschaft ab.final intRuft den Wert derarrowSize-Eigenschaft ab.final doublegetGap()The gap determines how far the line is drawn away from the bounds of the source or target timeline object.final doubleThe offset determines the end location of the first segment of the calculated path.final ColorRuft den Wert derstrokeColor-Eigenschaft ab.final doubleRuft den Wert derstrokeWidth-Eigenschaft ab.final DoublePropertyThe offset determines the end location of the first segment of the calculated path.final voidsetArrowHeadColor(Color arrowHeadColor) Legt den Wert derarrowHeadColor-Eigenschaft fest.final voidsetArrowSize(int arrowSize) Legt den Wert derarrowSize-Eigenschaft fest.final voidsetGap(double gap) The gap determines how far the line is drawn away from the bounds of the source or target timeline object.final voidsetOffset(double offset) The offset determines the end location of the first segment of the calculated path.final voidsetStrokeColor(Color strokeColor) Legt den Wert derstrokeColor-Eigenschaft fest.final voidsetStrokeWidth(double strokeWidth) Legt den Wert derstrokeWidth-Eigenschaft fest.final ObjectProperty<Color> final DoublePropertyVon 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
-
Eigenschaftsdetails
-
strokeWidth
- Siehe auch:
-
strokeColor
- Siehe auch:
-
arrowHeadColor
- Siehe auch:
-
arrowSize
The arrow size determines how big the arrow head will be drawn.- Siehe auch:
-
offset
The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.- Siehe auch:
-
gap
The gap determines how far the line is drawn away from the bounds of the source or target timeline object.- Siehe auch:
-
-
Konstruktordetails
-
LinkRenderer
Constructs a new link renderer.- Seit:
- 1.0
-
-
Methodendetails
-
calculateTargetLocation
protected final LinkRenderer.TargetLocation calculateTargetLocation(double sx, double sy, double tx, double ty) -
draw
Draws the given link between the two activity bounds into the given graphics context.- Parameter:
link- the link to drawgc- the graphics contextsourceBounds- the bounds of the source activitytargetBounds- the bounds of the target activity
-
drawStartToStart
protected abstract void drawStartToStart(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect) Draws a path in the given graphics context from the start of the source rectangle to the start of the target rectangle.- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle- Seit:
- 1.0
-
drawEndToEnd
protected abstract void drawEndToEnd(GraphicsContext gc, Rectangle2D sourceRect, Rectangle2D targetRect) Draws a path in the given graphics context from the end of the source rectangle to the end of the target rectangle.- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle- Seit:
- 1.0
-
drawStartToEnd
protected abstract void drawStartToEnd(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.- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle- Seit:
- 1.0
-
drawEndToStart
protected abstract void drawEndToStart(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.- Parameter:
sourceRect- the source rectangletargetRect- the target rectangle- Seit:
- 1.0
-
drawArrowHead
protected void drawArrowHead(LinkRenderer.ArrowDirection direction, GraphicsContext gc, double x, double y) -
getStrokeWidth
public final double getStrokeWidth()Ruft den Wert derstrokeWidth-Eigenschaft ab.- Eigenschaftsbeschreibung:
- Gibt zurück:
- Wert der Eigenschaft
strokeWidth - Siehe auch:
-
strokeWidthProperty
- Gibt zurück:
- die Eigenschaft
strokeWidth - Siehe auch:
-
setStrokeWidth
public final void setStrokeWidth(double strokeWidth) Legt den Wert derstrokeWidth-Eigenschaft fest.- Eigenschaftsbeschreibung:
- Parameter:
strokeWidth- Wert für die EigenschaftstrokeWidth- Siehe auch:
-
getStrokeColor
Ruft den Wert derstrokeColor-Eigenschaft ab.- Eigenschaftsbeschreibung:
- Gibt zurück:
- Wert der Eigenschaft
strokeColor - Siehe auch:
-
strokeColorProperty
- Gibt zurück:
- die Eigenschaft
strokeColor - Siehe auch:
-
setStrokeColor
Legt den Wert derstrokeColor-Eigenschaft fest.- Eigenschaftsbeschreibung:
- Parameter:
strokeColor- Wert für die EigenschaftstrokeColor- Siehe auch:
-
getArrowHeadColor
Ruft den Wert derarrowHeadColor-Eigenschaft ab.- Eigenschaftsbeschreibung:
- Gibt zurück:
- Wert der Eigenschaft
arrowHeadColor - Siehe auch:
-
arrowHeadColorProperty
- Gibt zurück:
- die Eigenschaft
arrowHeadColor - Siehe auch:
-
setArrowHeadColor
Legt den Wert derarrowHeadColor-Eigenschaft fest.- Eigenschaftsbeschreibung:
- Parameter:
arrowHeadColor- Wert für die EigenschaftarrowHeadColor- Siehe auch:
-
arrowSizeProperty
The arrow size determines how big the arrow head will be drawn.- Gibt zurück:
- the arrow head size
- Siehe auch:
-
getArrowSize
public final int getArrowSize()Ruft den Wert derarrowSize-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The arrow size determines how big the arrow head will be drawn.
- Gibt zurück:
- Wert der Eigenschaft
arrowSize - Siehe auch:
-
setArrowSize
public final void setArrowSize(int arrowSize) Legt den Wert derarrowSize-Eigenschaft fest.- Eigenschaftsbeschreibung:
- The arrow size determines how big the arrow head will be drawn.
- Parameter:
arrowSize- Wert für die EigenschaftarrowSize- Siehe auch:
-
offsetProperty
The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.- Gibt zurück:
- die Eigenschaft
offset - Siehe auch:
-
getOffset
public final double getOffset()The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.- Gibt zurück:
- the offset
- Seit:
- 1.0
-
setOffset
public final void setOffset(double offset) The offset determines the end location of the first segment of the calculated path. The first segment is used to move away from the start or end bounds before continuing to draw up or down.- Parameter:
offset- the offset in pixels- Seit:
- 1.0
-
gapProperty
The gap determines how far the line is drawn away from the bounds of the source or target timeline object.- Gibt zurück:
- die Eigenschaft
gap - Siehe auch:
-
getGap
public final double getGap()The gap determines how far the line is drawn away from the bounds of the source or target timeline object.- Gibt zurück:
- the gap between line and timeline objects
- Seit:
- 1.0
-
setGap
public final void setGap(double gap) The gap determines how far the line is drawn away from the bounds of the source or target timeline object.- Parameter:
gap- the distance between line and timeline objects- Seit:
- 1.0
-