|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonbon.bx06.area.BxArea
onbon.bx06.area.AbstractTimeClockBxArea
onbon.bx06.area.DateTimeBxArea
public class DateTimeBxArea
日期时间区域,由日期 (Date)、星期 (Week)、时间 (Time) 组合。
DateStyle
,
WeekStyle
,
TimeStyle
Constructor Summary | |
---|---|
DateTimeBxArea(int x,
int y,
Bx6GScreenProfile screenProfile)
建构子。 |
|
DateTimeBxArea(int x,
int y,
int width,
int height,
Bx6GScreenProfile screenProfile)
建构子。 |
Method Summary | |
---|---|
protected void |
apply(onbon.bx06.message.area.TimeClockArea area,
ProgramDataBxFile dataFile)
|
void |
clearDateStyle()
清除日期显示。 |
void |
clearTimeStyle()
清除时间显示。 |
void |
clearWeekStyle()
清除星期显示。 |
DateStyle |
getDateStyle()
取得日期显示样式。 |
Color |
getForeground()
取得颜色。 |
TimeStyle |
getTimeStyle()
取得时间显示样式。 |
WeekStyle |
getWeekStyle()
取得星期显示样式。 |
boolean |
isMultiline()
是否多行显示。 |
void |
preview(Graphics2D g2d)
檢視配置。 |
void |
setDateStyle(DateStyle dateStyle)
设定日期显示样式,NULL 表示不显示日期。 |
void |
setDateStyle(DateStyle dateStyle,
String label)
设定日期显示样式,NULL 表示不显示日期。 |
void |
setFont(Font font)
设定字型。 |
void |
setForeground(Color foreground)
设定颜色。 |
void |
setMultiline(boolean multiline)
设定多行显示。 |
void |
setTimeStyle(TimeStyle timeStyle)
设置时间显示样式,NULL 表示不显示时间。 |
void |
setTimeStyle(TimeStyle timeStyle,
String label)
设置时间显示样式,NULL 表示不显示时间。 |
void |
setWeekStyle(WeekStyle weekStyle)
设置星期显示样式,NULL 表示不显示星期。 |
String |
toString()
|
boolean |
validate(int screenW,
int screenH,
int screenFrameW)
|
Methods inherited from class onbon.bx06.area.BxArea |
---|
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, previewScreen, setAreaFrame, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateTimeBxArea(int x, int y, Bx6GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。screenProfile
- 屏幕规格。public DateTimeBxArea(int x, int y, int width, int height, Bx6GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 宽度。height
- 高度。screenProfile
- 屏幕规格。Method Detail |
---|
public void setFont(Font font)
BxArea
setFont
in class BxArea
font
- 字型。public boolean isMultiline()
public void setMultiline(boolean multiline)
multiline
- 多行显示。public Color getForeground()
public void setForeground(Color foreground)
foreground
- 颜色。public DateStyle getDateStyle()
public void setDateStyle(DateStyle dateStyle)
dateStyle
- 日期显示样式。public void setDateStyle(DateStyle dateStyle, String label)
dateStyle
- 日期显示样式。label
- 显示在日期前的文字。public WeekStyle getWeekStyle()
public void setWeekStyle(WeekStyle weekStyle)
weekStyle
- 星期显示样式。public TimeStyle getTimeStyle()
public void setTimeStyle(TimeStyle timeStyle)
timeStyle
- 时间显示样式。public void setTimeStyle(TimeStyle timeStyle, String label)
timeStyle
- 时间显示样式。label
- 显示在时间前的文字。public void clearDateStyle()
public void clearTimeStyle()
public void clearWeekStyle()
public String toString()
toString
in class BxArea
public boolean validate(int screenW, int screenH, int screenFrameW)
validate
in class BxArea
protected void apply(onbon.bx06.message.area.TimeClockArea area, ProgramDataBxFile dataFile)
apply
in class AbstractTimeClockBxArea
public void preview(Graphics2D g2d)
BxArea
preview
in class BxArea
g2d
- 圖。
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |