|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectonbon.bx06.area.BxArea
public abstract class BxArea
区域,为所有实作区域的父类别。
| 构造方法摘要 | |
|---|---|
BxArea(int x,
int y,
int width,
int height,
Bx6GScreenProfile screenProfile)
建构子。 |
|
| 方法摘要 | |
|---|---|
abstract byte[] |
generate(ProgramDataBxFile dataFile)
产生区域的位元组资讯。 |
Font |
getFont()
取得字型。 |
int |
getFrameMoveStep()
取得边框移动步长,单位 pixel,范围 1 - 16。 |
onbon.bx06.message.file.ScreenFrame |
getFrameSetting()
取得区域边框设定。 |
int |
getFrameSpeed()
取得边框显示速度,1 - 48。 |
int |
getFrameStyle()
取得边框显示效果。 |
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)
檢視配置。 |
protected void |
setAreaFrame(onbon.bx06.message.file.ScreenFrame areaFrame)
设定区域边框设定。 |
void |
setFont(Font font)
设定字型。 |
void |
setFrameMoveStep(int frameMoveStep)
设置边框移动步长。 |
void |
setFrameShow(boolean frameShow)
设定是否显示边框。 |
void |
setFrameSpeed(int frameSpeed)
设置边框显示速度,1 - 48。 |
void |
setFrameStyle(int frameStyle)
设置边框显示效果。 |
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)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public BxArea(int x,
int y,
int width,
int height,
Bx6GScreenProfile screenProfile)
x - X 座标。y - Y 座标。width - 宽度。height - 高度。screenProfile - 屏幕规格。| 方法详细信息 |
|---|
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 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()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||