|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisual.dynamic.described.AbstractSprite
visual.dynamic.described.TweeningSprite
visual.dynamic.described.SampledSprite
public class SampledSprite
A TweeningSprite that uses sampled visual content Note: This class uses a Vector of Content objects rather than a CompositeContent object for efficiency reasons.
| Field Summary |
|---|
| Fields inherited from class visual.dynamic.described.TweeningSprite |
|---|
keyTimes, locations, REMAIN, REMOVE, rotations, scalings |
| Fields inherited from class visual.dynamic.described.AbstractSprite |
|---|
angle, rotationPoint, rotationX, rotationY, scaleX, scaleY, visible, x, y |
| Constructor Summary | |
|---|---|
SampledSprite()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
addKeyTime(int keyTime,
java.awt.geom.Point2D location,
java.lang.Double rotation,
java.lang.Double scaling,
Content c)
Add a key time Note: This method does not ensure that the first key frame actually contains an image. |
protected TransformableContent |
getContent()
Get the visual content (based on this Sprite's current state) |
| Methods inherited from class visual.dynamic.described.TweeningSprite |
|---|
addKeyTime, getInterpolationFraction, getKeyTimeIndex, getNextKeyTimeIndex, handleTick, initialize, reinitialize, setEndState, tweenLocation, tweenRotation, tweenScaling |
| Methods inherited from class visual.dynamic.described.AbstractSprite |
|---|
getBounds2D, getBounds2D, intersects, render, setLocation, setRotation, setRotation, setScale, setScale, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampledSprite()
| Method Detail |
|---|
public void addKeyTime(int keyTime,
java.awt.geom.Point2D location,
java.lang.Double rotation,
java.lang.Double scaling,
Content c)
keyTime - The timelocation - The location of the sprite at this timerotation - The rotation of the sprite (null to align with path)scaling - The scaling of the sprite at this timec - The Content to use (or null to use previous)protected TransformableContent getContent()
getContent in class AbstractSprite
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||