public abstract class Decorator extends Object
Constructor and Description |
---|
Decorator(RadCalendarView owner)
Creates an instance of the
CellDecorationsLayer class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
clearDecorations()
Removes the decorations for all cells that are currently decorated.
|
int |
getColor()
Gets the color to be used for decorating.
|
float |
getStrokeWidth()
Returns the getWidth of the cell decoration lines.
|
void |
render(Canvas canvas)
Gets called by the calendar to render the decorations that do not belong to a specific layer, but are rather stored on the default or base layer which is 0.
|
abstract void |
renderLayer(int layerId,
Canvas canvas) |
void |
setColor(int color)
Sets the color to be used for decorating.
|
void |
setStrokeWidth(float value)
Sets a new value for the getWidth of the cell decoration lines.
|
void |
toggleDecorationForCell(CalendarCell cell)
Used to toggle the decoration of a specified cell instance.
|
abstract void |
toggleDecorationForCell(CalendarCell cell,
int layerId)
Used to toggle the decoration of a specified cell instance using a layer id.
|
public Decorator(RadCalendarView owner)
CellDecorationsLayer
class.owner
- the current calendar instance owning the element.public int getColor()
public void setColor(int color)
color
- the new decorations color.public float getStrokeWidth()
public void setStrokeWidth(float value)
value
- the new getWidth for the cell decoration linespublic abstract void clearDecorations()
public void render(Canvas canvas)
canvas
- the canvas for drawing the decorations.public abstract void renderLayer(int layerId, Canvas canvas)
public void toggleDecorationForCell(CalendarCell cell)
cell
- the cell to be decorated.public abstract void toggleDecorationForCell(CalendarCell cell, int layerId)
cell
- the cell to be decorated.layerId
- the id of the layer that will store the decoration.