public class HourglassView extends TimerView
| Constructor and Description |
|---|
HourglassView(FrameManager fmgr,
JComponent host,
int x,
int y,
Mirage glassImage,
Mirage topImage,
Rectangle topRect,
Mirage botImage,
Rectangle botRect,
MultiFrameImage sandTrickle)
Constructs an hourglass view.
|
HourglassView(FrameManager fmgr,
JComponent host,
int x,
int y,
Mirage glassImage,
Mirage topImage,
Rectangle topRect,
Point topOff,
Mirage botImage,
Rectangle botRect,
Point botOff,
MultiFrameImage sandTrickle)
Constructs an hourglass view.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeComplete(float complete)
Generate an unexpected change in the timer's completion and
set up the necessary details to render interpolation from the old
to new states
|
void |
paint(Graphics2D gfx,
float completed)
Paint the timer into the given graphics context at the inputted
percent complete (0f means just started, 1f means just finished).
|
void |
tick(long tickStamp)
This is called on all registered frame participants, one for every
frame.
|
checkFrameParticipation, getComponent, getTransitionTime, hierarchyChanged, needsPaint, pause, removeWarning, render, reset, running, setEnabled, setTransitionTime, setWarning, start, stop, unpausepublic HourglassView(FrameManager fmgr, JComponent host, int x, int y, Mirage glassImage, Mirage topImage, Rectangle topRect, Mirage botImage, Rectangle botRect, MultiFrameImage sandTrickle)
public HourglassView(FrameManager fmgr, JComponent host, int x, int y, Mirage glassImage, Mirage topImage, Rectangle topRect, Point topOff, Mirage botImage, Rectangle botRect, Point botOff, MultiFrameImage sandTrickle)
public void changeComplete(float complete)
TimerViewchangeComplete in class TimerViewpublic void tick(long tickStamp)
FrameParticipanttick in interface FrameParticipanttick in class TimerViewpublic void paint(Graphics2D gfx, float completed)
TimerViewCopyright © 2015. All rights reserved.