|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tv.amwa.maj.entity.InterchangeObject tv.amwa.maj.entity.DefinitionObject tv.amwa.maj.entity.ParameterDefinition
@AAFClass(uuid1=218169601, uuid2=257, uuid3=7424, uuid4={6,14,43,52,2,6,1,1}, definedName="ParameterDefinition", description="The ParameterDefinition class defines a kind of Parameter for an effect.") public class ParameterDefinition
Implements the definition of a kind of parameter for an effect.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
Nested Class Summary | |
---|---|
static class |
ParameterDefinition.XMLHandler
|
Nested classes/interfaces inherited from class tv.amwa.maj.entity.DefinitionObject |
---|
DefinitionObject.DefinitionObjectXMLHandler |
Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
InterchangeObject.InterchangeObjectXMLHandler |
Field Summary |
---|
Fields inherited from interface tv.amwa.maj.constant.ParameterConstant |
---|
AlphaKeyInvertAlpha, Amplitude, CropBottom, CropLeft, CropRight, CropTop, IncomingLevel, Level, LumKeyClip, LumKeyLevel, OutgoingLevel, Pan, PhaseOffset, PinBottomLeftX, PinBottomLeftY, PinBottomRightX, PinBottomRightY, PinTopLeftX, PinTopLeftY, PinTopRightX, PinTopRightY, PositionOffsetX, PositionOffsetY, Rotation, ScaleX, ScaleY, SMPTEBorder, SMPTECheckerboard, SMPTEModulator, SMPTEPosition, SMPTEReplicationH, SMPTEReplicationV, SMPTEReverse, SMPTEShadow, SMPTESoft, SMPTESpotlight, SMPTETumble, SMPTEWipeNumber, SpeedRatio |
Constructor Summary | |
---|---|
ParameterDefinition(AUID identification,
String name,
TypeDefinition type)
Creates and initializes a new parameter definition, which defines a kind of parameter for an effect. |
Method Summary | |
---|---|
void |
appendXMLChildren(Node parent)
Append child elements to the given parent node to serialize the value of an object to an XML fragment. |
ParameterDefinition |
clone()
Creates a cloned copy of this entity. |
static ParameterDefinition |
forIdentification(AUID identification)
|
static ParameterDefinition |
forName(String parameterName)
|
String |
getDisplayUnits()
Returns the display unit property of this parameter definition, which is a displayable string identifying the units in which the parameter is measured. |
TypeDefinition |
getTypeDefinition()
Returns the type definition attached to this parameter definition, which specifies the data type of the parameter. |
static boolean |
registerParameterDefinition(ParameterDefinition definedParameter)
|
static int |
registerParametersFromClass(Class<?> classWithParameters)
|
void |
setDisplayUnits(String displayUnits)
Sets the display units of this parameter definition, which is a displayable string identifying the units in which the parameter is measured. |
void |
setPropertiesFromInterface(ParameterDefinition castFrom)
|
Methods inherited from class tv.amwa.maj.entity.DefinitionObject |
---|
equals, getAUID, getDescription, getLocalizedUID, getName, hashCode, setDescription, setLocalizedUID, setName |
Methods inherited from class tv.amwa.maj.entity.InterchangeObject |
---|
castFromInterface, countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, registerImplementation, setPropertiesFromInterface, setPropertyValue, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface tv.amwa.maj.iface.DefinitionObject |
---|
getAUID, getDescription, getName, setDescription, setName |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Methods inherited from interface tv.amwa.maj.entity.MAJCommon |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public ParameterDefinition(AUID identification, @AAFString String name, TypeDefinition type) throws NullPointerException
Creates and initializes a new parameter definition, which defines a kind of parameter for an effect.
identification
- Uniquely identifies the parameter definition.name
- Display name of the parameter definition.type
- Data type of the parameter.
NullPointerException
- One or more of the arguments is null
and they
are all required properties in this implementation.Method Detail |
---|
public static final int registerParametersFromClass(Class<?> classWithParameters) throws NullPointerException
NullPointerException
public static final boolean registerParameterDefinition(ParameterDefinition definedParameter) throws NullPointerException
NullPointerException
public static final ParameterDefinition forName(String parameterName) throws NullPointerException
NullPointerException
public static final ParameterDefinition forIdentification(AUID identification) throws NullPointerException
NullPointerException
public final void setPropertiesFromInterface(ParameterDefinition castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
@AAFProperty(uuid1=87033099, uuid2=256, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="DisplayUnits", typeName="String", optional=true, uniqueIdentifier=false, pid=7939) public String getDisplayUnits() throws PropertyNotPresentException
ParameterDefinition
Returns the display unit property of this parameter definition, which is a displayable string identifying the units in which the parameter is measured. For example: "% of picture width". This property is optional.
getDisplayUnits
in interface ParameterDefinition
PropertyNotPresentException
- The optional display units property
is not present in this parameter definition.public void setDisplayUnits(String displayUnits)
ParameterDefinition
Sets the display units of this parameter definition, which is a displayable string
identifying the units in which the parameter is measured. For example: "% of
picture width". Set this optional property to null
to omit
it.
setDisplayUnits
in interface ParameterDefinition
displayUnits
- Display units of this parameter definition.@AAFProperty(uuid1=100729092, uuid2=262, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="Type", typeName="WeakReference to TypeDefinition", optional=false, uniqueIdentifier=false, pid=7937) public TypeDefinition getTypeDefinition()
ParameterDefinition
Returns the type definition attached to this parameter definition, which specifies the data type of the parameter.
getTypeDefinition
in interface ParameterDefinition
public ParameterDefinition clone()
MAJCommon
Creates a cloned copy of this entity. The clone will be initialized to have the same value as this value but exists independently from then on. Changes to this value will not effect the clone and changes to the clone will not effect this. MAJ API clones are true deep clones with no shared references to areas of memory within the original.
This method does not throw a CloneNotSupportedException
as all
entity values must implement the Cloneable
interface. If a cloning
error does occur, a null
value will be returned but this is very unlikely
to happen.
clone
in interface MAJCommon
clone
in class DefinitionObject
Object.clone()
public void appendXMLChildren(Node parent)
XMLSerializable
Append child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder
class are provided to help with this
process.
appendXMLChildren
in interface XMLSerializable
appendXMLChildren
in class DefinitionObject
parent
- XML parent element to append child nodes to.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |