public class StringBxUnit extends BxUnit
Constructor and Description |
---|
StringBxUnit(int x,
int y,
Bx5GScreenProfile screenProfile,
String text)
建构子。
|
Modifier and Type | Method and Description |
---|---|
int |
calculateUnitWidth(Graphics2D g2d)
利用画布计算宽度。
|
void |
darw(Graphics2D g2d)
绘图。
|
byte[] |
generate()
产生单元位元组资讯。
|
String |
getText()
取得文字内容。
|
void |
preview(Graphics2D g2d,
int areaX,
int areaY)
绘图。
|
getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY
public StringBxUnit(int x, int y, Bx5GScreenProfile screenProfile, String text)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。screenProfile
- 屏幕规格。text
- 文字内容。public String getText()
public int calculateUnitWidth(Graphics2D g2d)
BxUnit
calculateUnitWidth
in class BxUnit
g2d
- 画布。public void darw(Graphics2D g2d)
BxUnit
public byte[] generate()
BxUnit
public void preview(Graphics2D g2d, int areaX, int areaY)
BxUnit
Copyright © 2020 onbon4j. All rights reserved.