onbon.bx06.area.unit
Class FestivalBxUnit

java.lang.Object
  extended by onbon.bx06.area.unit.BxUnit
      extended by onbon.bx06.area.unit.CommonBxUnit
          extended by onbon.bx06.area.unit.FestivalBxUnit

public class FestivalBxUnit
extends CommonBxUnit

节庆单元。

Author:
ONBON

Nested Class Summary
 
Nested classes/interfaces inherited from class onbon.bx06.area.unit.CommonBxUnit
CommonBxUnit.LangType
 
Constructor Summary
FestivalBxUnit(int x, int y, Bx6GScreenProfile profile)
          建构子。
 
Method Summary
protected  void apply(onbon.bx06.message.area.unit.CommonUnit unit, ProgramDataBxFile dataFile)
           
protected  onbon.bx06.message.common.UnitType getUnitType()
          取得单元类型。
 void preview(Graphics2D g2d, int areaX, int areaY)
          绘图。
 
Methods inherited from class onbon.bx06.area.unit.CommonBxUnit
generate
 
Methods inherited from class onbon.bx06.area.unit.BxUnit
calculateUnitWidth, darw, getFont, getScreenProfile, getUnitColor, getUnitX, getUnitY, setFont, setUnitColor, setUnitX, setUnitY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FestivalBxUnit

public FestivalBxUnit(int x,
                      int y,
                      Bx6GScreenProfile profile)
建构子。

Parameters:
x - 相对于时间区域 X 座标的 X 座标。
y - 相对于时间区域 Y 座标的 Y 座标。
profile - 屏幕规格。
Method Detail

getUnitType

protected onbon.bx06.message.common.UnitType getUnitType()
Description copied from class: CommonBxUnit
取得单元类型。

Specified by:
getUnitType in class CommonBxUnit
Returns:
单元类型。

apply

protected void apply(onbon.bx06.message.area.unit.CommonUnit unit,
                     ProgramDataBxFile dataFile)
Specified by:
apply in class CommonBxUnit

preview

public void preview(Graphics2D g2d,
                    int areaX,
                    int areaY)
Description copied from class: BxUnit
绘图。

Specified by:
preview in class BxUnit
Parameters:
g2d - 图布。
areaX - 区域 X 座标。
areaY - 区域 Y 座标。


Copyright © 2020 onbon. All rights reserved.