|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ControlPoint
Specifies a value and a time point (position) that is used to specify an effect control value. Control points must be added to a varying value that is then added to the operation group describing the effect.
For parameters that are a constant value for an operation group, use a constant value.
Method Summary | |
---|---|
EditHintType |
getEditHint()
Returns the edit hint of the control point, which describes how to alter the position (time) of the operation group is made longer or shorter. |
Rational |
getTime()
Returns the time property of this control point, which specifies the time within the varying value segment for which the value is defined. |
TypeDefinition |
getTypeDefinition()
Returns the type definition of the value of this control point. |
Object |
getValue()
Returns the control point value at the control point's postition (time), which is a value of the data type returned by getTypeDefinition() . |
void |
setEditHint(EditHintType editHint)
Sets the control point edit hint value, which describes how to alter the position (time) if the operation group is made longer or shorter. |
void |
setTime(Rational time)
Sets the position of the control point within an operation group, which specifies the time within the varying value segment for which the value is defined. |
void |
setValue(Object value)
Set the data value describing this control point at the control point's postition (time), which is a value of the data type returned by getTypeDefinition() .. |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Method Detail |
---|
Rational getTime()
Returns the time property of this control point, which specifies the time within the varying value segment for which the value is defined. The value of the time property should be between&nbps;0 and 1 inclusive.
EditHintType getEditHint() throws PropertyNotPresentException
Returns the edit hint of the control point, which describes how to alter the position (time) of the operation group is made longer or shorter. This is an optional property.
PropertyNotPresentException
- The optional edit hint property is not present
for this control point.Object getValue()
Returns the control point value at the control point's postition (time), which
is a value of the data type returned by getTypeDefinition()
.
TypeDefinitionIndirect
,
getTypeDefinition()
void setTime(Rational time) throws RationalRangeException, NullPointerException
Sets the position of the control point within an operation group, which specifies the time within the varying value segment for which the value is defined. The value is expressed as a rational value between from 0 to 1.
time
- Control point time.
RationalRangeException
- The rational value is outside the range 0 to 1.
NullPointerException
- The given time value is null
.void setEditHint(EditHintType editHint)
Sets the control point edit hint value, which describes how to alter the
position (time) if the operation group is made longer or shorter.
Set this optional property to null
to omit it.
editHint
- Specifies a hint to be used if the effect starting time or
length is changed during editing.TypeDefinition getTypeDefinition()
Returns the type definition of the value of this control point.
TypeDefinitionIndirect
void setValue(Object value) throws NullPointerException, ClassCastException
Set the data value describing this control point at the control point's postition (time), which
is a value of the data type returned by getTypeDefinition()
..
value
- The value of this control point at its position (time).
NullPointerException
- The given control point value is null
.
ClassCastException
- Cannot cast the given value to the defined type
for this control point.TypeDefinition.createValue(Object)
,
PropertyValue.getValue()
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |