onbon.bx06.area.unit
类 AnalogClockBxUnit

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

public class AnalogClockBxUnit
extends BxUnit

时钟单元。

作者:
ONBON

构造方法摘要
AnalogClockBxUnit(int x, int y, Bx6GScreenProfile profile)
          建构子。
 
方法摘要
 int calculateUnitWidth(Graphics2D g2d)
          计算宽度。
 byte[] generate(ProgramDataBxFile dataFile)
          产生单元位元组资讯。
 void preview(Graphics2D g2d, int areaX, int areaY)
          绘图。
 void setupSize(int size)
          設定时钟的大小。
 
从类 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
 

构造方法详细信息

AnalogClockBxUnit

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

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

setupSize

public void setupSize(int size)
設定时钟的大小。

参数:
size - 时钟的大小。

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 座标。

generate

public byte[] generate(ProgramDataBxFile dataFile)
从类 BxUnit 复制的描述
产生单元位元组资讯。

指定者:
类 BxUnit 中的 generate
参数:
dataFile - 節目资讯。
返回:
位元组资讯。


Copyright © 2018 onbon. All rights reserved.