All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.clocks.TimeRecord
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTPointerRef
|
+----quicktime.std.clocks.TimeRecord
- public class TimeRecord
- extends QTPointerRef
- implements QuickTimeLib
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
-
TimeRecord()
- This record is an empty record that will need to be filled out by passing
it into calls.
-
addTime(TimeRecord)
- This adds two times specified in time structures.
-
convertTime(TimeBase)
- Convert a time from one time base into a time that is relative to another time base.
-
convertTimeScale(int)
- Convert a time from one time scale into a time that is relative to another time base.
-
getScale()
- Determines the time scale of the time record.
-
getTimeBase()
- Return the TimeBase that is associated with this record.
-
getValue()
- Determines the time value of the time record.
-
setScale(int)
- Sets the time scale of the time record.
-
setValue(long)
- Sets the time value of the time record.
-
subtractTime(TimeRecord)
- This subtracts two times specified in time structures.
-
toString()
- Print information about this TimeRecord object.
TimeRecord
public TimeRecord() throws QTException
- This record is an empty record that will need to be filled out by passing
it into calls. It has no value for the TimeBase field.
getValue
public final long getValue()
- Determines the time value of the time record.
- Returns:
- The value of the time value.
getScale
public final int getScale()
- Determines the time scale of the time record.
- Returns:
- The value of the time scale.
setValue
public final void setValue(long value)
- Sets the time value of the time record.
- Parameters:
- value - the data to store in the field.
setScale
public final void setScale(int scale)
- Sets the time scale of the time record.
- Parameters:
- scale - the data to store in the field.
convertTime
public final void convertTime(TimeBase newBase)
- Convert a time from one time base into a time that is relative to another time base.
QuickTime::ConvertTime
- Parameters:
- tr - The time structure that contains the time value to be converted
- newBase - Specifies the time base for this operation
convertTimeScale
public final void convertTimeScale(int newScale)
- Convert a time from one time scale into a time that is relative to another time base.
QuickTime::ConvertTimeScale
- Parameters:
- newScale - The time scale
addTime
public final void addTime(TimeRecord source)
- This adds two times specified in time structures.
QuickTime::AddTime
- Parameters:
- source - The source operand time base with a time value to add
subtractTime
public final void subtractTime(TimeRecord source)
- This subtracts two times specified in time structures.
QuickTime::SubtractTime
- Parameters:
- source - The source operand time base with a time value to subtract
getTimeBase
public final TimeBase getTimeBase()
- Return the TimeBase that is associated with this record. If there is
no TimeBase then returns null.
toString
public String toString()
- Print information about this TimeRecord object.
- Returns:
- a string representing this TimeRecord object
- Overrides:
- toString in class QTPointerRef
All Packages Class Hierarchy This Package Previous Next Index