KeyframeSequence
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
All Implemented Interfaces: java.lang.Iterable
public class KeyframeSequence extends A3DObject implements Iterable<KeyFrame>
The sequence of key-frames, it describes the transformation of a sampled value over time.
Constructors
Constructor | Description |
---|---|
KeyframeSequence(String name) | Initializes a new instance of the KeyframeSequence class. |
KeyframeSequence() | Initializes a new instance of the KeyframeSequence class. |
Methods
Method | Description |
---|---|
add(double time, float value) | Create a new key frame with specified value |
add(double time, float value, Interpolation interpolation) | Create a new key frame with specified value |
equals(Object arg0) | |
findProperty(String propertyName) | Finds the property. |
getBindPoint() | Gets the property bind point which owns this curve |
getClass() | |
getKeyFrames() | Gets the key frames of this curve. |
getName() | Gets the name. |
getPostBehavior() | Gets the post behavior indicates what the sampled value should be after the last key frame. |
getPreBehavior() | Gets the pre behavior indicates what the sampled value should be before the first key. |
getProperties() | Gets the collection of all properties. |
getProperty(String property) | Get the value of specified property |
hashCode() | |
iterator() | Gets the enumerator to traverse all key frames. |
notify() | |
notifyAll() | |
removeProperty(Property property) | Removes a dynamic property. |
removeProperty(String property) | Remove the specified property identified by name |
reset() | Removes all key frames and reset the post/pre behaviors. |
setName(String value) | Sets the name. |
setProperty(String property, Object value) | Sets the value of specified property |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
KeyframeSequence(String name)
public KeyframeSequence(String name)
Initializes a new instance of the KeyframeSequence class.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name |
KeyframeSequence()
public KeyframeSequence()
Initializes a new instance of the KeyframeSequence class.
add(double time, float value)
public void add(double time, float value)
Create a new key frame with specified value
Parameters:
Parameter | Type | Description |
---|---|---|
time | double | Time position(measured in seconds) |
value | float | The value at this time position |
add(double time, float value, Interpolation interpolation)
public void add(double time, float value, Interpolation interpolation)
Create a new key frame with specified value
Parameters:
Parameter | Type | Description |
---|---|---|
time | double | Time position(measured in seconds) |
value | float | The value at this time position |
interpolation | Interpolation | The interpolation type of this key frame |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
Parameters:
Parameter | Type | Description |
---|---|---|
propertyName | java.lang.String | Property name. |
Returns: Property - The property.
getBindPoint()
public BindPoint getBindPoint()
Gets the property bind point which owns this curve
Returns: BindPoint - the property bind point which owns this curve
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getKeyFrames()
public List<KeyFrame> getKeyFrames()
Gets the key frames of this curve.
Returns: java.util.List<com.aspose.threed.KeyFrame> - the key frames of this curve.
getName()
public String getName()
Gets the name.
Returns: java.lang.String - the name.
getPostBehavior()
public Extrapolation getPostBehavior()
Gets the post behavior indicates what the sampled value should be after the last key frame.
Returns: Extrapolation - the post behavior indicates what the sampled value should be after the last key frame.
getPreBehavior()
public Extrapolation getPreBehavior()
Gets the pre behavior indicates what the sampled value should be before the first key.
Returns: Extrapolation - the pre behavior indicates what the sampled value should be before the first key.
getProperties()
public PropertyCollection getProperties()
Gets the collection of all properties.
Returns: PropertyCollection - the collection of all properties.
getProperty(String property)
public Object getProperty(String property)
Get the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
Returns: java.lang.Object - The value of the found property
hashCode()
public native int hashCode()
Returns: int
iterator()
public Iterator<KeyFrame> iterator()
Gets the enumerator to traverse all key frames.
Returns: java.util.Iterator<com.aspose.threed.KeyFrame>
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
removeProperty(Property property)
public boolean removeProperty(Property property)
Removes a dynamic property.
Parameters:
Parameter | Type | Description |
---|---|---|
property | Property | Which property to remove |
Returns: boolean - true if the property is successfully removed
removeProperty(String property)
public boolean removeProperty(String property)
Remove the specified property identified by name
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Which property to remove |
Returns: boolean - true if the property is successfully removed
reset()
public void reset()
Removes all key frames and reset the post/pre behaviors.
setName(String value)
public void setName(String value)
Sets the name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
Sets the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
value | java.lang.Object | The value of the property |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |