|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonbon.bx06.area.BxArea
public abstract class BxArea
区域,为所有实作区域的父类别。
Constructor Summary | |
---|---|
BxArea(int x,
int y,
int width,
int height,
Bx6GScreenProfile screenProfile)
建构子。 |
Method Summary | |
---|---|
abstract byte[] |
generate(ProgramDataBxFile dataFile)
产生区域的位元组资讯。 |
Font |
getFont()
取得字型。 |
int |
getFrameMoveStep()
取得边框移动步长,单位 pixel,范围 1 - 16。 |
onbon.bx06.message.file.ScreenFrame |
getFrameSetting()
取得区域边框设定。 |
int |
getFrameSpeed()
取得边框显示速度,1 - 48。 |
int |
getFrameStyle()
取得边框显示效果。 0:闪烁。 1:顺时针转动。 2:逆时钟转动。 3:闪烁并顺时钟转动。 4:闪烁并逆时钟转动。 5:红绿交替闪烁。 6:红绿交替转动。 7:静止打出。 |
int |
getHeight()
取得高度。 |
Bx6GScreenProfile |
getScreenProfile()
|
int |
getWidth()
取得宽度。 |
int |
getX()
取得 X 座标。 |
int |
getY()
取得 Y 座标。 |
boolean |
isFrameShow()
取得是否显示边框。 |
void |
loadFrameImage(BufferedImage image)
载入內建边框特效底图。 |
void |
loadFrameImage(int styleIndex)
载入內建边框特效底图。 |
BufferedImage |
preview()
以區域大小檢視。 |
void |
preview(Graphics2D g2d)
檢視配置。 |
BufferedImage |
previewScreen()
以屏幕大小檢視。 |
protected void |
setAreaFrame(onbon.bx06.message.file.ScreenFrame areaFrame)
设定区域边框设定。 |
void |
setFont(Font font)
设定字型。 |
void |
setFrameMoveStep(int frameMoveStep)
设置边框移动步长。单位 pixel,范围 1 - 16。 |
void |
setFrameShow(boolean frameShow)
设定是否显示边框。 |
void |
setFrameSpeed(int frameSpeed)
设置边框显示速度,1 - 48。 |
void |
setFrameStyle(int frameStyle)
设置边框显示效果。 0:闪烁。 1:顺时针转动。 2:逆时钟转动。 3:闪烁并顺时钟转动。 4:闪烁并逆时钟转动。 5:红绿交替闪烁。 6:红绿交替转动。 7:静止打出。 |
protected void |
setHeight(int height)
设定高度。 |
protected void |
setWidth(int width)
设定宽度。 |
protected void |
setX(int x)
设定 X 座标。 |
protected void |
setY(int y)
设定 Y 座标。 |
String |
toString()
|
boolean |
validate(int screenW,
int screenH,
int screenFrameW)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BxArea(int x, int y, int width, int height, Bx6GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 宽度。height
- 高度。screenProfile
- 屏幕规格。Method Detail |
---|
public int getX()
protected void setX(int x)
x
- X 座标。public int getY()
protected void setY(int y)
y
- Y 座标。public int getWidth()
protected void setWidth(int width)
width
- 宽度。public int getHeight()
protected void setHeight(int height)
height
- 高度。public boolean isFrameShow()
public void setFrameShow(boolean frameShow)
frameShow
- 是否显示边框。public int getFrameStyle()
public void setFrameStyle(int frameStyle)
frameStyle
- 边框显示效果。public int getFrameSpeed()
public void setFrameSpeed(int frameSpeed)
frameSpeed
- 边框显示速度。public int getFrameMoveStep()
public void setFrameMoveStep(int frameMoveStep)
frameMoveStep
- 边框移动步长。public void loadFrameImage(int styleIndex) throws IOException
styleIndex
- 内建效果编号,双基色 1 ~ 18,单基色 1 ~ 14。
IOException
- 读取档案发生错误。public void loadFrameImage(BufferedImage image) throws IOException
image
- 特效底图。
IOException
- 读取发生错误。public Bx6GScreenProfile getScreenProfile()
public Font getFont()
public void setFont(Font font)
font
- 字型。public boolean validate(int screenW, int screenH, int screenFrameW)
public BufferedImage preview()
public BufferedImage previewScreen()
public void preview(Graphics2D g2d)
g2d
- 圖。public abstract byte[] generate(ProgramDataBxFile dataFile) throws Bx6GException
dataFile
- 资料。
Bx6GException
- 产生区域位元组资讯时发生错误。public onbon.bx06.message.file.ScreenFrame getFrameSetting()
protected void setAreaFrame(onbon.bx06.message.file.ScreenFrame areaFrame)
areaFrame
- 区域边框设定。public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |