**Inheritance:**
java.lang.Object, [com.aspose.imaging.DisposableObject](../../com.aspose.imaging/disposableobject), [com.aspose.imaging.fileformats.cmx.objectmodel.CmxContainer](../../com.aspose.imaging.fileformats.cmx.objectmodel/cmxcontainer)
```
public class CmxLayer extends CmxContainer
```

The graphic layer located on the page of the CMX document.
## Constructors

| Constructor | Description |
| --- | --- |
| [CmxLayer()](#CmxLayer--) |  |
## Fields

| Field | Description |
| --- | --- |
| [MASTER_DESKTOP_LAYER_NAME](#MASTER-DESKTOP-LAYER-NAME) | The master desktop layer name |
## Methods

| Method | Description |
| --- | --- |
| [getFlags()](#getFlags--) | Gets the flags. |
| [setFlags(long value)](#setFlags-long-) | Sets the flags. |
| [getName()](#getName--) | Gets the name of the layer. |
| [setName(String value)](#setName-java.lang.String-) | Sets the name of the layer. |
| [getNumber()](#getNumber--) | Gets the layer order number. |
| [setNumber(int value)](#setNumber-int-) | Sets the layer order number. |
| [isVisible()](#isVisible--) | Gets a value indicating whether this layer is visible. |
| [setVisible(boolean value)](#setVisible-boolean-) | Sets a value indicating whether this layer is visible. |
| [equals(Object o)](#equals-java.lang.Object-) | Check if objects are equal. |
| [hashCode()](#hashCode--) | Get hash code of the current object. |
### CmxLayer() {#CmxLayer--}
```
public CmxLayer()
```


### MASTER_DESKTOP_LAYER_NAME {#MASTER-DESKTOP-LAYER-NAME}
```
public static final String MASTER_DESKTOP_LAYER_NAME
```


The master desktop layer name

### getFlags() {#getFlags--}
```
public final long getFlags()
```


Gets the flags.

**Returns:**
long - the flags.
### setFlags(long value) {#setFlags-long-}
```
public final void setFlags(long value)
```


Sets the flags.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long | the flags. |

### getName() {#getName--}
```
public final String getName()
```


Gets the name of the layer.

**Returns:**
java.lang.String - the name of the layer.
### setName(String value) {#setName-java.lang.String-}
```
public final void setName(String value)
```


Sets the name of the layer.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the name of the layer. |

### getNumber() {#getNumber--}
```
public final int getNumber()
```


Gets the layer order number.

**Returns:**
int - the layer order number.
### setNumber(int value) {#setNumber-int-}
```
public final void setNumber(int value)
```


Sets the layer order number.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the layer order number. |

### isVisible() {#isVisible--}
```
public final boolean isVisible()
```


Gets a value indicating whether this layer is visible.

**Returns:**
boolean
### setVisible(boolean value) {#setVisible-boolean-}
```
public final void setVisible(boolean value)
```


Sets a value indicating whether this layer is visible.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether this layer is visible. |

### 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.
