|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisual.dynamic.sampled.AbstractFrameOp
visual.dynamic.sampled.AbstractSuperimposition
public abstract class AbstractSuperimposition
An abstract implementation of the Superimposition interface.
| Field Summary |
|---|
| Fields inherited from class visual.dynamic.sampled.AbstractFrameOp |
|---|
duration, first |
| Constructor Summary | |
|---|---|
AbstractSuperimposition(int first,
int duration,
int position)
Explicit Value Constructor |
|
| Method Summary | |
|---|---|
protected java.awt.geom.Point2D |
calculateRegistrationPoint(double frameWidth,
double frameHeight,
double siWidth,
double siHeight)
Calculate the registration point for the superimposition based on its size, the frame size, and the desired position |
int |
getPosition()
Get the position Possible values: javax.SwingConstants.NORTH, NORTH_EAST, EAST, SOUTH_EAST, SOUTH, SOUTH_WEST, WEST, NORTH_WEST, or CENTER) |
abstract void |
postRendering(java.awt.Graphics g,
int frame)
Apply the post-rendering portion of this Superimposition |
abstract void |
preRendering(java.awt.Graphics g,
int frame)
Apply the pre-rendering portion of this Superimposition |
| 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 |
|---|
public AbstractSuperimposition(int first,
int duration,
int position)
first - The first frameduration - The duration (in frames)position - The position| Method Detail |
|---|
protected java.awt.geom.Point2D calculateRegistrationPoint(double frameWidth,
double frameHeight,
double siWidth,
double siHeight)
frameWidth - The width of the frameframeHeight - The height of the framesiWidth - The width of the superimpositionsiHeight - The height of the superimpositionpublic int getPosition()
getPosition in interface Superimposition
public abstract void postRendering(java.awt.Graphics g,
int frame)
postRendering in interface FrameOppostRendering in class AbstractFrameOpg - The rendering engineframe - The current frame number
public abstract void preRendering(java.awt.Graphics g,
int frame)
preRendering in interface FrameOppreRendering in class AbstractFrameOpg - The rendering engineframe - The current frame number
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||