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

Typparameter:
R - the type of the rows

public class RowLayer<R extends Row<?,?,?>> extends SystemLayer<R>
Draws the background of each row. The layer can be configured with pluggable renderers that are mapped to the type of the row. Applications can register their own renderers by calling setRowRenderer(Class, RowRenderer).
Seit:
1.0
Siehe auch:
  • Konstruktordetails

    • RowLayer

      public RowLayer(GraphicsBase<R> graphics)
      Constructs a new row layer.
      Parameter:
      graphics - the graphics view that owns the layer
  • Methodendetails

    • drawLayer

      public void drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
      Draws the background renderer for the current row.
      Angegeben von:
      drawLayer in Klasse SystemLayer<R extends Row<?,?,?>>
      Parameter:
      canvas - the canvas to draw on
      startTime - the visible start time
      endTime - the visible end time
    • setRowRenderer

      public final void setRowRenderer(Class<Row> clazz, RowRenderer<?> renderer)
      Associates a row renderer with the given row type.
      Parameter:
      clazz - the row type
      renderer - the renderer to use for that type
    • getRowRenderer

      public final <RT extends Row<?,?,?>> RowRenderer<RT> getRowRenderer(Class<RT> clazz)
      Returns the renderer registered for the given row type.
      Typparameter:
      RT - the row type
      Parameter:
      clazz - the row type
      Gibt zurück:
      the matching renderer, or null if none is registered