public abstract class BxArea extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BxArea.PolarType
极性类型
|
Constructor and Description |
---|
BxArea(int x,
int y,
int width,
int height,
Bx5GScreenProfile screenProfile)
建构子。
|
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
generate()
产生区域的位元组资讯。
|
Font |
getFont()
取得字型。
|
int |
getFrameMoveStep()
取得边框移动步长,单位 pixel,范围 1 - 16。
|
protected onbon.bx05.message.area.AreaFrame |
getFrameSetting()
取得区域边框设定。
|
int |
getFrameSpeed()
取得边框显示速度,1 - 48。
|
int |
getFrameStyle()
取得边框显示效果。
0:闪烁。 1:顺时针转动。 2:逆时钟转动。 3:闪烁并顺时钟转动。 4:闪烁并逆时钟转动。 5:红绿交替闪烁。 6:红绿交替转动。 7:静止打出。 |
int |
getFrameWidth()
取得边框寬度。
|
int |
getHeight()
取得高度。
|
Bx5GScreenProfile |
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.bx05.message.area.AreaFrame 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) |
public BxArea(int x, int y, int width, int height, Bx5GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 宽度。height
- 高度。screenProfile
- 屏幕规格。public Bx5GScreenProfile getScreenProfile()
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 int getFrameWidth()
public void loadFrameImage(int styleIndex) throws IOException
styleIndex
- 内建效果编号,双基色 1 ~ 18,单基色 1 ~ 14。IOException
- 读取档案发生错误。public void loadFrameImage(BufferedImage image) throws IOException
image
- 特效底图。IOException
- 读取发生错误。protected onbon.bx05.message.area.AreaFrame getFrameSetting()
public Font getFont()
public void setFont(Font font)
font
- 字型。public boolean validate(int screenW, int screenH, int screenFrameW)
public abstract byte[] generate() throws Bx5GException
Bx5GException
- 产生区域位元组资讯时发生错误。public BufferedImage preview()
public BufferedImage previewScreen()
public void preview(Graphics2D g2d)
protected void setAreaFrame(onbon.bx05.message.area.AreaFrame areaFrame)
Copyright © 2020 onbon4j. All rights reserved.