| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | 静态 Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
com.ab.view.calendar.CalendarCell类 参考
类 com.ab.view.calendar.CalendarCell 继承关系图:

## Public 成员函数
| CalendarCell (Context context, int position, int iWidth, int iHeight)
Calendar | getThisCellDate ()
void | setThisCellDate (int iYear, int iMonth, int iDay, Boolean isToday, Boolean isSelected, Boolean isHoliday, int isActiveMonth, boolean hasRecord)
boolean | IsViewFocused ()
void | drawDayNumber (Canvas canvas)
int | getCellColor ()
void | setSelected (boolean selected)
void | setHasRecord (boolean hasRecord)
void | setOnItemClickListener (AbOnItemClickListener onItemClickListener)
void | doItemClick ()
boolean | onTouchEvent (MotionEvent event)
boolean | onKeyDown (int keyCode, KeyEvent event)
void | createReminder (Canvas canvas, int Color)
boolean | isActiveMonth ()

## 静态 Public 成员函数
static void | startAlphaAnimIn (View view)

## 静态 Public 属性
static int | ANIM_ALPHA_DURATION = 100

## Protected 成员函数
void | onDraw (Canvas canvas)

## Private 成员函数
void | drawDayView (Canvas canvas, boolean bFocused)
int | getTextHeight ()

## Private 属性
int | textSize = 22
AbOnItemClickListener | mOnItemClickListener
Paint | pt = new Paint()
RectF | rect = new RectF()
String | textDateValue = ""
int | iDateYear = 0
int | iDateMonth = 0
int | iDateDay = 0
boolean | isSelected = false
boolean | isActiveMonth = false
boolean | isToday = false
boolean | bTouchedDown = false
boolean | isHoliday = false
boolean | hasRecord = false
int | position = 0
int | selectCellColor = Color.rgb(150, 195, 70)
int | bgColor = Color.rgb(163,163, 163)
int | numberColor = Color.rgb(86, 86, 86)
int | cellColor = Color.WHITE
int | notActiveMonthColor = Color.rgb(178, 178, 178)
int | todayColor = Color.rgb(150, 200, 220)

## 详细描述

© 2012 amsoft.cn 名称：CalendarCell.java 描述：日历控件单元格绘制类

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-7-9 下午3:54:16

## 构造及析构函数说明

com.ab.view.calendar.CalendarCell.CalendarCell | ( | Context | context,
|  | int | position,
|  | int | iWidth,
|  | int | iHeight
| ) |  |
| inline

Instantiates a new calendar cell.

参数

  context | the context
  position | the position
  iWidth | the i width
  iHeight | the i height

## 成员函数说明

void com.ab.view.calendar.CalendarCell.createReminder | ( | Canvas | canvas,
|  | int | Color
| ) |  |
| inline

描述：有记录时的样子.

参数

  canvas | the canvas
  Color | the color

void com.ab.view.calendar.CalendarCell.doItemClick | ( |  | ) |
| inline

描述：执行点击事件.

void com.ab.view.calendar.CalendarCell.drawDayNumber | ( | Canvas | canvas | ) |
| inline

描述：绘制日历中的数字.

参数

  canvas | the canvas

void com.ab.view.calendar.CalendarCell.drawDayView | ( | Canvas | canvas,
|  | boolean | bFocused
| ) |  |
| inline private

描述：绘制日历方格.

参数

  canvas | the canvas
  bFocused | the b focused

int com.ab.view.calendar.CalendarCell.getCellColor | ( |  | ) |
| inline

描述：根据条件返回不同颜色值.

返回
  the cell color

int com.ab.view.calendar.CalendarCell.getTextHeight | ( |  | ) |
| inline private

描述：得到字体高度.

返回
  the text height

Calendar com.ab.view.calendar.CalendarCell.getThisCellDate | ( |  | ) |
| inline

描述：获取这个Cell的日期.

返回
  the this cell date

boolean com.ab.view.calendar.CalendarCell.isActiveMonth | ( |  | ) |
| inline

描述：是否为活动的月.

返回
  true, if is active month

boolean com.ab.view.calendar.CalendarCell.IsViewFocused | ( |  | ) |
| inline

Checks if is view focused.

返回
  true, if successful

void com.ab.view.calendar.CalendarCell.onDraw | ( | Canvas | canvas | ) |
| inline protected

描述：重载绘制方法.

参数

  canvas | the canvas

参见
  android.view.View::onDraw(android.graphics.Canvas)

