public class CalendarMonthCell extends CalendarCell
View
which represent a visual within RadCalendarView
.
This visual represents a month while the calendar view displays a full year.BOTTOM, CENTER, CENTER_HORIZONTAL, CENTER_VERTICAL, LEFT, RIGHT, TOP
Constructor and Description |
---|
CalendarMonthCell(RadCalendarView owner)
Creates an instance of the
CalendarMonthCell class. |
Modifier and Type | Method and Description |
---|---|
int |
getDateTextColorDisabled()
Gets the date text color for the disabled state.
|
int |
getDateTextColorEnabled()
Gets the date text color for the enabled state.
|
float |
getDateTextSize()
Gets the date text size.
|
Typeface |
getDateTypeFace()
Gets the date type face.
|
int |
getDayNameTextColorDisabled()
Gets the day names text color for disabled state.
|
int |
getDayNameTextColorEnabled()
Gets the current day names text color for the enabled state.
|
float |
getDayNameTextSize()
Gets the current day names text size.
|
Typeface |
getDayNameTypeFace()
Gets the day names type face.
|
String |
getMonthName()
Gets the month name for this cell.
|
int |
getMonthNamePosition()
Gets a value determining the position of the month name.
|
int |
getMonthNameTextColorDisabled()
Gets the current month name text color for the disabled state.
|
int |
getMonthNameTextColorEnabled()
Gets the current month name text color for the enabled state.
|
float |
getMonthNameTextSize()
Gets the current month name font size.
|
float |
getMonthNameTextSizeCompact()
Gets the current month name font size in compact mode.
|
Typeface |
getMonthNameTypeFace()
Gets the current month name type face.
|
double |
getOffsetBottom()
Gets the current offset percentage on the bottom of the available space for drawing the day names and the dates bellow the month name.
|
double |
getOffsetLeft()
Gets the current offset percentage on the left of the available space for drawing the day names and the dates bellow the month name.
|
double |
getOffsetRight()
Gets the current offset percentage on the right of the available space for drawing the day names and the dates bellow the month name.
|
double |
getOffsetTop()
Gets the current offset percentage on the top of the available space for drawing the day names and the dates bellow the month name.
|
int |
numberOfDays()
Gets the number of days in the current month.
|
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 |
setDate(long date)
Sets the date represented by the current CalendarCell.
|
void |
setDateTextColor(int colorEnabled,
int colorDisabled)
Sets the date text color for both enabled and disabled states.
|
void |
setDateTextColorDisabled(int dateTextColorDisabled)
Sets the date text color for the disabled state.
|
void |
setDateTextColorEnabled(int dateTextColorEnabled)
Sets the date text color for the enabled state.
|
void |
setDateTextSize(float dateTextSize)
Sets the date text size.
|
void |
setDateTypeFace(Typeface dateTypeFace)
Sets the date type face.
|
void |
setDayNamesColor(int colorEnabled,
int colorDisabled)
Sets the day names text color for both enabled and disabled states.
|
void |
setDayNameTextColorDisabled(int dayNameTextColorDisabled)
Sets the day names text color for disabled state.
|
void |
setDayNameTextColorEnabled(int dayNameTextColorEnabled)
Sets the current day names text color for the enabled state.
|
void |
setDayNameTextSize(float dayNameTextSize)
Sets the current day names text size.
|
void |
setDayNameTypeFace(Typeface dayNameTypeFace)
Sets the day names type face.
|
void |
setEnabled(boolean enabled)
Sets a value determining whether the current element is enabled.
|
void |
setMonthName(String monthName)
Sets the month name for this cell.
|
void |
setMonthNameColor(int monthNameColorEnabled,
int monthNameColorDisabled)
Sets the current month name color for both enabled and disabled states.
|
void |
setMonthNameTextColorDisabled(int monthNameTextColorDisabled)
Sets the current month name text color for the disabled state.
|
void |
setMonthNameTextColorEnabled(int monthNameTextColorEnabled)
Sets the current month name text color for the enabled state.
|
void |
setMonthNameTextPosition(int monthNamePosition)
Sets the position of the month name.
|
void |
setMonthNameTextSize(float size)
Sets the current month name font size.
|
void |
setMonthNameTextSizeCompact(float size)
Sets the current month name font size in compact mode.
|
void |
setMonthNameTypeFace(Typeface monthNameFont)
Sets the current month name type face.
|
void |
setOffsetBottom(double offset)
Sets the current offset percentage on the bottom of the available space for drawing the day names and the dates bellow the month name.
|
void |
setOffsetLeft(double offset)
Sets the current offset percentage on the left of the available space for drawing the day names and the dates bellow the month name.
|
void |
setOffsetRight(double offset)
Sets the current offset percentage on the right of the available space for drawing the day names and the dates bellow the month name.
|
void |
setOffsetTop(double offset)
Sets the current offset percentage on the top of the available space for drawing the day names and the dates bellow the month name.
|
getBorderColor, getBorderWidth, getCellType, getDate, getRow, isDrawBorderInsideCell, isLastCellInRow, isToday, isWeekend, postRender, setAsToday, setBorderColor, setBorderWidth, setCellType, setDrawBorderInsideCell, setLastCellInRow, setRow
arrange, getText, getTextColor, getTextColorDisabled, getTextColorEnabled, getTextPaint, getTextPosition, getTextSize, getTypeface, 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 CalendarMonthCell(RadCalendarView owner)
CalendarMonthCell
class.owner
- the calendar instance owning the cell.public float getMonthNameTextSize()
public void setMonthNameTextSize(float size)
size
- the new month name font size.public float getMonthNameTextSizeCompact()
public void setMonthNameTextSizeCompact(float size)
size
- the new compact month name font size.public int getMonthNameTextColorEnabled()
public void setMonthNameTextColorEnabled(int monthNameTextColorEnabled)
monthNameTextColorEnabled
- the new enabled month name text color.public int getMonthNameTextColorDisabled()
public void setMonthNameTextColorDisabled(int monthNameTextColorDisabled)
monthNameTextColorDisabled
- the new disabled month name text color.public void setMonthNameColor(int monthNameColorEnabled, int monthNameColorDisabled)
monthNameColorEnabled
- the enabled month name text color.monthNameColorDisabled
- the disabled month name text color.public Typeface getMonthNameTypeFace()
public void setMonthNameTypeFace(Typeface monthNameFont)
monthNameFont
- the new month name type face.public float getDayNameTextSize()
public void setDayNameTextSize(float dayNameTextSize)
dayNameTextSize
- the new day names text size.public int getDayNameTextColorEnabled()
public void setDayNameTextColorEnabled(int dayNameTextColorEnabled)
dayNameTextColorEnabled
- the new day names text color enabled.public void setDayNamesColor(int colorEnabled, int colorDisabled)
colorEnabled
- day names text color enabled.colorDisabled
- day names text color disabled.public int getDayNameTextColorDisabled()
public void setDayNameTextColorDisabled(int dayNameTextColorDisabled)
dayNameTextColorDisabled
- the new day names text color disabled.public Typeface getDayNameTypeFace()
public void setDayNameTypeFace(Typeface dayNameTypeFace)
dayNameTypeFace
- the new day names type face.public float getDateTextSize()
public void setDateTextSize(float dateTextSize)
dateTextSize
- the new date text size.public int getDateTextColorEnabled()
public void setDateTextColorEnabled(int dateTextColorEnabled)
dateTextColorEnabled
- the new date text color enabled.public void setDateTextColor(int colorEnabled, int colorDisabled)
colorEnabled
- the new date text color enabled.colorDisabled
- the new date text color disabled.public int getDateTextColorDisabled()
public void setDateTextColorDisabled(int dateTextColorDisabled)
dateTextColorDisabled
- the new date text color disabled.public Typeface getDateTypeFace()
public void setDateTypeFace(Typeface dateTypeFace)
dateTypeFace
- the new date type face.public double getOffsetLeft()
public void setOffsetLeft(double offset)
offset
- the new left offset percentage.public double getOffsetTop()
public void setOffsetTop(double offset)
offset
- the new top offset percentage.public double getOffsetRight()
public void setOffsetRight(double offset)
offset
- the new right offset percentage.public double getOffsetBottom()
public void setOffsetBottom(double offset)
offset
- the new bottom offset percentage.public String getMonthName()
public void setMonthName(String monthName)
monthName
- the new month name.public int getMonthNamePosition()
public void setMonthNameTextPosition(int monthNamePosition)
monthNamePosition
- the new month name gravity.public void setEnabled(boolean enabled)
CalendarElement
setEnabled
in class CalendarTextElement
enabled
- the new enabled state.public int numberOfDays()
public void setDate(long date)
CalendarCell
setDate
in class CalendarCell
date
- the represented datepublic void render(Canvas canvas)
CalendarElement
render
in class CalendarTextElement
canvas
- the canvas of the main calendar view instance.