public abstract class BitmapTitleDrawFormat extends java.lang.Object implements ITitleDrawFormat
| Constructor and Description |
|---|
BitmapTitleDrawFormat(int imageWidth,
int imageHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas c,
Column column,
android.graphics.Rect rect,
TableConfig config)
绘制
|
boolean |
drawBackground(android.graphics.Canvas c,
Column column,
android.graphics.Rect rect,
TableConfig config) |
protected abstract android.graphics.Bitmap |
getBitmap(Column column)
获取bitmap
|
int |
getImageHeight() |
int |
getImageWidth() |
boolean |
isDrawBackground() |
int |
measureHeight(TableConfig config)
测量高
|
int |
measureWidth(Column column,
TableConfig config)
测量宽
|
void |
setDrawBackground(boolean drawBackground) |
void |
setImageHeight(int imageHeight) |
void |
setImageWidth(int imageWidth) |
public BitmapTitleDrawFormat(int imageWidth,
int imageHeight)
public int measureWidth(Column column, TableConfig config)
ITitleDrawFormatmeasureWidth in interface ITitleDrawFormatpublic int measureHeight(TableConfig config)
ITitleDrawFormatmeasureHeight in interface ITitleDrawFormatprotected abstract android.graphics.Bitmap getBitmap(Column column)
public void draw(android.graphics.Canvas c,
Column column,
android.graphics.Rect rect,
TableConfig config)
ITitleDrawFormatdraw in interface ITitleDrawFormatc - 画笔column - 列信息public boolean drawBackground(android.graphics.Canvas c,
Column column,
android.graphics.Rect rect,
TableConfig config)
public int getImageWidth()
public void setImageWidth(int imageWidth)
public int getImageHeight()
public void setImageHeight(int imageHeight)
public boolean isDrawBackground()
public void setDrawBackground(boolean drawBackground)