|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonbon.bx06.area.unit.BxUnit
onbon.bx06.area.unit.CommonBxUnit
onbon.bx06.area.unit.HourBxUnit
public class HourBxUnit
小时单元。
Nested Class Summary | |
---|---|
static class |
HourBxUnit.HourBxUnitMode
显示内容类型。 |
Nested classes/interfaces inherited from class onbon.bx06.area.unit.CommonBxUnit |
---|
CommonBxUnit.LangType |
Constructor Summary | |
---|---|
HourBxUnit(int x,
int y,
Bx6GScreenProfile profile)
建构子。 |
|
HourBxUnit(int x,
int y,
Bx6GScreenProfile profile,
HourBxUnit.HourBxUnitMode mode)
建构子。 |
Method Summary | |
---|---|
protected void |
apply(onbon.bx06.message.area.unit.CommonUnit unit,
ProgramDataBxFile dataFile)
|
int |
calculateUnitWidth(Graphics2D g2d)
计算宽度。 |
HourBxUnit.HourBxUnitMode |
getMode()
取得显示类型。 |
protected onbon.bx06.message.common.UnitType |
getUnitType()
取得单元类型。 |
void |
preview(Graphics2D g2d,
int areaX,
int areaY)
绘图。 |
void |
setMode(HourBxUnit.HourBxUnitMode mode)
设定显示类型。 |
Methods inherited from class onbon.bx06.area.unit.CommonBxUnit |
---|
generate |
Methods inherited from class onbon.bx06.area.unit.BxUnit |
---|
darw, getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HourBxUnit(int x, int y, Bx6GScreenProfile profile)
x
- X 座标。y
- Y 座标。profile
- 屏幕规格。public HourBxUnit(int x, int y, Bx6GScreenProfile profile, HourBxUnit.HourBxUnitMode mode)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。profile
- 屏幕规格。mode
- 显示内容类型。Method Detail |
---|
public HourBxUnit.HourBxUnitMode getMode()
public void setMode(HourBxUnit.HourBxUnitMode mode)
mode
- 显示类型。public int calculateUnitWidth(Graphics2D g2d)
BxUnit
calculateUnitWidth
in class BxUnit
g2d
- 图布。
protected onbon.bx06.message.common.UnitType getUnitType()
CommonBxUnit
getUnitType
in class CommonBxUnit
protected void apply(onbon.bx06.message.area.unit.CommonUnit unit, ProgramDataBxFile dataFile)
apply
in class CommonBxUnit
public void preview(Graphics2D g2d, int areaX, int areaY)
BxUnit
preview
in class BxUnit
g2d
- 图布。areaX
- 区域 X 座标。areaY
- 区域 Y 座标。
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |