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
Constructor | Description |
---|---|
Dimensions() | Initializes a new instance of the Dimensions class. |
Dimensions(float width, float height) | Initializes a new instance of the Dimensions class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
width | float | The width. |
height | float | The height. |
add(String key, Object value)
public void add(String key, Object value)
Adds the specified key.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The string representation of key that is identified with added value. |
value | java.lang.Object | The value to add to. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
value | float |
setUnits(String value)
public void setUnits(String value)
Gets or sets units.
For example: inch, mm, pixel, pica, point etc. Value: The units.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setWidth(float value)
public void setWidth(float value)
Gets or sets the width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |