**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
[com.aspose.imaging.fileformats.cmx.objectmodel.ICmxDocElement](../../com.aspose.imaging.fileformats.cmx.objectmodel/icmxdocelement)
```
public class CmxObject implements ICmxDocElement
```

Object containing information about the graphic element.
## Constructors

| Constructor | Description |
| --- | --- |
| [CmxObject()](#CmxObject--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getFillStyle()](#getFillStyle--) | Gets the fill style. |
| [setFillStyle(CmxFillStyle value)](#setFillStyle-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxFillStyle-) | Sets the fill style. |
| [getOutline()](#getOutline--) | Gets the outline style. |
| [setOutline(CmxOutline value)](#setOutline-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxOutline-) | Sets the outline style. |
| [getObjectSpec()](#getObjectSpec--) | Gets the object specification. |
| [setObjectSpec(ICmxObjectSpec value)](#setObjectSpec-com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec-) | Sets the object specification. |
| [toString()](#toString--) | Returns a String that represents this instance. |
| [equals(Object o)](#equals-java.lang.Object-) | Check if objects are equal. |
| [hashCode()](#hashCode--) | Get hash code of the current object. |
### CmxObject() {#CmxObject--}
```
public CmxObject()
```


### getFillStyle() {#getFillStyle--}
```
public final CmxFillStyle getFillStyle()
```


Gets the fill style.

**Returns:**
[CmxFillStyle](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxfillstyle) - the fill style.
### setFillStyle(CmxFillStyle value) {#setFillStyle-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxFillStyle-}
```
public final void setFillStyle(CmxFillStyle value)
```


Sets the fill style.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxFillStyle](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxfillstyle) | the fill style. |

### getOutline() {#getOutline--}
```
public final CmxOutline getOutline()
```


Gets the outline style.

**Returns:**
[CmxOutline](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxoutline) - the outline style.
### setOutline(CmxOutline value) {#setOutline-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxOutline-}
```
public final void setOutline(CmxOutline value)
```


Sets the outline style.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxOutline](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxoutline) | the outline style. |

### getObjectSpec() {#getObjectSpec--}
```
public final ICmxObjectSpec getObjectSpec()
```


Gets the object specification.

**Returns:**
[ICmxObjectSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/icmxobjectspec) - the object specification.
### setObjectSpec(ICmxObjectSpec value) {#setObjectSpec-com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec-}
```
public final void setObjectSpec(ICmxObjectSpec value)
```


Sets the object specification.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [ICmxObjectSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/icmxobjectspec) | the object specification. |

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


Returns a String that represents this instance.

**Returns:**
java.lang.String - A String that represents this instance.
### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```


Check if objects are equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object | The other object. |

**Returns:**
boolean - The equality comparison result.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Get hash code of the current object.

**Returns:**
int - The hash code.
