public abstract class RangeDecorator extends CellDecorator
Constructor and Description |
---|
RangeDecorator(RadCalendarView owner)
Creates a new instance of the
RangeDecorator class. |
Modifier and Type | Method and Description |
---|---|
void |
clearDecorations()
Removes the decorations for all cells that are currently decorated.
|
int |
getShapeColor()
Gets the color of the shape.
|
float |
getShapeScale()
Gets the shapeScale of the decorator, where 0 will have no decorator and 1 will have the decorator as big as the cell it decorates.
|
void |
renderLayer(int layerId,
Canvas canvas) |
void |
setShapeColor(int shapeColor)
Sets the color of the shape.
|
void |
setShapeScale(float shapeScale)
Sets the shapeScale of the decorator, where 0 will have no decorator and 1 will have the decorator as big as the cell it decorates.
|
void |
toggleDecorationForCell(CalendarCell cell,
int layerId)
Used to toggle the decoration of a specified cell instance using a layer id.
|
getScale, isStroked, setScale, setStroked
getColor, getStrokeWidth, render, setColor, setStrokeWidth, toggleDecorationForCell
public RangeDecorator(RadCalendarView owner)
RangeDecorator
class.owner
- the calendar instance owning this decorator.public int getShapeColor()
public void setShapeColor(int shapeColor)
shapeColor
- the new color of the shape.public float getShapeScale()
public void setShapeScale(float shapeScale)
shapeScale
- the new decorator shapeScale.public void toggleDecorationForCell(CalendarCell cell, int layerId)
Decorator
toggleDecorationForCell
in class CellDecorator
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 CellDecorator
public void clearDecorations()
Decorator
clearDecorations
in class CellDecorator