Klasse CompletableActivityRenderer<A extends CompletableActivity>


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.
  • Eigenschaftsdetails

  • Konstruktordetails

    • CompletableActivityRenderer

      public CompletableActivityRenderer(GraphicsBase<?> graphics, String name)
      Constructs a completable activity renderer and initializes the default completion overlay styling.
      Parameter:
      graphics - the graphics control that uses this renderer
      name - 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:
      drawActivity in Klasse ActivityBarRenderer<A extends CompletableActivity>
      Parameter:
      path - the activity reference to render
      position - the activity position
      gc - the graphics context
      x - the x coordinate
      y - the y coordinate
      w - the width
      h - the height
      selected - whether the activity is selected
      hover - whether the activity is hovered
      highlighted - whether the activity is highlighted
      pressed - 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 render
      gc - the graphics context
      x - the x coordinate
      y - the y coordinate
      w - the width
      h - the height
      selected - whether the activity is selected
      hover - whether the activity is hovered
      highlighted - whether the activity is highlighted
      pressed - 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 selected
      hover - whether the activity is hovered
      highlighted - whether the activity is highlighted
      pressed - whether the activity is pressed
      Gibt zurück:
      the completion fill paint to use
    • fillCompletionProperty

      public final ObjectProperty<Paint> fillCompletionProperty()
      The fillCompletion property. Defines the default fill paint for the completion overlay.
      Gibt zurück:
      the fillCompletion property
      Siehe auch:
    • setFillCompletion

      public final void setFillCompletion(Paint fill)
      Legt den Wert der fillCompletion-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      The fillCompletion property. Defines the default fill paint for the completion overlay.
      Parameter:
      fill - Wert für die Eigenschaft fillCompletion
      Siehe auch:
    • getFillCompletion

      public final Paint getFillCompletion()
      Ruft den Wert der fillCompletion-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

      public final ObjectProperty<Paint> fillCompletionHoverProperty()
      The fillCompletionHover property. Defines the completion fill paint used while an activity is hovered.
      Gibt zurück:
      the fillCompletionHover property
      Siehe auch:
    • setFillCompletionHover

      public final void setFillCompletionHover(Paint fill)
      Legt den Wert der fillCompletionHover-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      The fillCompletionHover property. Defines the completion fill paint used while an activity is hovered.
      Parameter:
      fill - Wert für die Eigenschaft fillCompletionHover
      Siehe auch:
    • getFillCompletionHover

      public final Paint getFillCompletionHover()
      Ruft den Wert der fillCompletionHover-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

      public final ObjectProperty<Paint> fillCompletionHighlightProperty()
      The fillCompletionHighlight property. Defines the completion fill paint used while an activity is highlighted.
      Gibt zurück:
      the fillCompletionHighlight property
      Siehe auch:
    • setFillCompletionHighlight

      public final void setFillCompletionHighlight(Paint fill)
      Legt den Wert der fillCompletionHighlight-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      The fillCompletionHighlight property. Defines the completion fill paint used while an activity is highlighted.
      Parameter:
      fill - Wert für die Eigenschaft fillCompletionHighlight
      Siehe auch:
    • getFillCompletionHighlight

      public final Paint getFillCompletionHighlight()
      Ruft den Wert der fillCompletionHighlight-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

      public final ObjectProperty<Paint> fillCompletionSelectedProperty()
      The fillCompletionSelected property. Defines the completion fill paint used while an activity is selected.
      Gibt zurück:
      the fillCompletionSelected property
      Siehe auch:
    • setFillCompletionSelected

      public final void setFillCompletionSelected(Paint fill)
      Legt den Wert der fillCompletionSelected-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      The fillCompletionSelected property. Defines the completion fill paint used while an activity is selected.
      Parameter:
      fill - Wert für die Eigenschaft fillCompletionSelected
      Siehe auch:
    • getFillCompletionSelected

      public final Paint getFillCompletionSelected()
      Ruft den Wert der fillCompletionSelected-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

      public final ObjectProperty<Paint> fillCompletionPressedProperty()
      The fillCompletionPressed property. Defines the completion fill paint used while an activity is pressed.
      Gibt zurück:
      the fillCompletionPressed property
      Siehe auch:
    • setFillCompletionPressed

      public final void setFillCompletionPressed(Paint fill)
      Legt den Wert der fillCompletionPressed-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      The fillCompletionPressed property. Defines the completion fill paint used while an activity is pressed.
      Parameter:
      fill - Wert für die Eigenschaft fillCompletionPressed
      Siehe auch:
    • getFillCompletionPressed

      public final Paint getFillCompletionPressed()
      Ruft den Wert der fillCompletionPressed-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: