onbon.bx06
Class Bx6GScreenProfile

java.lang.Object
  extended by onbon.bx06.Bx6GScreenProfile

public final class Bx6GScreenProfile
extends Object

屏幕规格。

Author:
ONBON

Nested Class Summary
static class Bx6GScreenProfile.ScreenColorType
          显示屏类型。
1:单基色。
2:双基色。
static class Bx6GScreenProfile.ScreenMatrixType
          点阵类型。
 
Constructor Summary
Bx6GScreenProfile(int width, int height, Bx6Card bx6Card)
          建构子。
Bx6GScreenProfile(int width, int height, Bx6Card bx6Card, Bx6GScreenProfile.ScreenColorType colorType, Bx6GScreenProfile.ScreenMatrixType matrixType)
          建构子。
 
Method Summary
 Map<String,Object> createMessageContext()
           
 Color decodeColor(int color)
          色碼轉換成顏色。
 int encodeColor(Color color)
          顏色轉換成色碼。
 Bx6GScreenProfile.ScreenColorType getColorType()
          取得基色类型。
 int getHeight()
          取得屏幕高度。
 Bx6GScreenProfile.ScreenMatrixType getMatrixType()
          取得双基色点阵类型。
 int getWidth()
          取得屏幕宽度。
 boolean isFullColor()
          取得是否為全彩。
 boolean isReverseFontData()
          取得是否反轉字模。
 void setMatrixType(Bx6GScreenProfile.ScreenMatrixType matrixType)
          设定双基色点阵类型。
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bx6GScreenProfile

public Bx6GScreenProfile(int width,
                         int height,
                         Bx6Card bx6Card)
建构子。

Parameters:
width - 屏幕宽度。
height - 屏幕高度。
bx6Card - BX6G 控制器规格。

Bx6GScreenProfile

public Bx6GScreenProfile(int width,
                         int height,
                         Bx6Card bx6Card,
                         Bx6GScreenProfile.ScreenColorType colorType,
                         Bx6GScreenProfile.ScreenMatrixType matrixType)
建构子。

Parameters:
width - 屏幕宽度。
height - 屏幕高度。
bx6Card - BX6G 控制器规格。
colorType - 显示屏类型。
matrixType - 顏色編碼方式。
Method Detail

getColorType

public Bx6GScreenProfile.ScreenColorType getColorType()
取得基色类型。

Returns:
基色类型。

getMatrixType

public Bx6GScreenProfile.ScreenMatrixType getMatrixType()
取得双基色点阵类型。

Returns:
双基色点阵类型。

setMatrixType

public void setMatrixType(Bx6GScreenProfile.ScreenMatrixType matrixType)
设定双基色点阵类型。

Parameters:
matrixType - 双基色点阵类型。

getWidth

public int getWidth()
取得屏幕宽度。

Returns:
屏幕宽度。

getHeight

public int getHeight()
取得屏幕高度。

Returns:
屏幕高度。

isReverseFontData

public boolean isReverseFontData()
取得是否反轉字模。

Returns:
是否反轉字模。

isFullColor

public boolean isFullColor()
取得是否為全彩。

Returns:
是否為全彩。

createMessageContext

public Map<String,Object> createMessageContext()

encodeColor

public int encodeColor(Color color)
顏色轉換成色碼。

Parameters:
color - 顏色。
Returns:
色碼。

decodeColor

public Color decodeColor(int color)
色碼轉換成顏色。

Parameters:
color - 色碼。
Returns:
顏色。

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2020 onbon. All rights reserved.