|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--lcarsbeans.LcarsTimer
A simple (invisible) timer.
This timer is used by LcarsTrackbar, and has only the
functionality needed for this purpose.
I wrote it because my browsers didnt find javax.swing.Timer.
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
LcarsTimer()
Constructs a new instance. |
|
LcarsTimer(int newDelay,
int newInitialDelay)
Another constructor. |
Method Summary | |
void |
addLcarsTimerFireListener(LcarsTimerFireListener l)
Adds a listener for the LcarsTimerFireEvent. |
protected void |
fireLcarsTimerFire()
Sends the Change-Event to all listeners. |
int |
getDelay()
Returns the delay between two timer events. |
int |
getInitialDelay()
Returns the delay between the start of the timer and the first timer event. |
boolean |
isRunning()
Returns whether the timer is currently running (and firing timer events). |
void |
removeLcarsTimerFireListener(LcarsTimerFireListener l)
Removes a listener for the LcarsTimerFireEvent. |
void |
run()
the run() method needed for every thread. |
void |
setDelay(int newDelay)
Sets the delay between two timer events. |
void |
setInitialDelay(int newInitialDelay)
Sets the delay between the start of the timer and the first timer event. |
void |
start()
Starts the timer. |
void |
stop()
Stops the timer. |
Methods inherited from class java.awt.Component |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public LcarsTimer()
public LcarsTimer(int newDelay, int newInitialDelay)
Method Detail |
public void run()
public void start()
public void stop()
public int getDelay()
public void setDelay(int newDelay)
public int getInitialDelay()
public void setInitialDelay(int newInitialDelay)
public boolean isRunning()
protected void fireLcarsTimerFire()
public void addLcarsTimerFireListener(LcarsTimerFireListener l)
public void removeLcarsTimerFireListener(LcarsTimerFireListener l)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |