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()
产生区域的位元组资讯。
|
java.awt.Color |
getColor()
取得传感值正常时显示颜色。
|
byte |
getCorrection()
取得修正值。
|
BxArea.PolarType |
getCorrectionPolar()
取得修正极性。
|
TemperatureBxArea.DisplayType |
getDisplayType()
取得显示格式。
|
java.awt.Color |
getOocColor()
取得传感值超标时显示颜色。
|
byte |
getSensorType()
取得传感器类型。
|
java.lang.String |
getStaticText()
取得静态文字。
|
byte |
getThresh()
取得触发值。
|
byte |
getThreshPolar()
取得触发值极性。
|
boolean |
isFractionalPart()
取得温度是否显示小数位。
|
void |
setColor(java.awt.Color color)
设定传感值正常时显示颜色。
|
void |
setCorrection(byte correction)
设定修正值。
|
void |
setCorrectionPolar(BxArea.PolarType correctionPolar)
设定修正极性。
|
void |
setDisplayType(TemperatureBxArea.DisplayType displayType)
设定显示格式。
|
void |
setFractionalPart(boolean fractionalPart)
设定温度是否显示小数位。
|
void |
setOocColor(java.awt.Color oocColor)
设定传感值超标时显示颜色。
|
void |
setSensorType(byte sensorType)
设定传感器类型。
|
void |
setStaticText(java.lang.String staticText)
设定静态文字。
|
void |
setThresh(byte thresh)
设定触发值。
|
void |
setThreshPolar(byte threshPolar)
设定触发值极性。
|
java.lang.String |
toString() |
getFont, getFrameMoveStep, getFrameSpeed, getFrameStyle, getFrameWidth, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, preview, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, validatepublic 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[] generate()
throws Bx5GException
BxAreagenerate in class BxAreaBx5GException - 产生区域位元组资讯时发生错误。public java.awt.Color getColor()
public byte getCorrection()
public BxArea.PolarType getCorrectionPolar()
public TemperatureBxArea.DisplayType getDisplayType()
public java.awt.Color getOocColor()
public byte getSensorType()
public java.lang.String getStaticText()
public byte getThresh()
public byte getThreshPolar()
public boolean isFractionalPart()
public void setColor(java.awt.Color color)
color - 颜色。public void setCorrection(byte correction)
correction - 修正值。public void setCorrectionPolar(BxArea.PolarType correctionPolar)
correctionPolar - 修正极性。public void setDisplayType(TemperatureBxArea.DisplayType displayType)
displayType - 显示格式。public void setFractionalPart(boolean fractionalPart)
fractionalPart - 是否显示小数位。public void setOocColor(java.awt.Color oocColor)
oocColor - 颜色。public void setSensorType(byte sensorType)
sensorType - 传感器类型。public void setStaticText(java.lang.String staticText)
staticText - 静态文字。public void setThresh(byte thresh)
thresh - 触发值。public void setThreshPolar(byte threshPolar)
threshPolar - 触发值极性。