public class ShowBusy extends PaintOver
Modifier and Type | Field and Description |
---|---|
Color |
backgroundColor |
protected int |
delay |
Modifier and Type | Method and Description |
---|---|
protected boolean |
calculateBackgroundSize(Dimension controlSize,
Dimension textSize,
Dimension backSize)
Given the size of the control and the size of the text to be displayed on the background, calculate how large the background should be.
|
protected IImage[] |
getImages(FontMetrics fm) |
protected int |
getSpinnerSize(FontMetrics fontSize) |
boolean |
paintControl(Control c,
Graphics g,
Rect area,
boolean beforeNormalPaint)
This method is called before doPaint() is called on a Control and normally after doPaint() is called on a Control,
depending on what it returns when beforeNormalPaint is called.
|
protected void |
placeMessage(Dimension toPlace,
Dimension inControl,
Point dest) |
ShowBusy |
setDelay(int millis) |
protected void |
startRun() |
protected void |
stopped() |
protected long |
ticked(long lastScheduledTickTime,
long timeNow)
This is called before a repaint is called.
|
protected boolean |
useFullControlSize(Dimension controlSize,
Dimension backSize)
This can be called from calculateBackgroundSize().
|
getControl, run, start, stop
public Color backgroundColor
protected int delay
public ShowBusy setDelay(int millis)
public boolean paintControl(Control c, Graphics g, Rect area, boolean beforeNormalPaint)
PaintControl
c
- the Control to be painted.g
- the Graphics to paint on.area
- the area within the Control being repainted.beforeNormalPaint
- if this is true then the method is being called before the normal doPaint() method is called on the Control.
if it is false it is being called after the normal doPaint() method is called.protected final boolean useFullControlSize(Dimension controlSize, Dimension backSize)
controlSize
- backSize
- protected boolean calculateBackgroundSize(Dimension controlSize, Dimension textSize, Dimension backSize)
controlSize
- textSize
- backSize
- protected int getSpinnerSize(FontMetrics fontSize)
protected IImage[] getImages(FontMetrics fm)
protected long ticked(long lastScheduledTickTime, long timeNow)
PaintOver