onbon.bx06.area.unit
类 WeekBxUnit

java.lang.Object
  继承者 onbon.bx06.area.unit.BxUnit
      继承者 onbon.bx06.area.unit.CommonBxUnit
          继承者 onbon.bx06.area.unit.WeekBxUnit

public class WeekBxUnit
extends CommonBxUnit

星期单元。

作者:
ONBON

嵌套类摘要
 
从类 onbon.bx06.area.unit.CommonBxUnit 继承的嵌套类/接口
CommonBxUnit.LangType
 
构造方法摘要
WeekBxUnit(int x, int y, Bx6GScreenProfile profile)
          建构子。
WeekBxUnit(int x, int y, Bx6GScreenProfile screenProfile, boolean abbreviate)
          建构子。
WeekBxUnit(int x, int y, Bx6GScreenProfile profile, CommonBxUnit.LangType lang)
          建构子。
 
方法摘要
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)
          设定显示语言。
 
从类 onbon.bx06.area.unit.CommonBxUnit 继承的方法
generate
 
从类 onbon.bx06.area.unit.BxUnit 继承的方法
darw, getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WeekBxUnit

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

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

WeekBxUnit

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

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

WeekBxUnit

public WeekBxUnit(int x,
                  int y,
                  Bx6GScreenProfile screenProfile,
                  boolean abbreviate)
建构子。

参数:
x - 相对于时间区域 X 座标的 X 座标。
y - 相对于时间区域 Y 座标的 Y 座标。
screenProfile - 屏幕规格。
abbreviate - 是否使用英文缩写。
方法详细信息

getLang

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

返回:
显示语言。

setLang

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

参数:
lang - 显示语言。

getUnitType

protected onbon.bx06.message.common.UnitType getUnitType()
从类 CommonBxUnit 复制的描述
取得单元类型。

指定者:
类 CommonBxUnit 中的 getUnitType
返回:
单元类型。

apply

protected void apply(onbon.bx06.message.area.unit.CommonUnit unit,
                     ProgramDataBxFile dataFile)
指定者:
类 CommonBxUnit 中的 apply

calculateUnitWidth

public int calculateUnitWidth(Graphics2D g2d)
从类 BxUnit 复制的描述
计算宽度。

覆盖:
类 BxUnit 中的 calculateUnitWidth
参数:
g2d - 图布。
返回:
宽度。

preview

public void preview(Graphics2D g2d,
                    int areaX,
                    int areaY)
从类 BxUnit 复制的描述
绘图。

指定者:
类 BxUnit 中的 preview
参数:
g2d - 图布。
areaX - 区域 X 座标。
areaY - 区域 Y 座标。


Copyright © 2018 onbon. All rights reserved.