public class TimecodeBuilder extends Object
| Constructor and Description |
|---|
TimecodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Timecode |
build()
Constructs a Timecode instance with the fields defined in this builder
|
static TimecodeBuilder |
fromEncodedValue(String encoded)
Parse a Timecode encoded in the "vidispine style" (
hh:mm:ss:ff@timebase). |
static TimecodeBuilder |
fromFrames(long signedFrameNumber,
boolean dropFrame,
Timebase rate) |
static TimecodeBuilder |
fromSamples(SampleCount samples,
boolean dropFrame) |
static TimecodeBuilder |
fromSMPTE(String smpte)
Part a Timecode encoded in the SMPTE style (
[dd:]hh:mm:ss:ff - or [dd:]hh:mm:ss;ff for
drop-frame
timecode) |
static TimecodeBuilder |
fromTimecode(Timecode timecode) |
long |
getDays() |
long |
getFrames() |
long |
getHours() |
long |
getMinutes() |
Timebase |
getRate() |
long |
getSeconds() |
boolean |
isDropFrame() |
boolean |
isNegative() |
String |
toString() |
TimecodeBuilder |
withDays(long days) |
TimecodeBuilder |
withDropFrame(boolean dropFrame) |
TimecodeBuilder |
withFrames(long frames) |
TimecodeBuilder |
withHours(long hours) |
TimecodeBuilder |
withMinutes(long minutes) |
TimecodeBuilder |
withNegative(boolean negative) |
TimecodeBuilder |
withRate(Timebase rate) |
TimecodeBuilder |
withSeconds(long seconds) |
TimecodeBuilder |
withTime(Date dateTime) |
TimecodeBuilder |
withTime(org.joda.time.DateTime dateTime) |
TimecodeBuilder |
withTime(org.joda.time.LocalTime time) |
TimecodeBuilder |
withTime(org.joda.time.LocalTime time,
Timebase timebase) |
TimecodeBuilder |
withTimecode(Timecode timecode)
Reset this builder to the values in the provided Timecode
|
public TimecodeBuilder withTimecode(Timecode timecode)
timecode - public TimecodeBuilder withTime(Date dateTime)
public TimecodeBuilder withTime(org.joda.time.DateTime dateTime)
public TimecodeBuilder withTime(org.joda.time.LocalTime time)
public TimecodeBuilder withTime(org.joda.time.LocalTime time, Timebase timebase)
public TimecodeBuilder withNegative(boolean negative)
public TimecodeBuilder withDays(long days)
public TimecodeBuilder withHours(long hours)
public TimecodeBuilder withMinutes(long minutes)
public TimecodeBuilder withSeconds(long seconds)
public TimecodeBuilder withFrames(long frames)
public TimecodeBuilder withDropFrame(boolean dropFrame)
public TimecodeBuilder withRate(Timebase rate)
public Timecode build()
IllegalArgumentException - if any of the fields are invalid/incompatiblepublic boolean isNegative()
public long getDays()
public long getHours()
public long getMinutes()
public long getSeconds()
public long getFrames()
public Timebase getRate()
public boolean isDropFrame()
public static TimecodeBuilder fromTimecode(Timecode timecode)
public static TimecodeBuilder fromEncodedValue(String encoded)
hh:mm:ss:ff@timebase). See Timebase.getInstance(java.lang.String)
for information on valid timebase representationsencoded - a timecode encoded as hh:mm:ss:ff@timebaseRuntimeException - if the encoded string is not well-formed or could not be parsedpublic static TimecodeBuilder fromSMPTE(String smpte)
[dd:]hh:mm:ss:ff - or [dd:]hh:mm:ss;ff for
drop-frame
timecode)smpte - the SMPTE-encoded timecodeRuntimeException - if parsing failspublic static TimecodeBuilder fromSamples(SampleCount samples, boolean dropFrame)
public static TimecodeBuilder fromFrames(long signedFrameNumber, boolean dropFrame, Timebase rate)
Copyright © 2016. All rights reserved.