
**Inheritance:**
java.lang.Object, [com.aspose.psd.xmp.types.XmpTypeBase](../../com.aspose.psd.xmp.types/xmptypebase), [com.aspose.psd.xmp.types.complex.ComplexTypeBase](../../com.aspose.psd.xmp.types.complex/complextypebase)
```
public final class Dimensions extends ComplexTypeBase
```

Containing dimensions for a drawn object.
## Constructors

| Constructor | Description |
| --- | --- |
| [Dimensions()](#Dimensions--) | Initializes a new instance of the  Dimensions  class. |
| [Dimensions(float width, float height)](#Dimensions-float-float-) | Initializes a new instance of the  Dimensions  class. |
## Methods

| Method | Description |
| --- | --- |
| [add(String key, Object value)](#add-java.lang.String-java.lang.Object-) | Adds the specified key. |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getHeight()](#getHeight--) | Gets or sets the height. |
| [getNamespaceUri()](#getNamespaceUri--) | Gets the default namespace URI. |
| [getPrefix()](#getPrefix--) | Gets the prefix. |
| [getUnits()](#getUnits--) | Gets or sets units. |
| [getWidth()](#getWidth--) | Gets or sets the width. |
| [getXmpRepresentation()](#getXmpRepresentation--) | Gets the string contained value in XMP format. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setHeight(float value)](#setHeight-float-) | Gets or sets the height. |
| [setUnits(String value)](#setUnits-java.lang.String-) | Gets or sets units. |
| [setWidth(float value)](#setWidth-float-) | Gets or sets the width. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Dimensions() {#Dimensions--}
```
public Dimensions()
```


Initializes a new instance of the  Dimensions  class.

### Dimensions(float width, float height) {#Dimensions-float-float-}
```
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) {#add-java.lang.String-java.lang.Object-}
```
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) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getHeight() {#getHeight--}
```
public float getHeight()
```


Gets or sets the height.

**Returns:**
float
### getNamespaceUri() {#getNamespaceUri--}
```
public String getNamespaceUri()
```


Gets the default namespace URI.

**Returns:**
java.lang.String - The default namespace URI.
### getPrefix() {#getPrefix--}
```
public String getPrefix()
```


Gets the prefix.

**Returns:**
java.lang.String - The prefix.
### getUnits() {#getUnits--}
```
public String getUnits()
```


Gets or sets units.

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

**Returns:**
java.lang.String
### getWidth() {#getWidth--}
```
public float getWidth()
```


Gets or sets the width.

**Returns:**
float
### getXmpRepresentation() {#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() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setHeight(float value) {#setHeight-float-}
```
public void setHeight(float value)
```


Gets or sets the height.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float |  |

### setUnits(String value) {#setUnits-java.lang.String-}
```
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) {#setWidth-float-}
```
public void setWidth(float value)
```


Gets or sets the width.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

