Dimensions

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

public final class Dimensions extends ComplexTypeBase

Containing dimensions for a drawn object.

Constructors

ConstructorDescription
Dimensions()Initializes a new instance of the Dimensions class.
Dimensions(float width, float height)Initializes a new instance of the Dimensions class.

Methods

MethodDescription
add(String key, Object value)Adds the specified key.
equals(Object arg0)
getClass()
getHeight()Gets or sets the height.
getNamespaceUri()Gets the default namespace URI.
getPrefix()Gets the prefix.
getUnits()Gets or sets units.
getWidth()Gets or sets the width.
getXmpRepresentation()Gets the string contained value in XMP format.
hashCode()
notify()
notifyAll()
setHeight(float value)Gets or sets the height.
setUnits(String value)Gets or sets units.
setWidth(float value)Gets or sets the width.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Dimensions()

public Dimensions()

Initializes a new instance of the Dimensions class.

Dimensions(float width, float height)

public Dimensions(float width, float height)

Initializes a new instance of the Dimensions class.

Parameters:

ParameterTypeDescription
widthfloatThe width.
heightfloatThe height.

add(String key, Object value)

public void add(String key, Object value)

Adds the specified key.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe string representation of key that is identified with added value.
valuejava.lang.ObjectThe value to add to.

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

getHeight()

public float getHeight()

Gets or sets the height.

Returns: float

getNamespaceUri()

public String getNamespaceUri()

Gets the default namespace URI.

Returns: java.lang.String - The default namespace URI.

getPrefix()

public String getPrefix()

Gets the prefix.

Returns: java.lang.String - The prefix.

getUnits()

public String getUnits()

Gets or sets units.

For example: inch, mm, pixel, pica, point etc. Value: The units.

Returns: java.lang.String

getWidth()

public float getWidth()

Gets or sets the width.

Returns: float

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()

setHeight(float value)

public void setHeight(float value)

Gets or sets the height.

Parameters:

ParameterTypeDescription
valuefloat

setUnits(String value)

public void setUnits(String value)

Gets or sets units.

For example: inch, mm, pixel, pica, point etc. Value: The units.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setWidth(float value)

public void setWidth(float value)

Gets or sets the width.

Parameters:

ParameterTypeDescription
valuefloat

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