public class DescribedSprite extends TweeningSprite
REMAIN, REMOVE
Constructor and Description |
---|
DescribedSprite()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyTime(int keyTime,
java.awt.geom.Point2D location,
java.lang.Double rotation,
java.lang.Double scaling,
AggregateContent ctc)
Add a key time.
|
java.awt.geom.Rectangle2D |
getBounds2D(boolean ofTransformed)
Returns a high precision bounding box of the Content
either before or after it is transformed.
|
TransformableContent |
getContent()
Get the visual content associated with this Sprite.
|
handleTick, setEndState
getBounds2D, intersects, render, setLocation, setRotation, setRotation, setScale, setScale, setVisible
public void addKeyTime(int keyTime, java.awt.geom.Point2D location, java.lang.Double rotation, java.lang.Double scaling, AggregateContent ctc)
Note: This method does not ensure that the first key time actually contains static visual content.
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 timectc
- The Content to use (or null to use previous Content)public java.awt.geom.Rectangle2D getBounds2D(boolean ofTransformed)
getBounds2D
in interface TransformableContent
getBounds2D
in class AbstractSprite
ofTransformed
- true to get the bounds of the transformed contentpublic TransformableContent getContent()
Note that the visual content created depends on the current state of this Sprite.