onbon.bx06.file.nd
Class TimerBxUnitND

java.lang.Object
  extended by onbon.bx06.file.nd.BxUnitND
      extended by onbon.bx06.file.nd.TimerBxUnitND

public class TimerBxUnitND
extends BxUnitND

秒表单元。

Author:
ONBON

Constructor Summary
TimerBxUnitND(onbon.bx06.message.area.unit.TimerUnit unit, Bx6GScreenProfile screenProfile)
          建构子。
 
Method Summary
 byte[] generate(Bx6GScreenProfile profile)
          产生单元位元组资讯。
 int getCounter()
          取得计数值。
 TimerBxUnit.TimerBxUnitFormat getFormat()
          取得显示内容格式。
 TimerBxUnit.TimerBxUnitMode getMode()
          取得秒表计算方式。
 Color getUnitColor()
          取得单位颜色。
 void setCounter(int counter)
          设定计数值。
 void setFormat(TimerBxUnit.TimerBxUnitFormat format)
          设定显示内容格式。
 void setMode(TimerBxUnit.TimerBxUnitMode mode)
          设定秒表计算方式。
 void setUnitColor(Color unitColor)
          设定单位颜色。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerBxUnitND

public TimerBxUnitND(onbon.bx06.message.area.unit.TimerUnit unit,
                     Bx6GScreenProfile screenProfile)
建构子。

Parameters:
unit - 单元。
screenProfile - 屏幕规格。
Method Detail

getUnitColor

public Color getUnitColor()
取得单位颜色。

Returns:
单位颜色。

setUnitColor

public void setUnitColor(Color unitColor)
设定单位颜色。

Parameters:
unitColor - 单位颜色。

getMode

public TimerBxUnit.TimerBxUnitMode getMode()
取得秒表计算方式。

Returns:
秒表计算方式。

setMode

public void setMode(TimerBxUnit.TimerBxUnitMode mode)
设定秒表计算方式。

Parameters:
mode - 秒表计算方式。

getCounter

public int getCounter()
取得计数值。

Returns:
计数值。

setCounter

public void setCounter(int counter)
设定计数值。

Parameters:
counter - 计数值。

getFormat

public TimerBxUnit.TimerBxUnitFormat getFormat()
取得显示内容格式。

Returns:
显示内容格式。

setFormat

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

Parameters:
format - 显示内容格式。

generate

public byte[] generate(Bx6GScreenProfile profile)
Description copied from class: BxUnitND
产生单元位元组资讯。

Specified by:
generate in class BxUnitND
Parameters:
profile - 屏幕规格。
Returns:
位元组资讯。


Copyright © 2020 onbon. All rights reserved.