Klasse CalendarActivityRenderer<A extends CalendarActivity>

Bekannte direkte Unterklassen:
WeekendCalendarActivityRenderer

public class CalendarActivityRenderer<A extends CalendarActivity> extends ActivityRenderer<A>
Renders calendar activities as row-spanning background fills. It paints translucent blocks and borders for calendar entries without producing interactive activity bounds.
  • Konstruktordetails

    • CalendarActivityRenderer

      public CalendarActivityRenderer(GraphicsBase<?> graphics, String name)
      Constructs a calendar activity renderer with the default fill and stroke styling for calendar entries.
      Parameter:
      graphics - the graphics control that uses this renderer
      name - the renderer name
  • Methodendetails

    • drawActivity

      protected ActivityBounds drawActivity(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)
      Draws the calendar activity and returns the resulting bounds.
      Setzt außer Kraft:
      drawActivity in Klasse ActivityRenderer<A extends CalendarActivity>
      Parameter:
      activityRef - 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, or null for background fills