onbon.bx06.file.nd
Class TimeClockBxAreaND

java.lang.Object
  extended by onbon.bx06.file.nd.BxAreaND
      extended by onbon.bx06.file.nd.TimeClockBxAreaND

public class TimeClockBxAreaND
extends BxAreaND

时间区域。

Author:
ONBON

Constructor Summary
TimeClockBxAreaND(onbon.bx06.message.area.TimeClockArea area, Bx6GScreenProfile screenProfile)
          建构子。
 
Method Summary
 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)
          设定时间差。
 
Methods inherited from class onbon.bx06.file.nd.BxAreaND
getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getScreenProfile, setAreaFrame, setFrameMoveStep, setFrameSpeed, setFrameStyle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeClockBxAreaND

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

Parameters:
area - 區域。
screenProfile - 屏幕规格。
Throws:
uia.message.codec.BlockCodecException - 編碼錯誤。
Method Detail

getTimeDifferent

public int getTimeDifferent()
取得时间差。

Returns:
时间差。

setTimeDifferent

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

Parameters:
timeDifferent - 时间差。

getYear

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

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

getMonth

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

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

getDay

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

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

getHour

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

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

getMinute

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

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

getSecond

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

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

getAmPm

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

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

getWeek

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

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

getAnalogClock

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

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

getCounter

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

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

getFestival

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

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

getTimer

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

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

getTexts

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

Returns:
"文字" 单元资讯。

getDataOffset

public int getDataOffset()

getDataLen

public int getDataLen()

generate

public byte[] generate(Bx6GScreenProfile profile)
                throws Bx6GException
Description copied from class: BxAreaND
产生区域的位元组资讯。

Specified by:
generate in class BxAreaND
Parameters:
profile - 屏幕规格。
Returns:
区域位元组资讯。
Throws:
Bx6GException - 产生区域位元组资讯时发生错误。


Copyright © 2020 onbon. All rights reserved.