public class TableTitle extends java.lang.Object implements ITableTitle
| Modifier and Type | Field and Description |
|---|---|
protected int |
direction |
BOTTOM, LEFT, RIGHT, TOP| Constructor and Description |
|---|
TableTitle() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDirection() |
android.graphics.Rect |
getRect() |
int |
getSize() |
void |
onDraw(android.graphics.Canvas canvas,
android.graphics.Rect showRect,
java.lang.String tableName,
TableConfig config)
绘制组件
|
void |
onMeasure(android.graphics.Rect scaleRect,
android.graphics.Rect showRect,
TableConfig config)
计算组件Rect
|
void |
setDirection(int direction) |
void |
setRect(android.graphics.Rect rect) |
void |
setSize(int size) |
public void onDraw(android.graphics.Canvas canvas,
android.graphics.Rect showRect,
java.lang.String tableName,
TableConfig config)
IComponentonDraw in interface IComponent<java.lang.String>canvas - 画布tableName - 数据public void onMeasure(android.graphics.Rect scaleRect,
android.graphics.Rect showRect,
TableConfig config)
IComponentonMeasure in interface IComponent<java.lang.String>public int getSize()
getSize in interface ITableTitlepublic void setSize(int size)
setSize in interface ITableTitlepublic android.graphics.Rect getRect()
public void setRect(android.graphics.Rect rect)
public int getDirection()
getDirection in interface ITableTitlepublic void setDirection(int direction)
setDirection in interface ITableTitle