public class WeekBxUnit extends CommonBxUnit
CommonBxUnit.LangType
Constructor and Description |
---|
WeekBxUnit(onbon.bx05.message.area.unit.CommonUnit unit,
Bx5GScreenProfile screenProfile)
建构子。
|
WeekBxUnit(int x,
int y,
Bx5GScreenProfile screenProfile)
建构子。
|
WeekBxUnit(int x,
int y,
Bx5GScreenProfile screenProfile,
boolean abbreviate)
建构子。
|
WeekBxUnit(int x,
int y,
Bx5GScreenProfile screenProfile,
CommonBxUnit.LangType lang)
建构子。
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyModeData(onbon.bx05.message.area.unit.CommonUnit unit)
套用资料。
|
int |
calculateUnitWidth(Graphics2D g2d)
利用画布计算宽度。
|
CommonBxUnit.LangType |
getLang()
取得显示语言。
|
protected onbon.bx05.message.common.UnitType |
getUnitType()
取得单元类型。
|
void |
preview(Graphics2D g2d,
int areaX,
int areaY)
绘图。
|
void |
setLang(CommonBxUnit.LangType lang)
设定显示语言。
|
generate
darw, getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY
public WeekBxUnit(int x, int y, Bx5GScreenProfile screenProfile)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。screenProfile
- 屏幕规格。public WeekBxUnit(int x, int y, Bx5GScreenProfile screenProfile, CommonBxUnit.LangType lang)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。screenProfile
- 屏幕规格。lang
- 显示语言。public WeekBxUnit(int x, int y, Bx5GScreenProfile screenProfile, boolean abbreviate)
x
- 相对于时间区域 X 座标的 X 座标。y
- 相对于时间区域 Y 座标的 Y 座标。screenProfile
- 屏幕规格。abbreviate
- 是否使用英文缩写。public WeekBxUnit(onbon.bx05.message.area.unit.CommonUnit unit, Bx5GScreenProfile screenProfile)
unit
- 单元。screenProfile
- 屏幕规格。public CommonBxUnit.LangType getLang()
public void setLang(CommonBxUnit.LangType lang)
lang
- 显示语言。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.