public class CalendarRow extends CalendarElement
CalendarCell
instances.Modifier and Type | Field and Description |
---|---|
static int |
WEEK_NUMBER_CELL_INDEX |
BOTTOM, CENTER, CENTER_HORIZONTAL, CENTER_VERTICAL, LEFT, RIGHT, TOP
Constructor and Description |
---|
CalendarRow(RadCalendarView owner)
Creates a new instance of the
CalendarRow class. |
Modifier and Type | Method and Description |
---|---|
void |
addCell(CalendarCell cell)
Adds a cell to the current row.
|
int |
cellsCount()
The number of cells currently added to this row instance.
|
CalendarCell |
getCell(int index)
Gets a cell at a given index.
|
void |
postRender(Canvas canvas)
This method is called after calling the
CalendarElement.render(android.graphics.Canvas) method. |
void |
render(Canvas canvas)
This method is called at onDraw() call from the main calendar view instance and is used for drawing all custom elements building the calendar structure.
|
void |
setVirtualOffsets(int offsetX,
int offsetY)
Sets the virtual offsets of the element along the x and y axes.
|
arrange, calcBorderRect, getAlpha, getBackgroundColorDisabled, getBackgroundColorEnabled, getBitmap, getBitmapPosition, getBottom, getHeight, getLeft, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getRight, getTop, getVirtualOffsetX, getVirtualOffsetY, getVisibility, getWidth, isEnabled, pointIsInsideElement, setAlpha, setBackgroundColor, setBackgroundColorDisabled, setBackgroundColorEnabled, setBitmap, setBitmapPosition, setEnabled, setPadding, setPaddingHorizontal, setPaddingVertical, setParent, setVirtualOffsetX, setVirtualOffsetY, setVisibility, translate, virtualBottom, virtualLeft, virtualRight, virtualTop, virtualTranslate
public static final int WEEK_NUMBER_CELL_INDEX
public CalendarRow(RadCalendarView owner)
CalendarRow
class.owner
- the current calendar that owns this row instance.public void addCell(CalendarCell cell)
cell
- the cell to be added.public CalendarCell getCell(int index)
index
- the index of the cell.public int cellsCount()
public void render(Canvas canvas)
CalendarElement
render
in class CalendarElement
canvas
- the canvas of the main calendar view instance.public void postRender(Canvas canvas)
CalendarElement
CalendarElement.render(android.graphics.Canvas)
method.postRender
in class CalendarElement
canvas
- the canvas of the main calendar view instance.public void setVirtualOffsets(int offsetX, int offsetY)
CalendarElement
setVirtualOffsets
in class CalendarElement
offsetX
- the new virtual offset along the x axis.offsetY
- the new virtual offset along the y axis.