Time

Inheritance: java.lang.Object, com.aspose.psd.xmp.types.XmpTypeBase

public final class Time extends XmpTypeBase

Representation of a time value in seconds.

Constructors

ConstructorDescription
Time(Rational scale, int value)Initializes a new instance of the Time class.

Methods

MethodDescription
equals(Object arg0)
getClass()
getScale()Gets or sets scale for the time value.
getValue()Gets or sets time value in the specified scale.
getXmpRepresentation()Gets the string contained value in XMP format.
hashCode()
notify()
notifyAll()
setScale(Rational value)Gets or sets scale for the time value.
setValue(int value)Gets or sets time value in the specified scale.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Time(Rational scale, int value)

public Time(Rational scale, int value)

Initializes a new instance of the Time class.

Parameters:

ParameterTypeDescription
scaleRationalThe scale.
valueintThe value.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getScale()

public Rational getScale()

Gets or sets scale for the time value.

For NTSC, use 1001/30000, or the less accurate 100/2997. For PAL, use 1/25. Value: The scale for the time value.

Returns: Rational

getValue()

public int getValue()

Gets or sets time value in the specified scale.

Value: The time value in the specified scale.

Returns: int

getXmpRepresentation()

public String getXmpRepresentation()

Gets the string contained value in XMP format.

Returns: java.lang.String - Returns the string contained value in XMP format.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setScale(Rational value)

public void setScale(Rational value)

Gets or sets scale for the time value.

For NTSC, use 1001/30000, or the less accurate 100/2997. For PAL, use 1/25. Value: The scale for the time value.

Parameters:

ParameterTypeDescription
valueRational

setValue(int value)

public void setValue(int value)

Gets or sets time value in the specified scale.

Value: The time value in the specified scale.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int