All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.app.actions.SequencerAction
java.lang.Object
|
+----quicktime.app.actions.PeriodicAction
|
+----quicktime.app.actions.SequencerAction
- public abstract class SequencerAction
- extends PeriodicAction
This class is an abstract class for actions that interact with some kind of Sequencer.
The doAction method is left for the subclass to define so that it can define the type
of a Sequencer the action deals with. The constraining conditions of the Sequencer are dealt with by
this class.
-
kConstraintAny
-
-
kConstraintFirst
-
-
kConstraintFirstOrLast
-
-
kConstraintLast
-
-
seq
- This is the Sequencer the action uses
-
SequencerAction(int, int, Sequencer)
- Create a SequencerAction.
-
constraintReached()
- Subclasses should return true if after an action is triggered (the doAction
method is called) the action has reached one of its specified constraint conditions
and the actionable object should be triggered.
-
equals(Object)
- Returns true if the objects are equal or false otherwise.
-
getConstraint()
- Gets the constraining condition of the actionable doAction method
-
setConstraint(int)
- Set the constraining condition that determines the cirumstances of when
the attached actionable object is triggered.
kConstraintAny
public static final int kConstraintAny
kConstraintFirst
public static final int kConstraintFirst
kConstraintLast
public static final int kConstraintLast
kConstraintFirstOrLast
public static final int kConstraintFirstOrLast
seq
protected Sequencer seq
- This is the Sequencer the action uses
SequencerAction
protected SequencerAction(int scale,
int period,
Sequencer seq) throws QTException
- Create a SequencerAction.
- Parameters:
- scale - the amount with which a second is divided into at a rate of one
- period - the number of scale ticks that elapse between invocations of the action.
- seq - the Sequencer.
setConstraint
public void setConstraint(int cons)
- Set the constraining condition that determines the cirumstances of when
the attached actionable object is triggered.
- Parameters:
- cons - the constraint
getConstraint
public int getConstraint()
- Gets the constraining condition of the actionable doAction method
- Returns:
- the constraint
constraintReached
protected boolean constraintReached()
- Subclasses should return true if after an action is triggered (the doAction
method is called) the action has reached one of its specified constraint conditions
and the actionable object should be triggered. How this is defined is determined
totally by the subclass.
- Returns:
- true if the actionable object (if set) should be triggered
- Overrides:
- constraintReached in class PeriodicAction
equals
public boolean equals(Object obj)
- Returns true if the objects are equal or false otherwise.
- Parameters:
- obj - the object to test
- Returns:
- a boolean
- Overrides:
- equals in class PeriodicAction
All Packages Class Hierarchy This Package Previous Next Index