onbon.bx06
类 Bx6GScreenProfile

java.lang.Object
  继承者 onbon.bx06.Bx6GScreenProfile

public final class Bx6GScreenProfile
extends Object

屏幕规格。

作者:
ONBON

嵌套类摘要
static class Bx6GScreenProfile.ScreenColorType
          显示屏类型。
static class Bx6GScreenProfile.ScreenMatrixType
          点阵类型。
 
构造方法摘要
Bx6GScreenProfile(int width, int height, Bx6Card bx6Card)
          建构子。
Bx6GScreenProfile(int width, int height, Bx6Card bx6Card, Bx6GScreenProfile.ScreenColorType colorType, Bx6GScreenProfile.ScreenMatrixType matrixType)
          建构子。
 
方法摘要
 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()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Bx6GScreenProfile

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

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

Bx6GScreenProfile

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

参数:
width - 屏幕宽度。
height - 屏幕高度。
bx6Card - BX6G 控制器规格。
colorType - 显示屏类型。
matrixType - 顏色編碼方式。
方法详细信息

getColorType

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

返回:
基色类型。

getMatrixType

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

返回:
双基色点阵类型。

setMatrixType

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

参数:
matrixType - 双基色点阵类型。

getWidth

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

返回:
屏幕宽度。

getHeight

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

返回:
屏幕高度。

isReverseFontData

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

返回:
是否反轉字模。

isFullColor

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

返回:
是否為全彩。

createMessageContext

public Map<String,Object> createMessageContext()

encodeColor

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

参数:
color - 顏色。
返回:
色碼。

decodeColor

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

参数:
color - 色碼。
返回:
顏色。

toString

public String toString()
覆盖:
类 Object 中的 toString


Copyright © 2018 onbon. All rights reserved.