public final class Bx5GScreenProfile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Bx5GScreenProfile.ScreenColorType
显示屏类型。
1:单基色。 3:双基色。 254:双色灰度色。 255:全彩。 |
static class |
Bx5GScreenProfile.ScreenMatrixType
点阵类型。控制器默认为 G+R 类型。
|
Constructor and Description |
---|
Bx5GScreenProfile(int width,
int height,
Bx5G bx5g)
建构子。
|
Bx5GScreenProfile(int width,
int height,
Bx5G bx5g,
Bx5GScreenProfile.ScreenColorType colorType)
建构子。
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
createMessageConst() |
Color |
decodeColor(int color) |
int |
encodeColor(Color color) |
Bx5GScreenProfile.ScreenColorType |
getColorType()
取得基色类型。
|
int |
getHeight()
取得屏幕高度。
|
Bx5GScreenProfile.ScreenMatrixType |
getMatrixType()
取得双基色点阵类型。
|
int |
getWidth()
取得屏幕宽度。
|
boolean |
isFullColor()
取得是否為全彩。
|
boolean |
isReverseFontData()
取得是否反轉字模。
|
void |
setMatrixType(Bx5GScreenProfile.ScreenMatrixType matrixType)
设定双基色点阵类型。
|
String |
toString() |
public Bx5GScreenProfile(int width, int height, Bx5G bx5g)
width
- 屏幕宽度。height
- 屏幕高度。bx5g
- BX5G 控制器规格。public Bx5GScreenProfile(int width, int height, Bx5G bx5g, Bx5GScreenProfile.ScreenColorType colorType)
width
- 屏幕宽度。height
- 屏幕高度。bx5g
- BX5G 控制器规格。colorType
- 显示屏类型。public Bx5GScreenProfile.ScreenColorType getColorType()
public Bx5GScreenProfile.ScreenMatrixType getMatrixType()
public void setMatrixType(Bx5GScreenProfile.ScreenMatrixType matrixType)
matrixType
- 双基色点阵类型。public int getWidth()
public int getHeight()
public boolean isFullColor()
public boolean isReverseFontData()
public int encodeColor(Color color)
public Color decodeColor(int color)
Copyright © 2020 onbon4j. All rights reserved.