public class DefaultTimeClockBxArea extends BxArea
YearBxUnit year = new YearBxUnit(10, 0);
YearBxUnit month = new MonthBxUnit(50, 0);
YearBxUnit day = new DayBxUnit(90, 0);
TimeClockBxArea area = new TimeClockBxArea(0, 0, 150, 300);
area.setYear(year);
area.setYear(month);
area.setYear(day);
BxArea.PolarType
Constructor and Description |
---|
DefaultTimeClockBxArea(int x,
int y,
int width,
int height,
Bx5GScreenProfile screenProfile)
建构子。
|
DefaultTimeClockBxArea(onbon.bx05.message.area.TimeClockArea area,
Bx5GScreenProfile screenProfile)
建构子。
|
Modifier and Type | Method and Description |
---|---|
byte[] |
generate()
产生区域的位元组资讯。
|
AmPmBxUnit |
getAmPm()
取得 "上下午" 时间单元资讯。
|
AnalogClockBxUnit |
getAnalogClock()
取得 "指针时钟" 单元资讯。
|
byte[] |
getBackgroundPic()
取得底图。
|
CounterBxUnit |
getCounter()
取得 "计数器" 单元资讯。
|
DayBxUnit |
getDay()
取得 "日" 时间单元资讯。
|
FestivalBxUnit |
getFestival()
取得 "节庆" 单元资讯。
|
HourBxUnit |
getHour()
取得 "小时" 时间单元资讯。
|
MinuteBxUnit |
getMinute()
取得 "分钟" 时间单元资讯。
|
MonthBxUnit |
getMonth()
取得 "月" 时间单元资讯。
|
SecondBxUnit |
getSecond()
取得 "秒" 时间单元资讯。
|
int |
getTimeDifferent()
取得时间差。
|
TimerBxUnit |
getTimer()
取得 "秒表" 时间单元资讯。
|
WeekBxUnit |
getWeek()
取得 "周" 时间单元资讯。
|
YearBxUnit |
getYear()
取得 "年" 时间单元资讯。
|
void |
setAmPm(AmPmBxUnit amPm)
设定 "上下午" 时间单元资讯。
|
void |
setAnalogClock(AnalogClockBxUnit analogClock)
设定 "指针时钟" 单元资讯。
|
void |
setBackgroundPic(byte[] backgroundPic)
设定底图。
|
void |
setCounter(CounterBxUnit counter)
设定 "计数器" 单元资讯。
|
void |
setDay(DayBxUnit day)
设定 "日" 时间单元资讯。
|
void |
setFestival(FestivalBxUnit festival)
设定 "节庆" 单元资讯。
|
void |
setHour(HourBxUnit hour)
设定 "小时" 时间单元资讯。
|
void |
setMinute(MinuteBxUnit minute)
设定 "分钟" 时间单元资讯。
|
void |
setMonth(MonthBxUnit month)
设定 "月" 时间单元资讯。
|
void |
setSecond(SecondBxUnit second)
设定 "秒" 时间单元资讯。
|
void |
setTimeDifferent(int timeDifferent)
设定时间差。
|
void |
setTimer(TimerBxUnit timer)
设定 "秒表" 时间单元资讯。
|
void |
setWeek(WeekBxUnit week)
设定 "周" 时间单元资讯。
|
void |
setYear(YearBxUnit year)
设定 "年" 时间单元资讯。
|
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 DefaultTimeClockBxArea(int x, int y, int width, int height, Bx5GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 区域宽度。height
- 区域高度。screenProfile
- 屏幕规格。public DefaultTimeClockBxArea(onbon.bx05.message.area.TimeClockArea area, Bx5GScreenProfile screenProfile) throws uia.message.codec.BlockCodecException
area
- 时间区域。screenProfile
- 屏幕规格。uia.message.codec.BlockCodecException
- 解析出錯。public int getTimeDifferent()
public void setTimeDifferent(int timeDifferent)
timeDifferent
- 时间差。public byte[] getBackgroundPic()
public void setBackgroundPic(byte[] backgroundPic)
backgroundPic
- 底图。public YearBxUnit getYear()
public void setYear(YearBxUnit year)
year
- "年" 时间单元资讯。public MonthBxUnit getMonth()
public void setMonth(MonthBxUnit month)
month
- "月" 时间单元资讯。public DayBxUnit getDay()
public void setDay(DayBxUnit day)
day
- "日" 时间单元资讯。public HourBxUnit getHour()
public void setHour(HourBxUnit hour)
hour
- "小时" 时间单元资讯。public MinuteBxUnit getMinute()
public void setMinute(MinuteBxUnit minute)
minute
- "分钟" 时间单元资讯。public SecondBxUnit getSecond()
public void setSecond(SecondBxUnit second)
second
- "秒" 时间单元资讯。public AmPmBxUnit getAmPm()
public void setAmPm(AmPmBxUnit amPm)
amPm
- "上下午" 时间单元资讯。public WeekBxUnit getWeek()
public void setWeek(WeekBxUnit week)
week
- "周" 时间单元资讯。public AnalogClockBxUnit getAnalogClock()
public void setAnalogClock(AnalogClockBxUnit analogClock)
analogClock
- "指针时钟" 单元资讯。public CounterBxUnit getCounter()
public void setCounter(CounterBxUnit counter)
counter
- "计数器" 单元资讯。public FestivalBxUnit getFestival()
public void setFestival(FestivalBxUnit festival)
festival
- "节庆" 单元资讯。public TimerBxUnit getTimer()
public void setTimer(TimerBxUnit timer)
timer
- "秒表" 时间单元资讯。public byte[] generate() throws Bx5GException
BxArea
generate
in class BxArea
Bx5GException
- 产生区域位元组资讯时发生错误。Copyright © 2020 onbon4j. All rights reserved.