public final class TemperatureBxArea extends BxArea
Modifier and Type | Class and Description |
---|---|
static class |
TemperatureBxArea.DisplayType
温度讯息显示格式。
|
BxArea.PolarType
Modifier and Type | Field and Description |
---|---|
static byte |
SENSOR_DS18B20
DS18B20
|
static byte |
SENSOR_SHT1_SERIES
SHT1
|
Constructor and Description |
---|
TemperatureBxArea(int x,
int y,
int width,
int height,
Bx5GScreenProfile screenProfile)
建构子。
|
TemperatureBxArea(onbon.bx05.message.area.TemperatureArea area,
Bx5GScreenProfile screenProfile)
建构子。
|
Modifier and Type | Method and Description |
---|---|
byte[] |
generate()
产生区域的位元组资讯。
|
Color |
getColor()
取得传感值正常时显示颜色。
|
byte |
getCorrection()
取得修正值。
|
BxArea.PolarType |
getCorrectionPolar()
取得修正极性。
|
TemperatureBxArea.DisplayType |
getDisplayType()
取得显示格式。
|
Color |
getOocColor()
取得传感值超标时显示颜色。
|
byte |
getSensorType()
取得传感器类型。
|
String |
getStaticText()
取得静态文字。
|
byte |
getThresh()
取得触发值。
|
byte |
getThreshPolar()
取得触发值极性。
|
boolean |
isFractionalPart()
取得温度是否显示小数位。
|
void |
setColor(Color color)
设定传感值正常时显示颜色。
|
void |
setCorrection(byte correction)
设定修正值。
|
void |
setCorrectionPolar(BxArea.PolarType correctionPolar)
设定修正极性。
|
void |
setDisplayType(TemperatureBxArea.DisplayType displayType)
设定显示格式。
|
void |
setFractionalPart(boolean fractionalPart)
设定温度是否显示小数位。
|
void |
setOocColor(Color oocColor)
设定传感值超标时显示颜色。
|
void |
setSensorType(byte sensorType)
设定传感器类型。
|
void |
setStaticText(String staticText)
设定静态文字。
|
void |
setThresh(byte thresh)
设定触发值。
|
void |
setThreshPolar(byte threshPolar)
设定触发值极性。
|
String |
toString() |
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getFrameWidth, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, preview, previewScreen, setAreaFrame, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY, validate
public static byte SENSOR_DS18B20
public static byte SENSOR_SHT1_SERIES
public TemperatureBxArea(int x, int y, int width, int height, Bx5GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 区域宽度。height
- 区域高度。screenProfile
- 屏幕规格。public TemperatureBxArea(onbon.bx05.message.area.TemperatureArea area, Bx5GScreenProfile screenProfile)
area
- 区域screenProfile
- 屏幕规格。public byte getSensorType()
public void setSensorType(byte sensorType)
sensorType
- 传感器类型。public TemperatureBxArea.DisplayType getDisplayType()
public void setDisplayType(TemperatureBxArea.DisplayType displayType)
displayType
- 显示格式。public boolean isFractionalPart()
public void setFractionalPart(boolean fractionalPart)
fractionalPart
- 是否显示小数位。public BxArea.PolarType getCorrectionPolar()
public void setCorrectionPolar(BxArea.PolarType correctionPolar)
correctionPolar
- 修正极性。public byte getCorrection()
public void setCorrection(byte correction)
correction
- 修正值。public byte getThreshPolar()
public void setThreshPolar(byte threshPolar)
threshPolar
- 触发值极性。public byte getThresh()
public void setThresh(byte thresh)
thresh
- 触发值。public Color getColor()
public void setColor(Color color)
color
- 颜色。public Color getOocColor()
public void setOocColor(Color oocColor)
oocColor
- 颜色。public String getStaticText()
public void setStaticText(String staticText)
staticText
- 静态文字。public byte[] generate() throws Bx5GException
BxArea
generate
in class BxArea
Bx5GException
- 产生区域位元组资讯时发生错误。Copyright © 2020 onbon4j. All rights reserved.