onbon.bx06.area
类 TimerBxArea

java.lang.Object
  继承者 onbon.bx06.area.BxArea
      继承者 onbon.bx06.area.AbstractTimeClockBxArea
          继承者 onbon.bx06.area.TimerBxArea

public class TimerBxArea
extends AbstractTimeClockBxArea

秒表区域。

作者:
ONBON

构造方法摘要
TimerBxArea(int x, int y, int width, int height, int counter, Bx6GScreenProfile screenProfile)
          建构子。
 
方法摘要
protected  void apply(onbon.bx06.message.area.TimeClockArea area, ProgramDataBxFile dataFile)
           
 int getCounter()
          取得计数值。
 TimerBxUnit.TimerBxUnitFormat getFormat()
          取得显示内容格式。
 TimerBxUnit.TimerBxUnitMode getMode()
          取得秒表计算方式。
 Color getUnitColor()
          取得单元颜色。
 void preview(Graphics2D g2d)
          檢視配置。
 void setCounter(int counter)
          设定计数值。
 void setFormat(TimerBxUnit.TimerBxUnitFormat format)
          设定显示内容格式。
 void setMode(TimerBxUnit.TimerBxUnitMode mode)
          设定秒表计算方式。
 void setUnitColor(Color unitColor)
          设定单元颜色。
 
从类 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
 
从类 onbon.bx06.area.BxArea 继承的方法
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, setAreaFrame, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY, toString, validate
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

TimerBxArea

public TimerBxArea(int x,
                   int y,
                   int width,
                   int height,
                   int counter,
                   Bx6GScreenProfile screenProfile)
建构子。

参数:
x - X 座标。
y - Y 座标。
width - 区域宽度。
height - 区域高度。
counter - 计数值。
screenProfile - 屏幕规格。
方法详细信息

getUnitColor

public Color getUnitColor()
取得单元颜色。0:黑色;1:红色;2:绿色。

返回:
单元颜色。

setUnitColor

public void setUnitColor(Color unitColor)
设定单元颜色。0:黑色;1:红色;2:绿色。

参数:
unitColor - 单元颜色。

getMode

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

返回:
秒表计算方式。

setMode

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

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

getCounter

public int getCounter()
取得计数值。

返回:
计数值。

setCounter

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

参数:
counter - 计数值。

getFormat

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

返回:
显示内容格式。

setFormat

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

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

apply

protected void apply(onbon.bx06.message.area.TimeClockArea area,
                     ProgramDataBxFile dataFile)
指定者:
类 AbstractTimeClockBxArea 中的 apply

preview

public void preview(Graphics2D g2d)
从类 BxArea 复制的描述
檢視配置。

覆盖:
类 BxArea 中的 preview
参数:
g2d - 圖。


Copyright © 2018 onbon. All rights reserved.