public class MonthBxUnit extends CommonBxUnit
Modifier and Type | Class and Description |
---|---|
static class |
MonthBxUnit.MonthBxUnitMode
显示内容类型。
|
CommonBxUnit.LangType
Constructor and Description |
---|
MonthBxUnit(onbon.bx05.message.area.unit.CommonUnit unit,
Bx5GScreenProfile screenProfile)
建构子。
|
MonthBxUnit(int x,
int y,
Bx5GScreenProfile screenProfile)
建构子。
|
MonthBxUnit(int x,
int y,
Bx5GScreenProfile screenProfile,
MonthBxUnit.MonthBxUnitMode mode)
建构子。
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyModeData(onbon.bx05.message.area.unit.CommonUnit unit)
套用资料。
|
int |
calculateUnitWidth(Graphics2D g2d)
利用画布计算宽度。
|
MonthBxUnit.MonthBxUnitMode |
getMode()
取得显示类型。
|
protected onbon.bx05.message.common.UnitType |
getUnitType()
取得单元类型。
|
void |
preview(Graphics2D g2d,
int areaX,
int areaY)
绘图。
|
void |
setMode(MonthBxUnit.MonthBxUnitMode mode)
设定显示类型。
|
generate
darw, getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY
public MonthBxUnit(int x, int y, Bx5GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。screenProfile
- 屏幕规格。public MonthBxUnit(int x, int y, Bx5GScreenProfile screenProfile, MonthBxUnit.MonthBxUnitMode mode)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。screenProfile
- 屏幕规格。mode
- 显示内容类型。public MonthBxUnit(onbon.bx05.message.area.unit.CommonUnit unit, Bx5GScreenProfile screenProfile)
unit
- 单元。screenProfile
- 屏幕规格。public MonthBxUnit.MonthBxUnitMode getMode()
public void setMode(MonthBxUnit.MonthBxUnitMode mode)
mode
- 显示类型。protected onbon.bx05.message.common.UnitType getUnitType()
CommonBxUnit
getUnitType
in class CommonBxUnit
protected void applyModeData(onbon.bx05.message.area.unit.CommonUnit unit)
CommonBxUnit
applyModeData
in class CommonBxUnit
unit
- 单元实例。public int calculateUnitWidth(Graphics2D g2d)
BxUnit
calculateUnitWidth
in class BxUnit
g2d
- 画布。public void preview(Graphics2D g2d, int areaX, int areaY)
BxUnit
Copyright © 2020 onbon4j. All rights reserved.