public class AnimClip extends java.lang.Object implements JmeCloneable, Savable
Modifier | Constructor and Description |
---|---|
protected |
AnimClip()
No-argument constructor needed by SavableClassUtil.
|
|
AnimClip(java.lang.String name)
Instantiate a zero-length clip with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Callback from
Cloner to convert this
shallow-cloned clip into a deep-cloned one, using the specified Cloner
and original to resolve copied fields. |
double |
getLength()
Determine the duration of this clip.
|
java.lang.String |
getName()
Determine the name of this clip.
|
AnimTrack[] |
getTracks()
Access all the tracks in this clip.
|
java.lang.Object |
jmeClone()
Create a shallow clone for the JME cloner.
|
void |
read(JmeImporter im)
De-serialize this clip from the specified importer, for example when
loading from a J3O file.
|
void |
setTracks(AnimTrack[] tracks)
Replace all tracks in this clip.
|
java.lang.String |
toString()
Represent this clip as a String.
|
void |
write(JmeExporter ex)
Serialize this clip to the specified exporter, for example when saving to
a J3O file.
|
protected AnimClip()
public AnimClip(java.lang.String name)
name
- desired name for the new clippublic void setTracks(AnimTrack[] tracks)
tracks
- the tracks to use (alias created)public java.lang.String getName()
public double getLength()
public AnimTrack[] getTracks()
public java.lang.Object jmeClone()
jmeClone
in interface JmeCloneable
public void cloneFields(Cloner cloner, java.lang.Object original)
Cloner
to convert this
shallow-cloned clip into a deep-cloned one, using the specified Cloner
and original to resolve copied fields.cloneFields
in interface JmeCloneable
cloner
- the Cloner that's cloning this clip (not null)original
- the instance from which this clip was shallow-cloned (not
null, unaffected)public java.lang.String toString()
toString
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException