Klasse CompletableActivityRenderer<A extends CompletableActivity>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.renderer.Renderer
com.flexganttfx.view.graphics.renderer.ActivityRenderer<A>
com.flexganttfx.view.graphics.renderer.ActivityBarRenderer<A>
com.flexganttfx.view.graphics.renderer.CompletableActivityRenderer<A>
public class CompletableActivityRenderer<A extends CompletableActivity>
extends ActivityBarRenderer<A>
Renders completable activities with an additional completion overlay.
The overlay width reflects the activity's percentage complete and can be styled for the different interaction states.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ActivityBarRenderer
ActivityBarRenderer.TextPosition -
Eigenschaftsübersicht
EigenschaftenTypEigenschaftBeschreibungfinal ObjectProperty<Paint> The fillCompletionHighlight property.final ObjectProperty<Paint> The fillCompletionHover property.final ObjectProperty<Paint> The fillCompletionPressed property.final ObjectProperty<Paint> The fillCompletion property.final ObjectProperty<Paint> The fillCompletionSelected property.Von Klasse geerbte Eigenschaften ActivityBarRenderer
autoFixText, barHeight, font, glossy, textFillHighlight, textFillHover, textFillPressed, textFill, textFillSelected, textGapVon Klasse geerbte Eigenschaften ActivityRenderer
cornerRadius, cornersRounded, lineWidth, strokeHighlight, strokeHover, strokePressed, stroke, strokeSelectedVon Klasse geerbte Eigenschaften Renderer
fillHighlight, fillHover, fillPressed, fill, fillSelected, paddingVon Klasse geerbte Eigenschaften RendererBase
alpha, enabled, snapToPixel -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCompletableActivityRenderer(GraphicsBase<?> graphics, String name) Constructs a completable activity renderer and initializes the default completion overlay styling. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected ActivityBoundsdrawActivity(ActivityRef<A> path, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) Draws the activity, including its completion overlay, and returns the resulting bounds.protected voiddrawCompletion(ActivityRef<A> activityRef, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) Draws the completion overlay for the activity.final ObjectProperty<Paint> The fillCompletionHighlight property.final ObjectProperty<Paint> The fillCompletionHover property.final ObjectProperty<Paint> The fillCompletionPressed property.final ObjectProperty<Paint> The fillCompletion property.final ObjectProperty<Paint> The fillCompletionSelected property.final PaintRuft den Wert derfillCompletion-Eigenschaft ab.protected PaintgetFillCompletion(boolean selected, boolean hover, boolean highlighted, boolean pressed) Returns the completion fill paint for the given activity state.final PaintRuft den Wert derfillCompletionHighlight-Eigenschaft ab.final PaintRuft den Wert derfillCompletionHover-Eigenschaft ab.final PaintRuft den Wert derfillCompletionPressed-Eigenschaft ab.final PaintRuft den Wert derfillCompletionSelected-Eigenschaft ab.final voidsetFillCompletion(Paint fill) Legt den Wert derfillCompletion-Eigenschaft fest.final voidLegt den Wert derfillCompletionHighlight-Eigenschaft fest.final voidsetFillCompletionHover(Paint fill) Legt den Wert derfillCompletionHover-Eigenschaft fest.final voidLegt den Wert derfillCompletionPressed-Eigenschaft fest.final voidLegt den Wert derfillCompletionSelected-Eigenschaft fest.Von Klasse geerbte Methoden ActivityBarRenderer
autoFixTextProperty, barHeightProperty, drawBackground, drawBorder, drawText, fontProperty, getBarHeight, getFont, getTextFill, getTextFill, getTextFillHighlight, getTextFillHover, getTextFillPressed, getTextFillSelected, getTextGap, glossyProperty, isAutoFixText, isGlossy, isTextVisible, setAutoFixText, setBarHeight, setFont, setGlossy, setTextFill, setTextFillHighlight, setTextFillHover, setTextFillPressed, setTextFillSelected, setTextGap, textFillHighlightProperty, textFillHoverProperty, textFillPressedProperty, textFillProperty, textFillSelectedProperty, textGapPropertyVon Klasse geerbte Methoden ActivityRenderer
cornerRadiusProperty, cornersRoundedProperty, draw, getCornerRadius, getLineWidth, getStroke, getStroke, getStrokeHighlight, getStrokeHover, getStrokePressed, getStrokeSelected, isCornersRounded, lineWidthProperty, setCornerRadius, setCornersRounded, setLineWidth, setStroke, setStrokeHighlight, setStrokeHover, setStrokePressed, setStrokeSelected, strokeHighlightProperty, strokeHoverProperty, strokePressedProperty, strokeProperty, strokeSelectedPropertyVon Klasse geerbte Methoden Renderer
fillHighlightProperty, fillHoverProperty, fillPressedProperty, fillProperty, fillSelectedProperty, getFill, getFill, getFillHighlight, getFillHover, getFillPressed, getFillSelected, getPadding, paddingProperty, setFill, setFillHighlight, setFillHover, setFillPressed, setFillSelected, setPaddingVon Klasse geerbte Methoden RendererBase
alphaProperty, disableRedrawAfterPropertyChange, enabledProperty, enableRedrawAfterPropertyChange, getAlpha, getGraphics, getLocation, getName, getTimeAt, isEnabled, isSnapToPixel, redrawObservable, setAlpha, setEnabled, setSnapToPixel, snapPositionX, snapPositionY, snapSizeX, snapSizeY, snapSpaceX, snapSpaceY, snapToPixelProperty
-
Eigenschaftsdetails
-
fillCompletion
The fillCompletion property. Defines the default fill paint for the completion overlay.- Siehe auch:
-
fillCompletionHover
The fillCompletionHover property. Defines the completion fill paint used while an activity is hovered.- Siehe auch:
-
fillCompletionHighlight
The fillCompletionHighlight property. Defines the completion fill paint used while an activity is highlighted.- Siehe auch:
-
fillCompletionSelected
The fillCompletionSelected property. Defines the completion fill paint used while an activity is selected.- Siehe auch:
-
fillCompletionPressed
The fillCompletionPressed property. Defines the completion fill paint used while an activity is pressed.- Siehe auch:
-
-
Konstruktordetails
-
CompletableActivityRenderer
Constructs a completable activity renderer and initializes the default completion overlay styling.- Parameter:
graphics- the graphics control that uses this renderername- the renderer name
-
-
Methodendetails
-
drawActivity
protected ActivityBounds drawActivity(ActivityRef<A> path, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) Draws the activity, including its completion overlay, and returns the resulting bounds.- Setzt außer Kraft:
drawActivityin KlasseActivityBarRenderer<A extends CompletableActivity>- Parameter:
path- the activity reference to renderposition- the activity positiongc- the graphics contextx- the x coordinatey- the y coordinatew- the widthh- the heightselected- whether the activity is selectedhover- whether the activity is hoveredhighlighted- whether the activity is highlightedpressed- whether the activity is pressed- Gibt zurück:
- the bounds of the rendered activity
-
drawCompletion
protected void drawCompletion(ActivityRef<A> activityRef, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) Draws the completion overlay for the activity.- Parameter:
activityRef- the activity reference to rendergc- the graphics contextx- the x coordinatey- the y coordinatew- the widthh- the heightselected- whether the activity is selectedhover- whether the activity is hoveredhighlighted- whether the activity is highlightedpressed- whether the activity is pressed
-
getFillCompletion
protected Paint getFillCompletion(boolean selected, boolean hover, boolean highlighted, boolean pressed) Returns the completion fill paint for the given activity state.- Parameter:
selected- whether the activity is selectedhover- whether the activity is hoveredhighlighted- whether the activity is highlightedpressed- whether the activity is pressed- Gibt zurück:
- the completion fill paint to use
-
fillCompletionProperty
The fillCompletion property. Defines the default fill paint for the completion overlay.- Gibt zurück:
- the fillCompletion property
- Siehe auch:
-
setFillCompletion
Legt den Wert derfillCompletion-Eigenschaft fest.- Eigenschaftsbeschreibung:
- The fillCompletion property. Defines the default fill paint for the completion overlay.
- Parameter:
fill- Wert für die EigenschaftfillCompletion- Siehe auch:
-
getFillCompletion
Ruft den Wert derfillCompletion-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The fillCompletion property. Defines the default fill paint for the completion overlay.
- Gibt zurück:
- Wert der Eigenschaft
fillCompletion - Siehe auch:
-
fillCompletionHoverProperty
The fillCompletionHover property. Defines the completion fill paint used while an activity is hovered.- Gibt zurück:
- the fillCompletionHover property
- Siehe auch:
-
setFillCompletionHover
Legt den Wert derfillCompletionHover-Eigenschaft fest.- Eigenschaftsbeschreibung:
- The fillCompletionHover property. Defines the completion fill paint used while an activity is hovered.
- Parameter:
fill- Wert für die EigenschaftfillCompletionHover- Siehe auch:
-
getFillCompletionHover
Ruft den Wert derfillCompletionHover-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The fillCompletionHover property. Defines the completion fill paint used while an activity is hovered.
- Gibt zurück:
- Wert der Eigenschaft
fillCompletionHover - Siehe auch:
-
fillCompletionHighlightProperty
The fillCompletionHighlight property. Defines the completion fill paint used while an activity is highlighted.- Gibt zurück:
- the fillCompletionHighlight property
- Siehe auch:
-
setFillCompletionHighlight
Legt den Wert derfillCompletionHighlight-Eigenschaft fest.- Eigenschaftsbeschreibung:
- The fillCompletionHighlight property. Defines the completion fill paint used while an activity is highlighted.
- Parameter:
fill- Wert für die EigenschaftfillCompletionHighlight- Siehe auch:
-
getFillCompletionHighlight
Ruft den Wert derfillCompletionHighlight-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The fillCompletionHighlight property. Defines the completion fill paint used while an activity is highlighted.
- Gibt zurück:
- Wert der Eigenschaft
fillCompletionHighlight - Siehe auch:
-
fillCompletionSelectedProperty
The fillCompletionSelected property. Defines the completion fill paint used while an activity is selected.- Gibt zurück:
- the fillCompletionSelected property
- Siehe auch:
-
setFillCompletionSelected
Legt den Wert derfillCompletionSelected-Eigenschaft fest.- Eigenschaftsbeschreibung:
- The fillCompletionSelected property. Defines the completion fill paint used while an activity is selected.
- Parameter:
fill- Wert für die EigenschaftfillCompletionSelected- Siehe auch:
-
getFillCompletionSelected
Ruft den Wert derfillCompletionSelected-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The fillCompletionSelected property. Defines the completion fill paint used while an activity is selected.
- Gibt zurück:
- Wert der Eigenschaft
fillCompletionSelected - Siehe auch:
-
fillCompletionPressedProperty
The fillCompletionPressed property. Defines the completion fill paint used while an activity is pressed.- Gibt zurück:
- the fillCompletionPressed property
- Siehe auch:
-
setFillCompletionPressed
Legt den Wert derfillCompletionPressed-Eigenschaft fest.- Eigenschaftsbeschreibung:
- The fillCompletionPressed property. Defines the completion fill paint used while an activity is pressed.
- Parameter:
fill- Wert für die EigenschaftfillCompletionPressed- Siehe auch:
-
getFillCompletionPressed
Ruft den Wert derfillCompletionPressed-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The fillCompletionPressed property. Defines the completion fill paint used while an activity is pressed.
- Gibt zurück:
- Wert der Eigenschaft
fillCompletionPressed - Siehe auch:
-