boolean com.ab.view.calendar.CalendarCell.onKeyDown | ( | int | keyCode,
|  | KeyEvent | event
| ) |  |
| inline

描述：TODO.

版本
  v1.0

参数

  keyCode | the key code
  event | the event

返回
  true, if successful

参见
  android.view.View::onKeyDown(int, android.view.KeyEvent)

作者
  : amsoft.cn

日期
  ：2013-7-19 下午4:31:18

boolean com.ab.view.calendar.CalendarCell.onTouchEvent | ( | MotionEvent | event | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  event | the event

返回
  true, if successful

参见
  android.view.View::onTouchEvent(android.view.MotionEvent)

作者
  : amsoft.cn

日期
  ：2013-7-19 下午4:31:18

void com.ab.view.calendar.CalendarCell.setHasRecord | ( | boolean | hasRecord | ) |
| inline

描述：设置是否有数据.

参数

  hasRecord | the new checks for record

void com.ab.view.calendar.CalendarCell.setOnItemClickListener | ( | AbOnItemClickListener | onItemClickListener | ) |
| inline

描述：设置点击事件.

参数

  onItemClickListener | the new on item click listener

void com.ab.view.calendar.CalendarCell.setSelected | ( | boolean | selected | ) |
| inline

描述：设置是否被选中.

参数

  selected | the new selected

void com.ab.view.calendar.CalendarCell.setThisCellDate | ( | int | iYear,
|  | int | iMonth,
|  | int | iDay,
|  | Boolean | isToday,
|  | Boolean | isSelected,
|  | Boolean | isHoliday,
|  | int | isActiveMonth,
|  | boolean | hasRecord
| ) |  |
| inline

描述：设置这个Cell的日期.

参数

  iYear | the i year
  iMonth | the i month
  iDay | the i day
  isToday | the is today
  isSelected | the is selected
  isHoliday | the is holiday
  isActiveMonth | the is active month
  hasRecord | the has record

static void com.ab.view.calendar.CalendarCell.startAlphaAnimIn | ( | View | view | ) |
| inline static

描述：动画不透明度渐变.

参数

  view | the view

## 类成员变量说明

int com.ab.view.calendar.CalendarCell.ANIM_ALPHA_DURATION = 100
| static

The anim alpha duration.

int com.ab.view.calendar.CalendarCell.bgColor = Color.rgb(163,163, 163)
| private

The bg color.

boolean com.ab.view.calendar.CalendarCell.bTouchedDown = false
| private

The b touched down.

int com.ab.view.calendar.CalendarCell.cellColor = Color.WHITE
| private

The cell color.

boolean com.ab.view.calendar.CalendarCell.hasRecord = false
| private

The has record.

int com.ab.view.calendar.CalendarCell.iDateDay = 0
| private

The i date day.

int com.ab.view.calendar.CalendarCell.iDateMonth = 0
| private

The i date month.

int com.ab.view.calendar.CalendarCell.iDateYear = 0
| private

The i date year.

boolean com.ab.view.calendar.CalendarCell.isActiveMonth = false
| private

The is active month.

boolean com.ab.view.calendar.CalendarCell.isHoliday = false
| private

The is holiday.

boolean com.ab.view.calendar.CalendarCell.isSelected = false
| private

The is selected.

boolean com.ab.view.calendar.CalendarCell.isToday = false
| private

The is today.

AbOnItemClickListener com.ab.view.calendar.CalendarCell.mOnItemClickListener
| private

The m on item click listener.

int com.ab.view.calendar.CalendarCell.notActiveMonthColor = Color.rgb(178, 178, 178)
| private

The not active month color.

int com.ab.view.calendar.CalendarCell.numberColor = Color.rgb(86, 86, 86)
| private

The number color.

int com.ab.view.calendar.CalendarCell.position = 0
| private

The position.

Paint com.ab.view.calendar.CalendarCell.pt = new Paint()
| private

The pt.

RectF com.ab.view.calendar.CalendarCell.rect = new RectF()
| private

The rect.

int com.ab.view.calendar.CalendarCell.selectCellColor = Color.rgb(150, 195, 70)
| private

The select cell color.

String com.ab.view.calendar.CalendarCell.textDateValue = ""
| private

The text date value.

int com.ab.view.calendar.CalendarCell.textSize = 22
| private

The text size.

int com.ab.view.calendar.CalendarCell.todayColor = Color.rgb(150, 200, 220)
| private

The today color.

该类的文档由以下文件生成:

- src/com/ab/view/calendar/CalendarCell.java