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.


Variable Index

 o kConstraintAny
 o kConstraintFirst
 o kConstraintFirstOrLast
 o kConstraintLast
 o seq
This is the Sequencer the action uses

Constructor Index

 o SequencerAction(int, int, Sequencer)
Create a SequencerAction.

Method Index

 o 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.
 o equals(Object)
Returns true if the objects are equal or false otherwise.
 o getConstraint()
Gets the constraining condition of the actionable doAction method
 o setConstraint(int)
Set the constraining condition that determines the cirumstances of when the attached actionable object is triggered.

Variables

 o kConstraintAny
 public static final int kConstraintAny
 o kConstraintFirst
 public static final int kConstraintFirst
 o kConstraintLast
 public static final int kConstraintLast
 o kConstraintFirstOrLast
 public static final int kConstraintFirstOrLast
 o seq
 protected Sequencer seq
This is the Sequencer the action uses

Constructors

 o 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.

Methods

 o 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
 o getConstraint
 public int getConstraint()
Gets the constraining condition of the actionable doAction method

Returns:
the constraint
 o 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
 o 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