|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.actions.PeriodicAction
This class is the base class for all periodically recurring time based actions. The Actionable object (if defined) will be an object that has its trigger method called when the PeriodicAction sub-class action is executed or when a constraining condition of the action is reached. The action is tickled periodically and whether it will do its action is dependant upon the time interval as specified by the scale and period and the time and effective rate of the tickle call.
| Field Summary | |
protected Actionable |
actor
Deprecated. since QTJava 6.1 |
protected boolean |
reschedule
Deprecated. since QTJava 6.1 |
| Fields inherited from interface quicktime.app.time.Ticklish |
kScale |
| Constructor Summary | |
protected |
PeriodicAction(int scale,
int period)
Deprecated. since QTJava 6.1 |
| Method Summary | |
protected abstract boolean |
constraintReached()
Deprecated. since QTJava 6.1 |
protected abstract void |
doAction(float er,
int t)
Deprecated. since QTJava 6.1 |
boolean |
equals(java.lang.Object obj)
Deprecated. since QTJava 6.1 |
Actionable |
getActionable()
Deprecated. since QTJava 6.1 |
int |
getPeriod()
Deprecated. since QTJava 6.1 |
int |
getScale()
Deprecated. since QTJava 6.1 |
int |
getTriggerCondition()
Deprecated. since QTJava 6.1 |
void |
setActionable(Actionable actor)
Deprecated. since QTJava 6.1 |
void |
setPeriod(int period)
Deprecated. since QTJava 6.1 |
void |
setScale(int s)
Deprecated. since QTJava 6.1 |
void |
setTriggerCondition(int cond)
Deprecated. since QTJava 6.1 |
boolean |
tickle(float effectiveRate,
int currentTime)
Deprecated. since QTJava 6.1 |
void |
timeChanged(int newTime)
Deprecated. since QTJava 6.1 |
java.lang.String |
toString()
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Actionable actor
protected boolean reschedule
| Constructor Detail |
protected PeriodicAction(int scale,
int period)
scale - the amount with which a second is divided into at a rate of oneperiod - the number of scale ticks that elapse between invocations of the action.| Method Detail |
public void timeChanged(int newTime)
throws QTException
timeChanged in interface TicklishQTExceptionTicklish
public boolean tickle(float effectiveRate,
int currentTime)
throws QTException
tickle in interface TicklisheffectiveRate - the effective rate of the Timer when the time condition matchescurrentTime - the time that the Timer invoked the tickle method.
QTException
protected abstract void doAction(float er,
int t)
throws QTException
er - the actual rate at which the action has been triggeredt - the time in Ticklish.kScale that the action has been triggered
QTExceptionprotected abstract boolean constraintReached()
public void setActionable(Actionable actor)
public Actionable getActionable()
public void setPeriod(int period)
period - the new periodpublic int getPeriod()
public void setScale(int s)
s - the new scale or resolution of the actionpublic int getScale()
public int getTriggerCondition()
quicktime.std.StdConstants.triggerTimeFwd,
quicktime.std.StdConstants.triggerTimeBwd,
quicktime.std.StdConstants.triggerTimeEitherpublic void setTriggerCondition(int cond)
cond - the current trigger conditionquicktime.std.StdConstants.triggerTimeFwd,
quicktime.std.StdConstants.triggerTimeBwd,
quicktime.std.StdConstants.triggerTimeEitherpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||