onbon.bx06.area
类 SensorBxArea

java.lang.Object
  继承者 onbon.bx06.area.BxArea
      继承者 onbon.bx06.area.SensorBxArea
直接已知子类:
HumidityBxArea, NoiseBxArea, TemperatureBxArea

public abstract class SensorBxArea
extends BxArea

湿度区域。

作者:
ONBON

嵌套类摘要
static class SensorBxArea.AlarmType
           
static class SensorBxArea.PolarType
          极性类型
 
字段摘要
static byte NUMBER_NOLIMIT
           
 
构造方法摘要
SensorBxArea(int x, int y, int width, int height, Bx6GScreenProfile screenProfile)
          建构子。
SensorBxArea(onbon.bx06.message.area.SensorArea area, Bx6GScreenProfile screenProfile)
          建构子。
 
方法摘要
 void addThreshold(SensorBxArea.AlarmType alarmType, int value, Color normal, Color alarm)
          增加警報界線。
 void clearThresholds()
          清除警報界線。
 byte[] generate(ProgramDataBxFile dataFile)
          产生区域的位元组资讯。
 int getCorrection()
          取得修正值。
 SensorBxArea.PolarType getCorrectionPolar()
          取得修正极性。
protected abstract  onbon.bx06.message.file.FontData getFontData()
           
 byte getNumberFloat()
           
 byte getNumberInt()
           
protected abstract  byte getSensorMode()
           
protected abstract  byte getSensorType()
           
protected abstract  byte getSensorUnit()
           
 String getStaticText()
          取得静态文字。
 int getTransparency()
          取得透明度。
 boolean isBackgroundFlag()
           
 boolean isFractionalPart()
          取得湿度是否显示小数位。
 boolean isSensorUnitFlag()
           
 void maskByBackground()
          显示被背景遮罩的部分。
 void overlayWithBackground()
          与背景重叠显示。
 void setBackgroundFlag(boolean backgroundFlag)
           
 void setCorrection(int correction)
          设定修正值。
 void setCorrectionPolar(SensorBxArea.PolarType correctionPolar)
          设定修正极性。
 void setFractionalPart(boolean fractionalPart)
          设定湿度是否显示小数位。
 void setNumberFloat(byte numberFloat)
           
 void setNumberInt(byte numberInt)
           
 void setSensorUnitFlag(boolean sensorUnitFlag)
           
 void setStaticText(String staticText)
          设定静态文字。
 void setTransparency(int transparency)
          设定透明度。
 String toString()
           
 
从类 onbon.bx06.area.BxArea 继承的方法
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, preview, setAreaFrame, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY, validate
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

NUMBER_NOLIMIT

public static final byte NUMBER_NOLIMIT
另请参见:
常量字段值
构造方法详细信息

SensorBxArea

public SensorBxArea(int x,
                    int y,
                    int width,
                    int height,
                    Bx6GScreenProfile screenProfile)
建构子。

参数:
x - X 座标。
y - Y 座标。
width - 区域宽度。
height - 区域高度。
screenProfile - 屏幕规格。

SensorBxArea

public SensorBxArea(onbon.bx06.message.area.SensorArea area,
                    Bx6GScreenProfile screenProfile)
建构子。

参数:
area - 区域
screenProfile - 屏幕规格。
方法详细信息

isBackgroundFlag

public boolean isBackgroundFlag()

setBackgroundFlag

public void setBackgroundFlag(boolean backgroundFlag)

getTransparency

public int getTransparency()
取得透明度。

返回:
透明度。

setTransparency

public void setTransparency(int transparency)
设定透明度。
1. 当该值大于等于 0(不透明) 小于等于100(全透明) 时,以该背景区域为基准。

参数:
transparency - 透明度。

overlayWithBackground

public void overlayWithBackground()
与背景重叠显示。


maskByBackground

public void maskByBackground()
显示被背景遮罩的部分。


isSensorUnitFlag

public boolean isSensorUnitFlag()

setSensorUnitFlag

public void setSensorUnitFlag(boolean sensorUnitFlag)

isFractionalPart

public boolean isFractionalPart()
取得湿度是否显示小数位。

返回:
是否显示小数位。

setFractionalPart

public void setFractionalPart(boolean fractionalPart)
设定湿度是否显示小数位。

参数:
fractionalPart - 是否显示小数位。

getNumberInt

public byte getNumberInt()

setNumberInt

public void setNumberInt(byte numberInt)

getNumberFloat

public byte getNumberFloat()

setNumberFloat

public void setNumberFloat(byte numberFloat)

getCorrectionPolar

public SensorBxArea.PolarType getCorrectionPolar()
取得修正极性。

返回:
修正极性。

setCorrectionPolar

public void setCorrectionPolar(SensorBxArea.PolarType correctionPolar)
设定修正极性。

参数:
correctionPolar - 修正极性。

getCorrection

public int getCorrection()
取得修正值。

返回:
修正值。

setCorrection

public void setCorrection(int correction)
设定修正值。

参数:
correction - 修正值。

getStaticText

public String getStaticText()
取得静态文字。

返回:
静态文字。

setStaticText

public void setStaticText(String staticText)
设定静态文字。

参数:
staticText - 静态文字。

addThreshold

public void addThreshold(SensorBxArea.AlarmType alarmType,
                         int value,
                         Color normal,
                         Color alarm)
增加警報界線。

参数:
alarmType - 警報種類。
value - 值。
normal - 正常訊息顏色。
alarm - 警報訊息顏色。

clearThresholds

public void clearThresholds()
清除警報界線。


getSensorMode

protected abstract byte getSensorMode()

getSensorType

protected abstract byte getSensorType()

getSensorUnit

protected abstract byte getSensorUnit()

getFontData

protected abstract onbon.bx06.message.file.FontData getFontData()

generate

public byte[] generate(ProgramDataBxFile dataFile)
                throws Bx6GException
从类 BxArea 复制的描述
产生区域的位元组资讯。

指定者:
类 BxArea 中的 generate
参数:
dataFile - 资料。
返回:
区域位元组资讯。
抛出:
Bx6GException - 产生区域位元组资讯时发生错误。

toString

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


Copyright © 2018 onbon. All rights reserved.