public class HrsMinSecFrameTimecode extends FrameNumberVideoTimecode
fps
Constructor and Description |
---|
HrsMinSecFrameTimecode(long number,
double framesPerSec)
Default constructor that takes the current (start) frame number
and the number of frames in one second.
|
Modifier and Type | Method and Description |
---|---|
HrsMinSecFrameTimecode |
clone()
Clone this timecode.
|
boolean |
equals(Object obj) |
static HrsMinSecFrameTimecode |
fromString(String s)
Parses a string (formatted as
toString() ) back into a
timecode object. |
int |
getFrames()
Get the number of frames within the second.
|
int |
getHours()
Get the number of hours.
|
int |
getMinutes()
Get the number of minutes within the hour.
|
int |
getSeconds()
Get the number of seconds within the minute.
|
int |
hashCode() |
String |
toString() |
compareTo, getFrameNumber, getTimecodeInMilliseconds, setFrameNumber, setTimecodeInMilliseconds
public HrsMinSecFrameTimecode(long number, double framesPerSec)
number
- The frame number.framesPerSec
- The number of frames per second.public int getHours()
public int getMinutes()
public int getSeconds()
public int getFrames()
public String toString()
toString
in class FrameNumberVideoTimecode
FrameNumberVideoTimecode.toString()
public static HrsMinSecFrameTimecode fromString(String s)
toString()
) back into a
timecode object.s
- The string to parseHrsMinSecFrameTimecode
or null if the string
couldn't be parsed.public int hashCode()
hashCode
in class FrameNumberVideoTimecode
Object.hashCode()
public boolean equals(Object obj)
equals
in class FrameNumberVideoTimecode
Object.equals(java.lang.Object)
public HrsMinSecFrameTimecode clone()
clone
in interface Timecode
clone
in class FrameNumberVideoTimecode
FrameNumberVideoTimecode.clone()