onbon.bx06.area.unit
Class AmPmBxUnit

java.lang.Object
  extended by onbon.bx06.area.unit.BxUnit
      extended by onbon.bx06.area.unit.CommonBxUnit
          extended by onbon.bx06.area.unit.AmPmBxUnit

public class AmPmBxUnit
extends CommonBxUnit

上下午单元。

Author:
ONBON

Nested Class Summary
 
Nested classes/interfaces inherited from class onbon.bx06.area.unit.CommonBxUnit
CommonBxUnit.LangType
 
Constructor Summary
AmPmBxUnit(int x, int y, Bx6GScreenProfile profile)
          建构子。
AmPmBxUnit(int x, int y, Bx6GScreenProfile profile, CommonBxUnit.LangType lang)
          建构子。
 
Method Summary
protected  void apply(onbon.bx06.message.area.unit.CommonUnit unit, ProgramDataBxFile dataFile)
           
 int calculateUnitWidth(Graphics2D g2d)
          计算宽度。
 CommonBxUnit.LangType getLang()
          取得显示语言。
protected  onbon.bx06.message.common.UnitType getUnitType()
          取得单元类型。
 void preview(Graphics2D g2d, int areaX, int areaY)
          绘图。
 void setLang(CommonBxUnit.LangType lang)
          设定显示语言。
 
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

AmPmBxUnit

public AmPmBxUnit(int x,
                  int y,
                  Bx6GScreenProfile profile)
建构子。

Parameters:
x - 相对于时间区域 X 座标的 X 座标。
y - 相对于时间区域 Y 座标的 Y 座标。
profile - 屏幕规格。

AmPmBxUnit

public AmPmBxUnit(int x,
                  int y,
                  Bx6GScreenProfile profile,
                  CommonBxUnit.LangType lang)
建构子。

Parameters:
x - 相对于时间区域 X 座标的 X 座标。
y - 相对于时间区域 Y 座标的 Y 座标。
profile - 屏幕规格。
lang - 显示语言。
Method Detail

getLang

public CommonBxUnit.LangType getLang()
取得显示语言。

Returns:
显示语言。

setLang

public void setLang(CommonBxUnit.LangType lang)
设定显示语言。

Parameters:
lang - 显示语言。

getUnitType

protected onbon.bx06.message.common.UnitType getUnitType()
Description copied from class: CommonBxUnit
取得单元类型。

Specified by:
getUnitType in class CommonBxUnit
Returns:
单元类型。

apply

protected void apply(onbon.bx06.message.area.unit.CommonUnit unit,
                     ProgramDataBxFile dataFile)
Specified by:
apply in class CommonBxUnit

preview

public void preview(Graphics2D g2d,
                    int areaX,
                    int areaY)
Description copied from class: BxUnit
绘图。

Specified by:
preview in class BxUnit
Parameters:
g2d - 图布。
areaX - 区域 X 座标。
areaY - 区域 Y 座标。

calculateUnitWidth

public int calculateUnitWidth(Graphics2D g2d)
Description copied from class: BxUnit
计算宽度。

Overrides:
calculateUnitWidth in class BxUnit
Parameters:
g2d - 图布。
Returns:
宽度。


Copyright © 2020 onbon. All rights reserved.