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)
设定 "年" 时间单元资讯。
|
java.lang.String |
toString() |
getFont, getFrameMoveStep, getFrameSpeed, getFrameStyle, getFrameWidth, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, preview, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, validatepublic 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 byte[] generate()
throws Bx5GException
BxAreagenerate in class BxAreaBx5GException - 产生区域位元组资讯时发生错误。public AmPmBxUnit getAmPm()
public AnalogClockBxUnit getAnalogClock()
public byte[] getBackgroundPic()
public CounterBxUnit getCounter()
public DayBxUnit getDay()
public FestivalBxUnit getFestival()
public HourBxUnit getHour()
public MinuteBxUnit getMinute()
public MonthBxUnit getMonth()
public SecondBxUnit getSecond()
public int getTimeDifferent()
public TimerBxUnit getTimer()
public WeekBxUnit getWeek()
public YearBxUnit getYear()
public void setAmPm(AmPmBxUnit amPm)
amPm - "上下午" 时间单元资讯。public void setAnalogClock(AnalogClockBxUnit analogClock)
analogClock - "指针时钟" 单元资讯。public void setBackgroundPic(byte[] backgroundPic)
backgroundPic - 底图。public void setCounter(CounterBxUnit counter)
counter - "计数器" 单元资讯。public void setDay(DayBxUnit day)
day - "日" 时间单元资讯。public void setFestival(FestivalBxUnit festival)
festival - "节庆" 单元资讯。public void setHour(HourBxUnit hour)
hour - "小时" 时间单元资讯。public void setMinute(MinuteBxUnit minute)
minute - "分钟" 时间单元资讯。public void setMonth(MonthBxUnit month)
month - "月" 时间单元资讯。public void setSecond(SecondBxUnit second)
second - "秒" 时间单元资讯。public void setTimeDifferent(int timeDifferent)
timeDifferent - 时间差。public void setTimer(TimerBxUnit timer)
timer - "秒表" 时间单元资讯。public void setWeek(WeekBxUnit week)
week - "周" 时间单元资讯。public void setYear(YearBxUnit year)
year - "年" 时间单元资讯。