Package io.opentimeline.opentimelineio
Class Marker
java.lang.Object
io.opentimeline.OTIOObject
io.opentimeline.opentimelineio.SerializableObject
io.opentimeline.opentimelineio.SerializableObjectWithMetadata
io.opentimeline.opentimelineio.Marker
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Marker extends SerializableObjectWithMetadata
Holds metadata over time on a timeline
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Marker.Color
static class
Marker.MarkerBuilder
Nested classes/interfaces inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
SerializableObjectWithMetadata.SerializableObjectWithMetadataBuilder
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
Marker()
Marker(Marker.MarkerBuilder markerBuilder)
Marker(java.lang.String name, TimeRange markedRange, java.lang.String color, AnyDictionary metadata)
-
Method Summary
Modifier and Type Method Description java.lang.String
getColor()
TimeRange
getMarkedRange()
Get range this marker applies to, relative to the Item this marker is attached to (e.g.void
setColor(java.lang.String color)
Set color string for this marker (for example: 'RED'), based on the Color class.void
setMarkedRange(TimeRange markedRange)
Set range this marker applies to, relative to the Item this marker is attached to (e.g.java.lang.String
toString()
Methods inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
getMetadata, getName, setMetadata, setName
Methods inherited from class io.opentimeline.opentimelineio.SerializableObject
clone, currentRefCount, dynamicFields, equals, fromJSONFile, fromJSONString, isEquivalentTo, isUnknownSchema, schemaName, schemaVersion, toJSONFile, toJSONFile, toJSONString, toJSONString
-
Constructor Details
-
Marker
protected Marker() -
Marker
public Marker(java.lang.String name, TimeRange markedRange, java.lang.String color, AnyDictionary metadata) -
Marker
-
-
Method Details
-
getColor
public java.lang.String getColor()- Returns:
- the color string for this marker (for example: 'RED').
-
setColor
public void setColor(java.lang.String color)Set color string for this marker (for example: 'RED'), based on the Color class.- Parameters:
color
- String color
-
getMarkedRange
Get range this marker applies to, relative to the Item this marker is attached to (e.g. the Clip or Track that owns this marker).- Returns:
- TimeRange this marker applies to.
-
setMarkedRange
Set range this marker applies to, relative to the Item this marker is attached to (e.g. the Clip or Track that owns this marker).- Parameters:
markedRange
- TimeRange this marker applies to.
-
toString
public java.lang.String toString()- Overrides:
toString
in classSerializableObjectWithMetadata
-