public abstract class BxUnit
extends java.lang.Object
| Constructor and Description |
|---|
BxUnit(int x,
int y,
Bx5GScreenProfile screenProfile)
建构子。
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculateUnitWidth(java.awt.Graphics2D g2d)
利用画布计算宽度。
|
void |
darw(java.awt.Graphics2D g2d)
绘图。
|
abstract byte[] |
generate()
产生单元位元组资讯。
|
java.awt.Font |
getFont()
取得单元显示内容字型。
|
Bx5GScreenProfile |
getScreenProfile()
取得显示屏类型。
|
java.awt.Color |
getUnitColor()
取得单位颜色。
|
int |
getUnitX()
取得相对于时间区域 X 座标的 X 座标。
|
int |
getUnitY()
取得相对于时间区域 Y 座标的 Y 座标。
|
void |
setFont(java.awt.Font font)
设定单元显示内容字型。
|
void |
setUnitColor(java.awt.Color unitColor)
设定单位颜色。
|
void |
setUnitX(int unitX)
设定相对于时间区域 X 座标的 X 座标。
|
void |
setUnitY(int unitY)
设定相对于时间区域 Y 座标的 Y 座标。
|
public BxUnit(int x,
int y,
Bx5GScreenProfile screenProfile)
x - 相对于时间区域 X 座标的 X 座标。y - 相对于时间区域 Y 座标的 Y 座标。public int calculateUnitWidth(java.awt.Graphics2D g2d)
g2d - 画布。public void darw(java.awt.Graphics2D g2d)
g2d - 图布。public abstract byte[] generate()
public java.awt.Font getFont()
public Bx5GScreenProfile getScreenProfile()
public java.awt.Color getUnitColor()
public int getUnitX()
public int getUnitY()
public void setFont(java.awt.Font font)
font - 字型。public void setUnitColor(java.awt.Color unitColor)
unitColor - 颜色。public void setUnitX(int unitX)
unitX - X 座标。public void setUnitY(int unitY)
unitY - 单元 Y 座标。