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

Typparameter:
R - the type of the rows

public class CalendarLayer<R extends Row<?,?,?>> extends SystemLayer<R>
Draws the entries returned by the calendars attached to a row or attached to the entire graphics view. The calendar layer uses plugable renderers that are mapped to the entry types. Applications can register their own renderers by calling setCalendarActivityRenderer(Class, CalendarActivityRenderer).
Seit:
1.0
Siehe auch:
  • Konstruktordetails

    • CalendarLayer

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

    • drawLayer

      public void drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
      Draws the visible calendar activities for the current row and time range.
      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
    • setCalendarActivityRenderer

      public final <A extends Activity> void setCalendarActivityRenderer(Class<? extends A> clazz, CalendarActivityRenderer<? extends A> renderer)
      Associates a renderer with the given calendar activity type.
      Typparameter:
      A - the activity type
      Parameter:
      clazz - the activity type
      renderer - the renderer to associate with the type
    • getCalendarActivityRenderer

      public final <A extends CalendarActivity> CalendarActivityRenderer<? extends A> getCalendarActivityRenderer(Class<? extends A> clazz)
      Returns the renderer registered for the given calendar activity type.
      Typparameter:
      A - the activity type
      Parameter:
      clazz - the activity type
      Gibt zurück:
      the matching renderer, or null if none is registered