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 classMarker.Colorstatic classMarker.MarkerBuilderNested classes/interfaces inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
SerializableObjectWithMetadata.SerializableObjectWithMetadataBuilder -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarker()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.StringgetColor()TimeRangegetMarkedRange()Get range this marker applies to, relative to the Item this marker is attached to (e.g.voidsetColor(java.lang.String color)Set color string for this marker (for example: 'RED'), based on the Color class.voidsetMarkedRange(TimeRange markedRange)Set range this marker applies to, relative to the Item this marker is attached to (e.g.java.lang.StringtoString()Methods inherited from class io.opentimeline.opentimelineio.SerializableObjectWithMetadata
getMetadata, getName, setMetadata, setNameMethods 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:
toStringin classSerializableObjectWithMetadata
-