onbon.bx06.area.unit
类 CounterBxUnit

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

public class CounterBxUnit
extends BxUnit

计时器单元。

作者:
ONBON

嵌套类摘要
static class CounterBxUnit.CounterBxUnitFormat
          计时器显示内容。
static class CounterBxUnit.CounterBxUnitMode
          计时器计算方式。
 
构造方法摘要
CounterBxUnit(int x, int y, Bx6GScreenProfile profile)
          建构子。
CounterBxUnit(int x, int y, Bx6GScreenProfile profile, CounterBxUnit.CounterBxUnitMode mode, Date destTime)
          建构子。
 
方法摘要
 byte[] generate(ProgramDataBxFile dataFile)
          产生单元位元组资讯。
 Date getDestTime()
          取得目标时间。
 CounterBxUnit.CounterBxUnitFormat getFormat()
          取得显示内容格式。
 CounterBxUnit.CounterBxUnitMode getMode()
          取得计时器计算方式。
 void preview(Graphics2D g2d, int areaX, int areaY)
          绘图。
 void setDestTime(Date destTime)
          设定目标时间。
 void setFormat(CounterBxUnit.CounterBxUnitFormat format)
          设定显示内容格式。
 void setMode(CounterBxUnit.CounterBxUnitMode mode)
          设定计时器计算方式型。
 
从类 onbon.bx06.area.unit.BxUnit 继承的方法
calculateUnitWidth, darw, getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CounterBxUnit

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

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

CounterBxUnit

public CounterBxUnit(int x,
                     int y,
                     Bx6GScreenProfile profile,
                     CounterBxUnit.CounterBxUnitMode mode,
                     Date destTime)
建构子。

参数:
x - X 座标。
y - Y 座标。
profile - 屏幕规格。
mode - 显示内容类型。
destTime - 目标时间。
方法详细信息

getMode

public CounterBxUnit.CounterBxUnitMode getMode()
取得计时器计算方式。

返回:
计数计算方式。

setMode

public void setMode(CounterBxUnit.CounterBxUnitMode mode)
设定计时器计算方式型。

参数:
mode - 计数计算方式。

getDestTime

public Date getDestTime()
取得目标时间。

返回:
目标时间。

setDestTime

public void setDestTime(Date destTime)
设定目标时间。

参数:
destTime - 目标时间。

getFormat

public CounterBxUnit.CounterBxUnitFormat getFormat()
取得显示内容格式。

返回:
显示内容格式。

setFormat

public void setFormat(CounterBxUnit.CounterBxUnitFormat format)
设定显示内容格式。

参数:
format - 显示内容格式。

generate

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

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

preview

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

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


Copyright © 2018 onbon. All rights reserved.