|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTPointerRef | +--quicktime.std.clocks.TimeRecord
The TimeRecord allows a full description of a QuickTime time specification structure.
Contains a time value, which is scaled to the time base coordinate system.
refer to TimeRecord in QuickTime
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Constructor Summary | |
TimeRecord()
This record is an empty record that will need to be filled out by passing it into calls. |
|
TimeRecord(int scale,
long value)
Create a TimeRecord with the supplied values for scale and time value. |
|
| Method Summary | |
void |
addTime(TimeRecord source)
This adds two times specified in time structures. |
void |
convertTime(TimeBase newBase)
Convert a time from one time base into a time that is relative to another time base. |
void |
convertTimeScale(int newScale)
Convert a time from one time scale into a time that is relative to another time base. |
int |
getScale()
Determines the time scale of the time record. |
TimeBase |
getTimeBase()
Return the TimeBase that is associated with this record. |
long |
getValue()
Determines the time value of the time record. |
void |
setScale(int scale)
Sets the time scale of the time record. |
void |
setValue(long value)
Sets the time value of the time record. |
void |
subtractTime(TimeRecord source)
This subtracts two times specified in time structures. |
java.lang.String |
toString()
Print information about this TimeRecord object. |
| Methods inherited from class quicktime.util.QTPointerRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TimeRecord() throws QTException
public TimeRecord(int scale, long value) throws QTException
scale - the scale that is used to interpret the meaning of the supplied valuevalue - the value as expressed in scale untis.| Method Detail |
public final long getValue()
public final int getScale()
public final void setValue(long value)
value - the data to store in the field.public final void setScale(int scale)
scale - the data to store in the field.public final void convertTime(TimeBase newBase)
tr - The time structure that contains the time value to be convertednewBase - Specifies the time base for this operationpublic final void convertTimeScale(int newScale)
newScale - The time scalepublic final void addTime(TimeRecord source)
source - The source operand time base with a time value to addpublic final void subtractTime(TimeRecord source)
source - The source operand time base with a time value to subtractpublic final TimeBase getTimeBase()
public java.lang.String toString()
toString in class QTPointerRef
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||