public class EventRenderer extends Object
RadCalendarView
.Constructor and Description |
---|
EventRenderer(Context context)
Creates a new instance of the
EventRenderer class. |
Modifier and Type | Method and Description |
---|---|
EventRenderMode |
getEventRenderMode()
Gets the current
EventRenderMode
which determines how the events should be drawn. |
float |
getEventTextSize()
Gets the text size for drawing of events.
|
void |
renderEvents(Canvas canvas,
CalendarDayCell cell)
Renders the events for the provided cell inside the provided canvas.
|
void |
setEventRenderMode(EventRenderMode eventRenderMode)
Sets a new
EventRenderMode
which determines how the events will be drawn. |
void |
setEventTextSize(float eventTextSize)
Sets a new size that will be used by this renderer to draw events.
|
public EventRenderer(Context context)
EventRenderer
class.context
- context to be usedpublic void renderEvents(Canvas canvas, CalendarDayCell cell)
canvas
- drawing canvascell
- cell which contains the events that should be drawnpublic EventRenderMode getEventRenderMode()
EventRenderMode
which determines how the events should be drawn.public void setEventRenderMode(EventRenderMode eventRenderMode)
EventRenderMode
which determines how the events will be drawn.eventRenderMode
- the new event render modepublic float getEventTextSize()
public void setEventTextSize(float eventTextSize)
eventTextSize
- the new text size