All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.app.actions.NextImageAction

java.lang.Object
   |
   +----quicktime.app.actions.PeriodicAction
           |
           +----quicktime.app.actions.SequencerAction
                   |
                   +----quicktime.app.actions.NextImageAction

public class NextImageAction
extends SequencerAction
implements Targetable
This class will display the next image of its sequence of images whenever the doAction method is called from the super class tickle method.


Variable Index

 o target

Constructor Index

 o NextImageAction(int, int, ImageSequencer, ImageSettable)
Creates an ImageAction.

Method Index

 o doAction(float, int)
This method does whatever actions are appropriate so that subsequent calls to getImage and getDescription return the correct image data.
 o getTarget()
Returns the current target of the action.
 o setTarget(Object)
Sets the Target of the NextImageAction which is an ImageSettable object.

Variables

 o target
 protected ImageSettable target

Constructors

 o NextImageAction
 public NextImageAction(int scale,
                        int period,
                        ImageSequencer images,
                        ImageSettable target) throws QTException
Creates an ImageAction.

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.
images - the images that will be cycled through
target - this object is the target of the action.

Methods

 o setTarget
 public void setTarget(Object target)
Sets the Target of the NextImageAction which is an ImageSettable object.

Parameters:
target - the new target for the Action
 o getTarget
 public Object getTarget()
Returns the current target of the action.

Returns:
the target - an ImageSettable object
 o doAction
 protected void doAction(float er,
                         int t) throws QTException
This method does whatever actions are appropriate so that subsequent calls to getImage and getDescription return the correct image data.

Parameters:
er - the actual rate at which the action has been triggered
t - the time in Ticklish.kScale that the action has been triggered
Overrides:
doAction in class PeriodicAction

All Packages  Class Hierarchy  This Package  Previous  Next  Index