public abstract class CellDecorator extends Decorator
Constructor and Description |
---|
CellDecorator(RadCalendarView owner)
Creates a new instance of the
CellDecorator class. |
Modifier and Type | Method and Description |
---|---|
void |
clearDecorations()
Removes the decorations for all cells that are currently decorated.
|
float |
getScale() |
boolean |
isStroked()
Gets a value determining whether the decorator will be stroked or filled.
|
void |
renderLayer(int layerId,
Canvas canvas) |
void |
setScale(float scale) |
void |
setStroked(boolean stroked)
Gets a value determining whether the decorator will be stroked or filled.
|
void |
toggleDecorationForCell(CalendarCell cell,
int layerId)
Used to toggle the decoration of a specified cell instance using a layer id.
|
getColor, getStrokeWidth, render, setColor, setStrokeWidth, toggleDecorationForCell
public CellDecorator(RadCalendarView owner)
CellDecorator
class.owner
- the calendar instance owning this decorator.public float getScale()
public void setScale(float scale)
public boolean isStroked()
true
will set the decorator to be stroked, false
will make it filled.public void setStroked(boolean stroked)
stroked
- the new style of the decorator - true
will set the decorator to be stroked, false
will make it filled.public void clearDecorations()
Decorator
clearDecorations
in class Decorator
public void toggleDecorationForCell(CalendarCell cell, int layerId)
Decorator
toggleDecorationForCell
in class Decorator
cell
- the cell to be decorated.layerId
- the id of the layer that will store the decoration.public void renderLayer(int layerId, Canvas canvas)
renderLayer
in class Decorator