public class SegmentDecorator extends Decorator
Constructor and Description |
---|
SegmentDecorator(RadCalendarView owner)
Creates a new instance of the
SegmentDecorator class. |
Modifier and Type | Method and Description |
---|---|
void |
clearDecorations()
Removes the decorations for all cells that are currently decorated.
|
void |
renderLayer(int layerId,
Canvas canvas) |
void |
setStrokeWidth(float value)
Sets a new value for the getWidth of the cell decoration lines.
|
void |
toggleDecorationForCell(CalendarCell cell,
int layerId)
Used to toggle the decoration of a specified cell instance using a layer id.
|
void |
toggleDecorationForCell(int left,
int top,
int right,
int bottom)
Used to toggle the decoration of a specified cell instance by using its border coordinates.
|
void |
toggleDecorationForCell(int left,
int top,
int right,
int bottom,
int layerId)
Used to toggle the decoration of a specified cell instance by using its border coordinates.
|
getColor, getStrokeWidth, render, setColor, toggleDecorationForCell
public SegmentDecorator(RadCalendarView owner)
SegmentDecorator
class.owner
- the calendar instance owning this decorator.public void setStrokeWidth(float value)
Decorator
setStrokeWidth
in class Decorator
value
- the new getWidth for the cell decoration linespublic void clearDecorations()
Decorator
clearDecorations
in class Decorator
public void renderLayer(int layerId, Canvas canvas)
renderLayer
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 toggleDecorationForCell(int left, int top, int right, int bottom)
left
- the left coordinate of the cell.top
- the top coordinate of the cell.right
- the right coordinate of the cell.bottom
- the bottom coordinate of the cell.public void toggleDecorationForCell(int left, int top, int right, int bottom, int layerId)
left
- the left coordinate of the cell.top
- the top coordinate of the cell.right
- the right coordinate of the cell.bottom
- the bottom coordinate of the cell.layerId
- the id of the layer that will store the decoration.