| com.sun.perseus.model.Segment
All known Subclasses: com.sun.perseus.model.TransformSegment, com.sun.perseus.model.FloatSegment, com.sun.perseus.model.StringSegment,
Segment | interface Segment (Code) | | Represents a time interval in an animation.
version: $Id: Segment.java,v 1.2 2006/04/21 06:38:37 st125089 Exp $ |
Method Summary | |
void | addToEnd(Object[] by) Adds the input value to this Segment's end value.
Parameters: by - the value to add. | void | collapse(Segment seg, Animation anim) Collapses this segment with the one passed as a parameter.
Note that if the input segment is not of the same class
as this one, an IllegalArgumentException is thrown. | Object[] | getEnd() | float | getLength() | Object[] | getStart() | void | initialize() Should be called after the segment's configuration is complete
to give the segment's implementation a chance to initialize
internal data and cache values. | boolean | isAdditive() true if this segment type supports addition. | void | setStart(Object[] newStart) Sets the start value. | void | setZeroStart() |
addToEnd | void addToEnd(Object[] by)(Code) | | Adds the input value to this Segment's end value.
Parameters: by - the value to add. Throws IllegalArgumentException if thisSegment type is not additive or if the input value is incompatible (e.g.,different number of components or different number of dimensions on acomponent). |
collapse | void collapse(Segment seg, Animation anim)(Code) | | Collapses this segment with the one passed as a parameter.
Note that if the input segment is not of the same class
as this one, an IllegalArgumentException is thrown. The
method also throws an exception if the input segment's
end does not have the same number of components as this
segment's end.
After this method is called, this segment's end value
is the one of the input seg parameter.
Parameters: seg - the Segment to collapse with this one. Parameters: anim - the Animation this segment is part of. |
getLength | float getLength()(Code) | | Computes this segment's length
|
initialize | void initialize()(Code) | | Should be called after the segment's configuration is complete
to give the segment's implementation a chance to initialize
internal data and cache values.
|
isAdditive | boolean isAdditive()(Code) | | true if this segment type supports addition. falseotherwise. |
setStart | void setStart(Object[] newStart)(Code) | | Sets the start value.
Parameters: newStart - the new segment start value. |
setZeroStart | void setZeroStart()(Code) | | Sets the start value to its notion of 'zero'
|
|
|