@MediaClass(uuid1=218169601, uuid2=257, uuid3=15104, uuid4={6,14,43,52,2,6,1,1}, definedName="TimelineTrack", aliases="TimelineMobSlot", description="The TimelineTrack class describes time-varying timeline essence.", symbol="TimelineTrack") public class TimelineTrackImpl extends TrackImpl implements TimelineTrack, Serializable, Cloneable
Implements the representation of a track that describes time-varying timeline essence.
ObjectClassPropertyID| Constructor and Description |
|---|
TimelineTrackImpl()
Default constructor is not public to avoid unset required fields.
|
TimelineTrackImpl(int trackId,
Segment segment,
Rational editRate,
long origin)
Creates and initializes a new timeline track, which describes time-varying timeline
essence.
|
| Modifier and Type | Method and Description |
|---|---|
TimelineTrack |
clone()
Create a cloned copy of this interchange object.
|
Rational |
getEditRate()
Returns the edit rate for this timeline track, which specifies the units
of time of the track.
|
String |
getEditRateString() |
long |
getMarkIn()
Returns the mark in property of the timeline track.
|
long |
getMarkOut()
Returns the mark out property of this timeline
track, which specifies the position of the marked out
point as a count of edit units from the zero position of this
timeline track.
|
long |
getOrigin()
Returns the origin of this timeline track, which
specifies the offset used to resolve source clip
references in this timeline track.
|
long |
getUserPosition()
Returns the user position property of the timeline track, which
specifies a user position as a count of edit units from
the zero position of the timeline track.
|
static Rational |
initializeEditRate() |
static long |
initializeOrigin() |
void |
setEditRate(Rational editRate)
Sets the edit rate for this timeline track, which specifies the units
of time of the track.
|
void |
setEditRateString(String editRate) |
void |
setMarkIn(Long value)
Sets the mark in property for this timeline track, which
specifies the position of the marked in point as a count
of edit units from the zero position of this timeline track.
|
void |
setMarkOut(Long value)
Sets the mark out property of this timeline track, which
specifies the position of the marked out point as a
count of edit units from the zero position of this timeline
track.
|
void |
setOrigin(long origin)
Sets the origin of this timeline track, which
specifies the offset used to resolve source clip
references in this timeline track.
|
void |
setTrackSegment(Segment segment)
Sets the segment for this timeline track if the given segment satisfies all the required
constraints.
|
void |
setUserPosition(Long userPosition)
Sets the user position property of the timeline track, which
specifies a user position as a count of edit units from
the zero position of the timeline track.
|
void |
sourcePackageContext()
Sets this timeline track to be in the context of a source package.
|
getComment, getDataDefinition, getEssenceTrackNumber, getTrackID, getTrackName, getTrackSegment, initializeTrackID, initializeTrackSegment, setEssenceTrackNumber, setTrackID, setTrackNameaddApplicationPlugin, appendXMLChildren, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getLinkedGenerationIDString, getObjectClass, getPersistentID, getPersistentIndex, hashCode, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setLinkedGenerationIDString, setObjectClass, setPersistentID, setPersistentIndex, toStringgetDataDefinition, getEssenceTrackNumber, getTrackID, getTrackName, getTrackSegment, setEssenceTrackNumber, setTrackID, setTrackNameaddApplicationPlugin, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getObjectClass, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setObjectClass, toStringgetPersistentID, setPersistentIndexappendXMLChildrenpublic TimelineTrackImpl()
public TimelineTrackImpl(@UInt32 int trackId, Segment segment, Rational editRate, @PositionType long origin) throws NullPointerException, IllegalArgumentException
Creates and initializes a new timeline track, which describes time-varying timeline essence.
trackId - Integer that is used to reference the track.segment - Value of the new timeline track.editRate - Units of time for the new timeline track.origin - Offset used to resolve source clip references to the
new timeline track. A positive value of origin means that the first sample of the essence
is earlier than the zero position. A negative value of origin means that the zero position is
earlier than the first sample of the essence.NullPointerException - The segment and/or edit rate arguments is/are null.IllegalArgumentException - Track id is negative or the given segment is not valid
for a timeline track.@MediaProperty(uuid1=87032837, uuid2=0, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="EditRate", aliases="TimelineMobSlotEditRate", typeName="Rational", optional=false, uniqueIdentifier=false, pid=19201, symbol="EditRate") public Rational getEditRate()
TimelineTrackReturns the edit rate for this timeline track, which specifies the units of time of the track.
getEditRate in interface TimelineTrack@MediaPropertySetter(value="EditRate") public void setEditRate(Rational editRate) throws NullPointerException
TimelineTrackSets the edit rate for this timeline track, which specifies the units of time of the track.
setEditRate in interface TimelineTrackeditRate - Edit rate for this timeline track.NullPointerException - The given edit rate is null.public static final Rational initializeEditRate()
@MediaProperty(uuid1=117571843, uuid2=268, uuid3=0, uuid4={6,14,43,52,1,1,1,7}, definedName="MarkIn", typeName="PositionType", optional=true, uniqueIdentifier=false, pid=19203, symbol="MarkIn") public long getMarkIn() throws PropertyNotPresentException
TimelineTrackReturns the mark in property of the timeline track. This property specifies the position of the marked in point as a count of edit units from the zero position of the timeline track. This is an optional property.
Note that this property shall not be present for a source package.
getMarkIn in interface TimelineTrackPropertyNotPresentException - The optional mark in property is not
present in this timeline track.@MediaPropertySetter(value="MarkIn") public void setMarkIn(Long value)
TimelineTrackSets the mark in property for this timeline track, which
specifies the position of the marked in point as a count
of edit units from the zero position of this timeline track.
Set this optional property to null to omit it.
Note that this property shall not be present for a source package.
setMarkIn in interface TimelineTrackvalue - Mark in property for this timeline track.@MediaProperty(uuid1=117571843, uuid2=515, uuid3=0, uuid4={6,14,43,52,1,1,1,7}, definedName="MarkOut", typeName="PositionType", optional=true, uniqueIdentifier=false, pid=19204, symbol="MarkOut") public long getMarkOut() throws PropertyNotPresentException
TimelineTrackReturns the mark out property of this timeline track, which specifies the position of the marked out point as a count of edit units from the zero position of this timeline track. This is an optional property.
Note that this property shall not be present for a source package.
getMarkOut in interface TimelineTrackPropertyNotPresentException - The optional mark out property is not
present in this timeline track.@MediaPropertySetter(value="MarkOut") public void setMarkOut(Long value)
TimelineTrackSets the mark out property of this timeline track, which
specifies the position of the marked out point as a
count of edit units from the zero position of this timeline
track. Set this optional property to null to omit it.
Note that this property shall not be present for a source package.
setMarkOut in interface TimelineTrackvalue - Mark out property of this timeline track.@MediaProperty(uuid1=117571843, uuid2=259, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="Origin", aliases="SlotOrigin", typeName="PositionType", optional=false, uniqueIdentifier=false, pid=19202, symbol="Origin") public long getOrigin()
TimelineTrackReturns the origin of this timeline track, which specifies the offset used to resolve source clip references in this timeline track. A positive value of origin means that the first sample of the essence is earlier than the zero position. A negative value of origin means that the zero position is earlier than the first sample of the essence.
getOrigin in interface TimelineTrack@MediaPropertySetter(value="Origin") public void setOrigin(long origin)
TimelineTrackSets the origin of this timeline track, which specifies the offset used to resolve source clip references in this timeline track. A positive value of origin means that the first sample of the essence is earlier than the zero position. A negative value of origin means that the zero position is earlier than the first sample of the essence.
setOrigin in interface TimelineTrackorigin - Origin of this timeline track.public static final long initializeOrigin()
@MediaProperty(uuid1=117571843, uuid2=269, uuid3=0, uuid4={6,14,43,52,1,1,1,7}, definedName="UserPosition", aliases="UserPos", typeName="PositionType", optional=true, uniqueIdentifier=false, pid=19205, symbol="UserPosition") public long getUserPosition() throws PropertyNotPresentException
TimelineTrackReturns the user position property of the timeline track, which specifies a user position as a count of edit units from the zero position of the timeline track. This is an optional property.
Note that this property shall not be present for a source package.
getUserPosition in interface TimelineTrackPropertyNotPresentException - The optional user position property is not
present in this timeline track.@MediaPropertySetter(value="UserPosition") public void setUserPosition(Long userPosition)
TimelineTrackSets the user position property of the timeline track, which
specifies a user position as a count of edit units from
the zero position of the timeline track. Set this optional property
to null to omit it.
Note that this property shall not be present for a source package.
setUserPosition in interface TimelineTrackuserPosition - User position property of this timeline track.public void setTrackSegment(Segment segment) throws NullPointerException, IllegalArgumentException
Sets the segment for this timeline track if the given segment satisfies all the required
constraints. These constraints only affect
timeline tracks with a
sequence that contains an
event. In this case, the constraints are:
events
or fillers.data definition as the sequence.setTrackSegment in interface TracksetTrackSegment in class TrackImplsegment - Segment representing the value for this track.NullPointerException - Argument is null.IllegalArgumentException - The given segment does not satisfy the contraints of a timeline
track.TrackImpl.setTrackSegment(tv.amwa.maj.model.Segment)public void sourcePackageContext()
Sets this timeline track to be in the context of a source package. In this context, the mark in, mark out and user position properties are all not present.
public TimelineTrack clone()
InterchangeObjectCreate a cloned copy of this interchange object.
clone in interface MediaEntityclone in interface InterchangeObjectclone in interface TimelineTrackclone in interface Trackclone in class TrackImplpublic String getEditRateString()
public void setEditRateString(String editRate)
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.