onbon.bx06.area
Class CounterBxArea

java.lang.Object
  extended by onbon.bx06.area.BxArea
      extended by onbon.bx06.area.AbstractTimeClockBxArea
          extended by onbon.bx06.area.CounterBxArea

public class CounterBxArea
extends AbstractTimeClockBxArea

计时器区域。

Author:
ONBON

Constructor Summary
CounterBxArea(int x, int y, int width, int height, Date destTime, Bx6GScreenProfile screenProfile)
          建构子。
 
Method Summary
protected  void apply(onbon.bx06.message.area.TimeClockArea area, ProgramDataBxFile dataFile)
           
 Date getDestTime()
          取得目标时间。
 CounterBxUnit.CounterBxUnitFormat getFormat()
          取得显示内容格式。
 CounterBxUnit.CounterBxUnitMode getMode()
          取得计时器计算方式。
 Color getUnitColor()
          取得单元颜色。
 void preview(Graphics2D g2d)
          檢視配置。
 void setDestTime(Date destTime)
          设定目标时间。
 void setFormat(CounterBxUnit.CounterBxUnitFormat format)
          设定显示内容格式。
 void setMode(CounterBxUnit.CounterBxUnitMode mode)
          设定计时器计算方式型。
 void setUnitColor(Color unitColor)
          设定单元颜色。
 
Methods inherited from class onbon.bx06.area.AbstractTimeClockBxArea
createBackgroundPic, generate, getBattleStartDay, getBattleStartHour, getBattleStartMinute, getBattleStartMonth, getBattleStartSecond, getBattleStartupMode, getBattleStartWeek, getBattleStartYear, getTimeDifferent, getTransparency, isBackgroundFlag, maskByBackground, overlayWithBackground, setBackgroundFlag, setBattleStartDay, setBattleStartHour, setBattleStartMinute, setBattleStartMonth, setBattleStartSecond, setBattleStartupMode, setBattleStartWeek, setBattleStartYear, setTimeDifferent, setTransparency
 
Methods inherited from class onbon.bx06.area.BxArea
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, previewScreen, setAreaFrame, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CounterBxArea

public CounterBxArea(int x,
                     int y,
                     int width,
                     int height,
                     Date destTime,
                     Bx6GScreenProfile screenProfile)
建构子。

Parameters:
x - X 座标。
y - Y 座标。
width - 区域宽度。
height - 区域高度。
destTime - 目标时间。
screenProfile - 屏幕规格。
Method Detail

getUnitColor

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

Returns:
单元颜色。

setUnitColor

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

Parameters:
unitColor - 单元颜色。

getMode

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

Returns:
计数计算方式。

setMode

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

Parameters:
mode - 计数计算方式。

getDestTime

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

Returns:
目标时间。

setDestTime

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

Parameters:
destTime - 目标时间。

getFormat

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

Returns:
显示内容格式。

setFormat

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

Parameters:
format - 显示内容格式。

apply

protected void apply(onbon.bx06.message.area.TimeClockArea area,
                     ProgramDataBxFile dataFile)
Specified by:
apply in class AbstractTimeClockBxArea

preview

public void preview(Graphics2D g2d)
Description copied from class: BxArea
檢視配置。

Overrides:
preview in class BxArea
Parameters:
g2d - 圖。


Copyright © 2020 onbon. All rights reserved.