onbon.bx06.file.nd
类 TimeClockBxAreaND

java.lang.Object
  继承者 onbon.bx06.file.nd.BxAreaND
      继承者 onbon.bx06.file.nd.TimeClockBxAreaND

public class TimeClockBxAreaND
extends BxAreaND

时间区域。

作者:
ONBON

构造方法摘要
TimeClockBxAreaND(onbon.bx06.message.area.TimeClockArea area, Bx6GScreenProfile screenProfile)
          建构子。
 
方法摘要
 byte[] generate(Bx6GScreenProfile profile)
          产生区域的位元组资讯。
 CommonBxUnitND getAmPm()
          取得 "上下午" 时间单元资讯。
 AnalogClockBxUnitND getAnalogClock()
          取得 "指针时钟" 单元资讯。
 CounterBxUnitND getCounter()
          取得 "计数器" 单元资讯。
 int getDataLen()
           
 int getDataOffset()
           
 CommonBxUnitND getDay()
          取得 "日" 时间单元资讯。
 CommonBxUnitND getFestival()
          取得 "节庆" 单元资讯。
 CommonBxUnitND getHour()
          取得 "小时" 时间单元资讯。
 CommonBxUnitND getMinute()
          取得 "分钟" 时间单元资讯。
 CommonBxUnitND getMonth()
          取得 "月" 时间单元资讯。
 CommonBxUnitND getSecond()
          取得 "秒" 时间单元资讯。
 CommonBxUnitND[] getTexts()
          取得 "文字" 单元资讯。
 int getTimeDifferent()
          取得时间差。
 TimerBxUnitND getTimer()
          取得 "秒表" 单元资讯。
 CommonBxUnitND getWeek()
          取得 "周" 时间单元资讯。
 CommonBxUnitND getYear()
          取得 "年" 时间单元资讯。
 void setTimeDifferent(int timeDifferent)
          设定时间差。
 
从类 onbon.bx06.file.nd.BxAreaND 继承的方法
getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getScreenProfile, setAreaFrame, setFrameMoveStep, setFrameSpeed, setFrameStyle, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

TimeClockBxAreaND

public TimeClockBxAreaND(onbon.bx06.message.area.TimeClockArea area,
                         Bx6GScreenProfile screenProfile)
                  throws uia.message.codec.BlockCodecException
建构子。

参数:
area - 區域。
screenProfile - 屏幕规格。
抛出:
uia.message.codec.BlockCodecException - 編碼錯誤。
方法详细信息

getTimeDifferent

public int getTimeDifferent()
取得时间差。

返回:
时间差。

setTimeDifferent

public void setTimeDifferent(int timeDifferent)
设定时间差。

参数:
timeDifferent - 时间差。

getYear

public CommonBxUnitND getYear()
取得 "年" 时间单元资讯。

返回:
"年" 时间单元资讯。无设定时返回 NULL。

getMonth

public CommonBxUnitND getMonth()
取得 "月" 时间单元资讯。

返回:
"月" 时间单元资讯。无设定时返回 NULL。

getDay

public CommonBxUnitND getDay()
取得 "日" 时间单元资讯。

返回:
"日" 时间单元资讯。无设定时返回 NULL。

getHour

public CommonBxUnitND getHour()
取得 "小时" 时间单元资讯。

返回:
"小时" 时间单元资讯。无设定时返回 NULL。

getMinute

public CommonBxUnitND getMinute()
取得 "分钟" 时间单元资讯。

返回:
"分钟" 时间单元资讯。无设定时返回 NULL。

getSecond

public CommonBxUnitND getSecond()
取得 "秒" 时间单元资讯。

返回:
"秒" 时间单元资讯。无设定时返回 NULL。

getAmPm

public CommonBxUnitND getAmPm()
取得 "上下午" 时间单元资讯。

返回:
"上下午" 时间单元资讯。无设定时返回 NULL。

getWeek

public CommonBxUnitND getWeek()
取得 "周" 时间单元资讯。

返回:
"周" 时间单元资讯。无设定时返回 NULL。

getAnalogClock

public AnalogClockBxUnitND getAnalogClock()
取得 "指针时钟" 单元资讯。

返回:
"指针时钟" 单元资讯。无设定时返回 NULL。

getCounter

public CounterBxUnitND getCounter()
取得 "计数器" 单元资讯。

返回:
"计数器" 单元资讯。无设定时返回 NULL。

getFestival

public CommonBxUnitND getFestival()
取得 "节庆" 单元资讯。

返回:
"节庆" 单元资讯。无设定时返回 NULL。

getTimer

public TimerBxUnitND getTimer()
取得 "秒表" 单元资讯。

返回:
"秒表" 单元资讯。无设定时返回 NULL。

getTexts

public CommonBxUnitND[] getTexts()
取得 "文字" 单元资讯。

返回:
"文字" 单元资讯。

getDataOffset

public int getDataOffset()

getDataLen

public int getDataLen()

generate

public byte[] generate(Bx6GScreenProfile profile)
                throws Bx6GException
从类 BxAreaND 复制的描述
产生区域的位元组资讯。

指定者:
类 BxAreaND 中的 generate
参数:
profile - 屏幕规格。
返回:
区域位元组资讯。
抛出:
Bx6GException - 产生区域位元组资讯时发生错误。


Copyright © 2018 onbon. All rights reserved.