public class ClockBxArea extends AbstractTimeClockBxArea
BxArea.PolarType
Constructor and Description |
---|
ClockBxArea(int x,
int y,
int width,
int height,
Bx5GScreenProfile screenProfile)
建构子。
|
Modifier and Type | Method and Description |
---|---|
protected void |
apply(onbon.bx05.message.area.TimeClockArea area) |
BufferedImage |
getBackground() |
Color |
getForeground() |
AnalogClockBxUnit.TimeHandInfo |
getHourHand() |
AnalogClockBxUnit.TimeHandInfo |
getMinuteHand() |
AnalogClockBxUnit.TimeHandInfo |
getSecondHand() |
void |
loadBackground(int index) |
void |
preview(Graphics2D g2d) |
void |
setBackground(BufferedImage background) |
void |
setForeground(Color foreground) |
createBackgroundPic, generate, getTimeDifferent, setTimeDifferent
getFont, getFrameMoveStep, getFrameSetting, getFrameSpeed, getFrameStyle, getFrameWidth, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, loadFrameImage, preview, previewScreen, setAreaFrame, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, setHeight, setWidth, setX, setY, toString, validate
public ClockBxArea(int x, int y, int width, int height, Bx5GScreenProfile screenProfile)
x
- X 座标。y
- Y 座标。width
- 長。height
- 寬。screenProfile
- 屏幕规格。public AnalogClockBxUnit.TimeHandInfo getHourHand()
public AnalogClockBxUnit.TimeHandInfo getMinuteHand()
public AnalogClockBxUnit.TimeHandInfo getSecondHand()
public Color getForeground()
public void setForeground(Color foreground)
public BufferedImage getBackground()
public void setBackground(BufferedImage background)
public void loadBackground(int index) throws IOException
IOException
protected void apply(onbon.bx05.message.area.TimeClockArea area)
apply
in class AbstractTimeClockBxArea
public void preview(Graphics2D g2d)
Copyright © 2020 onbon4j. All rights reserved.