|
||||||||||
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.DayBxUnit
public class DayBxUnit
日单元。
Nested Class Summary | |
---|---|
static class |
DayBxUnit.DayBxUnitMode
显示内容类型。 |
Nested classes/interfaces inherited from class onbon.bx06.area.unit.CommonBxUnit |
---|
CommonBxUnit.LangType |
Constructor Summary | |
---|---|
DayBxUnit(int x,
int y,
Bx6GScreenProfile profile)
建构子。 |
|
DayBxUnit(int x,
int y,
Bx6GScreenProfile profile,
DayBxUnit.DayBxUnitMode mode)
建构子。 |
Method Summary | |
---|---|
protected void |
apply(onbon.bx06.message.area.unit.CommonUnit unit,
ProgramDataBxFile dataFile)
|
int |
calculateUnitWidth(Graphics2D g2d)
计算宽度。 |
DayBxUnit.DayBxUnitMode |
getMode()
取得显示类型。 |
protected onbon.bx06.message.common.UnitType |
getUnitType()
取得单元类型。 |
void |
preview(Graphics2D g2d,
int areaX,
int areaY)
绘图。 |
void |
setMode(DayBxUnit.DayBxUnitMode 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 DayBxUnit(int x, int y, Bx6GScreenProfile profile)
x
- X 座标。y
- Y 座标。profile
- 屏幕规格。public DayBxUnit(int x, int y, Bx6GScreenProfile profile, DayBxUnit.DayBxUnitMode mode)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。profile
- 屏幕规格。mode
- 显示内容类型。Method Detail |
---|
public DayBxUnit.DayBxUnitMode getMode()
public void setMode(DayBxUnit.DayBxUnitMode mode)
mode
- 显示类型。protected onbon.bx06.message.common.UnitType getUnitType()
CommonBxUnit
getUnitType
in class CommonBxUnit
public int calculateUnitWidth(Graphics2D g2d)
BxUnit
calculateUnitWidth
in class BxUnit
g2d
- 图布。
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 |