|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectonbon.bx06.area.unit.CompositeBxUnit
public class CompositeBxUnit
组合式单元。
| 构造方法摘要 | |
|---|---|
CompositeBxUnit(String name,
BxUnit... units)
建构子。 |
|
| 方法摘要 | |
|---|---|
Rectangle |
arrange(Rectangle container,
int x,
int y,
boolean center)
重整计算各单元的座标。 |
void |
draw(Graphics2D g2d)
绘制底图。 |
Font |
getFont()
取得字型。 |
Color |
getForeground()
取得前景色。 |
BxUnit[] |
getUnits()
被组合的单元。 |
int |
getX()
取得相对于时间区域 X 座标的 X 座标。 |
int |
getY()
取得相对于时间区域 Y 座标的 Y 座标。 |
void |
offsetX(int offset)
偏移 X 座标。 |
void |
offsetY(int offset)
偏移 Y 座标。 |
void |
preview(Graphics2D g2d,
int areaX,
int areaY)
绘制底图。 |
void |
setFont(Font font)
设定字型。 |
void |
setForeground(Color foreground)
设定前景色。 |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CompositeBxUnit(String name,
BxUnit... units)
name - 名称。units - 被组合的单元。| 方法详细信息 |
|---|
public void offsetX(int offset)
offset - X 座标。public void offsetY(int offset)
offset - Y 座标。public int getX()
public int getY()
public BxUnit[] getUnits()
public Font getFont()
public void setFont(Font font)
font - 字型。public Color getForeground()
public void setForeground(Color foreground)
foreground - 前景色。
public Rectangle arrange(Rectangle container,
int x,
int y,
boolean center)
container - 原区域大小。x - 此单元配置 X 座标。y - 此单元配置 X 座标。center - 置中。
public void preview(Graphics2D g2d,
int areaX,
int areaY)
g2d - 图布。areaX - 区域 X 座标。areaY - 区域 Y 座标。public void draw(Graphics2D g2d)
g2d - 图布。public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||