public class AnimatedSign
extends sigmlgen.GSiGMLSign
GSiGMLSign
by attaching
the corresponding sequence of animation frames to it.Constructor and Description |
---|
AnimatedSign(sigmlgen.GSiGMLSign sign)
Constructs a new sign object for the given
GSiGMLSign ,
initially with no associated animation frames. |
AnimatedSign(java.lang.String gloss,
int base,
CASFrame[] frms)
Constructs a new sign object with the given frames at the given
frame base; the inherited
GSiGMLSign will have no data
apart from the given gloss name. |
AnimatedSign(java.lang.String gsigml,
java.lang.String gloss,
sigmlgen.playerctrl.PlayerSettings ps)
Constructs a new sign object with the given gestural SiGML, gloss
and player settings, and with no associated animation frames.
|
Modifier and Type | Method and Description |
---|---|
int |
compareFrames(int f)
Returns an index comparison value for the frames of this sign with
the given frame: the result is:
negative if this sign is before the given frame;
zero if it contains the frame;
positive if it is after the frame.
|
void |
ensureBaseIndex(int lo)
Ensures that this sign's base frame index has the given value,
achieved by adjusting its base and limit values if necessary.
|
void |
ensureStartTime(float t)
Ensures that this sign's start time has the given value, achieved
in the case where the given start time differs significantly from the
current start time by adjusting each frame's timestamp by the
amount of that difference.
|
CASFrame |
getFrame(int f)
Returns frame f, assuming this.hasFrame(f).
|
CASFrame[] |
getFrames()
Returns the animation frames for this sign.
|
int |
getFramesBase()
Returns the lower limit for this sign's frame range.
|
int |
getFramesLimit()
Returns the upper limit for this sign's frame range.
|
float |
getLimitTime(float ltdefault)
Returns this sign's limit time, that is, the natural timestamp for
the next frame following this sign's final frame, or the given default
value in the case where this sign's frame list is empty.
|
float |
getStartTime(float stdefault)
Returns the timestamp of this sign's initial frame, or the given
default value in the case where this sign's frame list is empty.
|
boolean |
hasFrame(int f)
Tests whether this frame index is in the range associated
with this sign.
|
void |
setFrames(CASFrame[] frms,
int base)
Attaches the given sequence of animation frames to this sign,
with the given base frame index.
|
public AnimatedSign(sigmlgen.GSiGMLSign sign)
GSiGMLSign
,
initially with no associated animation frames.public AnimatedSign(java.lang.String gsigml, java.lang.String gloss, sigmlgen.playerctrl.PlayerSettings ps)
public AnimatedSign(java.lang.String gloss, int base, CASFrame[] frms)
GSiGMLSign
will have no data
apart from the given gloss name.public CASFrame[] getFrames()
public CASFrame getFrame(int f)
public int getFramesBase()
public int getFramesLimit()
public boolean hasFrame(int f)
public int compareFrames(int f)
public float getStartTime(float stdefault)
public float getLimitTime(float ltdefault)
public void setFrames(CASFrame[] frms, int base)
public void ensureBaseIndex(int lo)
public void ensureStartTime(float t)