Klasse RowRenderer<R extends Row<?,?,?>>


public class RowRenderer<R extends Row<?,?,?>> extends Renderer
Renders the background area of a row. It fills the row bounds with the state-dependent paint configured on the renderer while respecting padding.
  • Konstruktordetails

    • RowRenderer

      public RowRenderer(GraphicsBase<?> graphics, String name)
      Constructs a row renderer and initializes the default background fills for the supported row states.
      Parameter:
      graphics - the graphics control that uses this renderer
      name - the renderer name
  • Methodendetails

    • draw

      public final void draw(R row, GraphicsContext gc, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)
      Draws the given row.
      Parameter:
      row - the row to render
      gc - the graphics context
      w - the width
      h - the height
      selected - whether the row is selected
      hover - whether the row is hovered
      highlighted - whether the row is highlighted
      pressed - whether the row is pressed
    • drawRow

      protected void drawRow(R row, GraphicsContext gc, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)
      Draws the row contents into the graphics context.
      Parameter:
      row - the row to render
      gc - the graphics context
      w - the width
      h - the height
      selected - whether the row is selected
      hover - whether the row is hovered
      highlighted - whether the row is highlighted
      pressed - whether the row is pressed