public final class Bx6GScreenProfile
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Bx6GScreenProfile.ScreenColorType
显示屏类型。
1:单基色。 2:双基色。 |
static class |
Bx6GScreenProfile.ScreenMatrixType
点阵类型。控制器默认为 G+R 类型。
|
| Constructor and Description |
|---|
Bx6GScreenProfile(int width,
int height,
Bx6G bx6g)
建构子。
|
Bx6GScreenProfile(int width,
int height,
Bx6G bx6g,
Bx6GScreenProfile.ScreenColorType colorType,
Bx6GScreenProfile.ScreenMatrixType matrixType)
建构子。
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
createMessageConst() |
java.awt.Color |
decodeColor(int color)
色碼轉換成顏色。
|
int |
encodeColor(java.awt.Color color)
顏色轉換成色碼。
|
Bx6GScreenProfile.ScreenColorType |
getColorType()
取得基色类型。
|
int |
getHeight()
取得屏幕高度。
|
Bx6GScreenProfile.ScreenMatrixType |
getMatrixType()
取得双基色点阵类型。
|
int |
getWidth()
取得屏幕宽度。
|
boolean |
isFullColor()
取得是否為全彩。
|
void |
setMatrixType(Bx6GScreenProfile.ScreenMatrixType matrixType)
设定双基色点阵类型。
|
java.lang.String |
toString() |
public Bx6GScreenProfile(int width,
int height,
Bx6G bx6g)
width - 屏幕宽度。height - 屏幕高度。bx6g - BX6G 控制器规格。public Bx6GScreenProfile(int width,
int height,
Bx6G bx6g,
Bx6GScreenProfile.ScreenColorType colorType,
Bx6GScreenProfile.ScreenMatrixType matrixType)
width - 屏幕宽度。height - 屏幕高度。bx6g - BX6G 控制器规格。colorType - 显示屏类型。matrixType - 顏色編碼方式。public java.util.Map<java.lang.String,java.lang.Object> createMessageConst()
public java.awt.Color decodeColor(int color)
color - 色碼。public int encodeColor(java.awt.Color color)
color - 顏色。public Bx6GScreenProfile.ScreenColorType getColorType()
public int getHeight()
public Bx6GScreenProfile.ScreenMatrixType getMatrixType()
public int getWidth()
public boolean isFullColor()
public void setMatrixType(Bx6GScreenProfile.ScreenMatrixType matrixType)
matrixType - 双基色点阵类型。public java.lang.String toString()
toString in class java.lang.Object