public abstract class CalendarCell extends CalendarTextElement
BOTTOM, CENTER, CENTER_HORIZONTAL, CENTER_VERTICAL, LEFT, RIGHT, TOP
Constructor and Description |
---|
CalendarCell(RadCalendarView owner)
Initializes a new instance of the
CalendarCell class with passed
Context . |
Modifier and Type | Method and Description |
---|---|
int |
getBorderColor()
Gets the border color of the cell.
|
float |
getBorderWidth()
Gets the border width of the cell.
|
CalendarCellType |
getCellType()
Gets the
CalendarCellType
object that defines the type of this CalendarCell. |
long |
getDate()
Gets the date represented by the current CalendarCell.
|
CalendarRow |
getRow()
Gets the row that currently holds the cell.
|
boolean |
isDrawBorderInsideCell() |
boolean |
isLastCellInRow() |
boolean |
isToday()
Gets a value that determines whether the current cell holds the today's date.
|
boolean |
isWeekend() |
void |
postRender(Canvas canvas)
This method is called after calling the
CalendarElement.render(android.graphics.Canvas) method. |
void |
setAsToday(boolean cellToday)
Sets a value that determines whether the current cell holds the today's date.
|
void |
setBorderColor(int color)
Sets the border color of the cell.
|
void |
setBorderWidth(float width)
Sets the border width of the cell.
|
void |
setCellType(CalendarCellType value)
Sets a
CalendarCellType
object that defines the type of information that will be visualized with
this CalendarCell - date, day name, week number, etc. |
void |
setDate(long date)
Sets the date represented by the current CalendarCell.
|
void |
setDrawBorderInsideCell(boolean value) |
void |
setLastCellInRow(boolean lastCellInRow) |
void |
setRow(CalendarRow row)
Sets the current row holding the cell.
|
arrange, getText, getTextColor, getTextColorDisabled, getTextColorEnabled, getTextPaint, getTextPosition, getTextSize, getTypeface, render, setEnabled, setPadding, setText, setTextColor, setTextColor, setTextColorDisabled, setTextColorEnabled, setTextPaint, setTextPosition, setTextSize, setTypeface, textPositionX, textPositionY
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, setPaddingHorizontal, setPaddingVertical, setParent, setVirtualOffsets, setVirtualOffsetX, setVirtualOffsetY, setVisibility, translate, virtualBottom, virtualLeft, virtualRight, virtualTop, virtualTranslate
public CalendarCell(RadCalendarView owner)
CalendarCell
class with passed
Context
.owner
- the calendar instance owning this cell.public boolean isLastCellInRow()
public void setLastCellInRow(boolean lastCellInRow)
public int getBorderColor()
public void setBorderColor(int color)
color
- the new border color.public float getBorderWidth()
public void setBorderWidth(float width)
width
- the new border width.public boolean isWeekend()
public CalendarRow getRow()
public void setRow(CalendarRow row)
row
- the new holding row.public CalendarCellType getCellType()
CalendarCellType
object that defines the type of this CalendarCell.public void setCellType(CalendarCellType value)
CalendarCellType
object that defines the type of information that will be visualized with
this CalendarCell - date, day name, week number, etc.value
- the new cell type valuepublic long getDate()
public void setDate(long date)
date
- the represented datepublic boolean isToday()
true
if the today's date is being presented by this cell, false
otherwise.public void setAsToday(boolean cellToday)
cellToday
- true
if the today's date is being presented by this cell, false
otherwise.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 boolean isDrawBorderInsideCell()
public void setDrawBorderInsideCell(boolean value)