visual.dynamic.sampled
Class TransformableContentSuperimposition

java.lang.Object
  extended by visual.dynamic.sampled.AbstractFrameOp
      extended by visual.dynamic.sampled.AbstractSuperimposition
          extended by visual.dynamic.sampled.TransformableContentSuperimposition
All Implemented Interfaces:
FrameOp, Superimposition

public class TransformableContentSuperimposition
extends AbstractSuperimposition

A piece of (transformable) static visual content that is superimposed on a frame

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Field Summary
 
Fields inherited from class visual.dynamic.sampled.AbstractFrameOp
duration, first
 
Constructor Summary
TransformableContentSuperimposition(TransformableContent content, int first, int duration, int position)
          Explicit Value Constructor
 
Method Summary
 void postRendering(java.awt.Graphics g, int frame)
          Apply the post-rendering portion of this Superimposition
 void preRendering(java.awt.Graphics g, int frame)
          Apply the pre-rendering portion of this Superimposition
 
Methods inherited from class visual.dynamic.sampled.AbstractSuperimposition
calculateRegistrationPoint, getPosition
 
Methods inherited from class visual.dynamic.sampled.AbstractFrameOp
getFirstFrame, getLastFrame, hasFinishedAt, shouldApplyAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface visual.dynamic.sampled.FrameOp
getFirstFrame, getLastFrame
 

Constructor Detail

TransformableContentSuperimposition

public TransformableContentSuperimposition(TransformableContent content,
                                           int first,
                                           int duration,
                                           int position)
Explicit Value Constructor

Parameters:
content - The visual content to use
first - The first frame
duration - The duration (in frames)
position - The position (SwingConstants.NORTH, ...)
Method Detail

postRendering

public void postRendering(java.awt.Graphics g,
                          int frame)
Apply the post-rendering portion of this Superimposition

Specified by:
postRendering in interface FrameOp
Specified by:
postRendering in class AbstractSuperimposition
Parameters:
g - The rendering engine
frame - The current frame number

preRendering

public void preRendering(java.awt.Graphics g,
                         int frame)
Apply the pre-rendering portion of this Superimposition

Specified by:
preRendering in interface FrameOp
Specified by:
preRendering in class AbstractSuperimposition
Parameters:
g - The rendering engine
frame - The current frame number


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers