public abstract class AbstractTimeClockBxArea extends BxArea
BxArea.PolarType
Constructor and Description |
---|
AbstractTimeClockBxArea(int x,
int y,
int width,
int height,
Bx5GScreenProfile screenProfile)
建构子。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
apply(onbon.bx05.message.area.TimeClockArea area) |
protected BufferedImage |
createBackgroundPic()
根据当前长、宽与边框设定,建立底图。
不显示边框:底图大小等于 宽 x 高。 显示边框:底图大小等于 (宽 - 2 * 边框宽度) x (高 - 2 * 边框宽度)。 |
byte[] |
generate()
产生区域的位元组资讯。
|
int |
getTimeDifferent()
取得时间差。
|
void |
setTimeDifferent(int timeDifferent)
设定时间差。
|
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getFrameWidth, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, preview, previewScreen, setAreaFrame, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY, toString, validate
public AbstractTimeClockBxArea(int x, int y, int width, int height, Bx5GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 区域宽。height
- 区域高。screenProfile
- 屏幕规格。public int getTimeDifferent()
public void setTimeDifferent(int timeDifferent)
timeDifferent
- 时间差。public byte[] generate() throws Bx5GException
BxArea
generate
in class BxArea
Bx5GException
- 产生区域位元组资讯时发生错误。protected BufferedImage createBackgroundPic()
protected abstract void apply(onbon.bx05.message.area.TimeClockArea area)
Copyright © 2020 onbon4j. All rights reserved.