Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class DefaultScheduleItemRenderer
- Object
- DefaultScheduleItemRenderer
ImplementsScheduleItemRenderer
The renderer a Scheduler starts with: a rounded block in the item’s
colour with its title, and its time and detail where they fit.
The colours and the font come from a UIID: the item’s own when it has
one, otherwise SchedulerItem, SchedulerBackgroundItem or
SchedulerBlocked by its kind. An item or a resource with a colour of
its own overrides the background, and the text turns black or white to
stay readable on it.
Constructors
public DefaultScheduleItemRenderer() |
Methods
Inherited fields
Inherited methods
Constructor details
DefaultScheduleItemRenderer
public DefaultScheduleItemRenderer()Method details
paintItem
public void paintItem(Graphics g, Scheduler scheduler, ScheduleItem item, int x, int y, int width, int height, int state)Paints
item into a rectangle. The clip is already inside the view;
an implementation that sets one of its own restores it.Parameters
gGraphics- Not documented.
schedulerScheduler- Not documented.
itemScheduleItem- Not documented.
xint- Not documented.
yint- Not documented.
widthint- Not documented.
heightint- Not documented.
stateint- a combination of the constants of this interface
uiidOf
protected String uiidOf(ScheduleItem item)The UIID an item is painted with.
paintText
protected void paintText(Graphics g, Scheduler scheduler, ScheduleItem item, Font font, int color, int x, int y, int width, int height, int state)Draws the title, and under it the time and the detail when the
rectangle is tall enough.