public interface AutoChangeLineAndDrawProcess extends Immutable
限定符和类型 | 字段和说明 |
---|---|
static int |
CURRENT_LEVEL |
static java.lang.String |
MARK_STRING |
DEFAULT_LAYER_INDEX
限定符和类型 | 方法和说明 |
---|---|
java.util.List<java.lang.String> |
autoChangeLine(java.lang.String text,
ObjectHolder style,
UNIT width) |
void |
drawDistributedString(java.awt.Graphics g,
java.lang.String str,
double x,
double y,
int width)
画分散对齐
|
void |
drawHtmlContext(java.awt.Graphics2D g2d,
java.lang.String value,
ObjectHolder objectHolder,
int width,
int height,
int resolution)
绘制html
|
void |
drawNormalString(java.awt.Graphics g,
java.lang.String str,
double x,
double y)
普通画
|
void |
drawRotationText(java.awt.Graphics2D g2d,
java.lang.String text,
ObjectHolder styleHolder,
java.awt.Font rfont,
int width,
int height,
int horizontalAlignment,
int resolution)
画字符串算法
|
int |
getAutoChangeLineCount(java.lang.String text,
ObjectHolder style,
UNIT width) |
float |
getExcelAdjustHeight() |
UNIT |
getHtmlHeight(java.lang.String content,
UNIT paintWidth,
ObjectHolder style)
计算html高度算法
|
UNIT |
getLinedTextHeight(int lineCount,
ObjectHolder styleHolder)
算高度,算了和count两个接口分开做,以后有需求再改
|
currentAPILevel
layerIndex
static final int CURRENT_LEVEL
static final java.lang.String MARK_STRING
java.util.List<java.lang.String> autoChangeLine(java.lang.String text, ObjectHolder style, UNIT width)
int getAutoChangeLineCount(java.lang.String text, ObjectHolder style, UNIT width)
void drawNormalString(java.awt.Graphics g, java.lang.String str, double x, double y)
g
- str
- x
- y
- void drawDistributedString(java.awt.Graphics g, java.lang.String str, double x, double y, int width)
g
- str
- x
- y
- width
- UNIT getLinedTextHeight(int lineCount, ObjectHolder styleHolder)
lineCount
- styleHolder
- void drawRotationText(java.awt.Graphics2D g2d, java.lang.String text, ObjectHolder styleHolder, java.awt.Font rfont, int width, int height, int horizontalAlignment, int resolution)
g2d
- text
- styleHolder
- rfont
- width
- height
- horizontalAlignment
- resolution
- UNIT getHtmlHeight(java.lang.String content, UNIT paintWidth, ObjectHolder style)
content
- paintWidth
- style
- void drawHtmlContext(java.awt.Graphics2D g2d, java.lang.String value, ObjectHolder objectHolder, int width, int height, int resolution)
g2d
- value
- objectHolder
- resolution
- float getExcelAdjustHeight()