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


Constructor Index

 o TimeRecord()
This record is an empty record that will need to be filled out by passing it into calls.

Method Index

 o addTime(TimeRecord)
This adds two times specified in time structures.
 o convertTime(TimeBase)
Convert a time from one time base into a time that is relative to another time base.
 o convertTimeScale(int)
Convert a time from one time scale into a time that is relative to another time base.
 o getScale()
Determines the time scale of the time record.
 o getTimeBase()
Return the TimeBase that is associated with this record.
 o getValue()
Determines the time value of the time record.
 o setScale(int)
Sets the time scale of the time record.
 o setValue(long)
Sets the time value of the time record.
 o subtractTime(TimeRecord)
This subtracts two times specified in time structures.
 o toString()
Print information about this TimeRecord object.

Constructors

 o 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.

Methods

 o getValue
 public final long getValue()
Determines the time value of the time record.

Returns:
The value of the time value.
 o getScale
 public final int getScale()
Determines the time scale of the time record.

Returns:
The value of the time scale.
 o setValue
 public final void setValue(long value)
Sets the time value of the time record.

Parameters:
value - the data to store in the field.
 o setScale
 public final void setScale(int scale)
Sets the time scale of the time record.

Parameters:
scale - the data to store in the field.
 o 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
 o 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
 o 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
 o 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
 o getTimeBase
 public final TimeBase getTimeBase()
Return the TimeBase that is associated with this record. If there is no TimeBase then returns null.

 o 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