---
title: "CadUnderlay"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.cad.cadobjects/cadunderlay/"
product: "Aspose.CAD for Java"
description: "Class describing CadUnderlay"
---


**Inheritance:** java.lang.Object, CadBaseExtrudedEntity

Class describing CadUnderlay

## Constructors

| Constructor | Description |
| --- | --- |
| [CadUnderlay()](#CadUnderlay) | Initializes a new instance of the CadUnderlay class. |

## Methods

| Method | Description |
| --- | --- |
| [getExtrusionDirection()](#getExtrusionDirection) | Gets or sets the extrusion direction. |
| [setExtrusionDirection(Cad3DPoint value)](#setExtrusionDirection-com.aspose.cad.fileformats.cad.cadobjects.Cad3DPoint) | Gets or sets the extrusion direction. |
| [getAcDbUnderlayDefinitionObjectId()](#getAcDbUnderlayDefinitionObjectId) | Gets or sets the ac database underlay definition object identifier. |
| [setAcDbUnderlayDefinitionObjectId(String value)](#setAcDbUnderlayDefinitionObjectId-java.lang.String) | Gets or sets the ac database underlay definition object identifier. |
| [getContrast()](#getContrast) | Gets or sets the contrast. |
| [setContrast(short value)](#setContrast-short) | Gets or sets the contrast. |
| [getFade()](#getFade) | Gets or sets the fade. |
| [setFade(short value)](#setFade-short) | Gets or sets the fade. |
| [getPoints2d()](#getPoints2d) | Gets or sets the points2d. |
| [setPoints2d(List<Cad2DPoint> value)](#setPoints2d-java.util.List) | Gets or sets the points2d. |
| [getInsertionPoint()](#getInsertionPoint) | Gets or sets the insertion point . |
| [setInsertionPoint(Cad3DPoint value)](#setInsertionPoint-com.aspose.cad.fileformats.cad.cadobjects.Cad3DPoint) | Gets or sets the insertion point . |
| [getRotationAngle()](#getRotationAngle) | Gets or sets the rotation angle. |
| [setRotationAngle(double value)](#setRotationAngle-double) | Gets or sets the rotation angle. |
| [getUnderlayPath()](#getUnderlayPath) | Gets or sets the underlay path. |
| [setUnderlayPath(String value)](#setUnderlayPath-java.lang.String) | Gets or sets the underlay path. |
| [getUnderlayName()](#getUnderlayName) | Gets or sets the name of the underlay. |
| [setUnderlayName(String value)](#setUnderlayName-java.lang.String) | Gets or sets the name of the underlay. |
| [getScaleX()](#getScaleX) | Gets or sets the scale x. |
| [setScaleX(double value)](#setScaleX-double) | Gets or sets the scale x. |
| [getScaleY()](#getScaleY) | Gets or sets the scale y. |
| [setScaleY(double value)](#setScaleY-double) | Gets or sets the scale y. |
| [getScaleZ()](#getScaleZ) | Gets or sets the scale z. |
| [setScaleZ(double value)](#setScaleZ-double) | Gets or sets the scale z. |
| [getFlags()](#getFlags) | Gets or sets the flags. |
| [setFlags(int value)](#setFlags-int) | Gets or sets the flags. |

### CadUnderlay() {#CadUnderlay}
```java
public CadUnderlay()
```

Initializes a new instance of the CadUnderlay class.

### getExtrusionDirection() {#getExtrusionDirection}
```java
public Cad3DPoint getExtrusionDirection()
```

Gets or sets the extrusion direction.

**Returns:** Cad3DPoint

### setExtrusionDirection(Cad3DPoint value) {#setExtrusionDirection-com.aspose.cad.fileformats.cad.cadobjects.Cad3DPoint}
```java
public void setExtrusionDirection(Cad3DPoint value)
```

Gets or sets the extrusion direction.

### getAcDbUnderlayDefinitionObjectId() {#getAcDbUnderlayDefinitionObjectId}
```java
public final String getAcDbUnderlayDefinitionObjectId()
```

Gets or sets the ac database underlay definition object identifier.

**Returns:** String - The ac database underlay definition object identifier.

### setAcDbUnderlayDefinitionObjectId(String value) {#setAcDbUnderlayDefinitionObjectId-java.lang.String}
```java
public final void setAcDbUnderlayDefinitionObjectId(String value)
```

Gets or sets the ac database underlay definition object identifier.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The ac database underlay definition object identifier. |

### getContrast() {#getContrast}
```java
public final short getContrast()
```

Gets or sets the contrast.

**Returns:** short - The contrast.

### setContrast(short value) {#setContrast-short}
```java
public final void setContrast(short value)
```

Gets or sets the contrast.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | short | The contrast. |

### getFade() {#getFade}
```java
public final short getFade()
```

Gets or sets the fade.

**Returns:** short - The fade.

### setFade(short value) {#setFade-short}
```java
public final void setFade(short value)
```

Gets or sets the fade.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | short | The fade. |

### getPoints2d() {#getPoints2d}
```java
public final List<Cad2DPoint> getPoints2d()
```

Gets or sets the points2d.

**Returns:** List<Cad2DPoint> - The points2d.

### setPoints2d(List<Cad2DPoint> value) {#setPoints2d-java.util.List}
```java
public final void setPoints2d(List<Cad2DPoint> value)
```

Gets or sets the points2d.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | List<Cad2DPoint> | The points2d. |

### getInsertionPoint() {#getInsertionPoint}
```java
public final Cad3DPoint getInsertionPoint()
```

Gets or sets the insertion point .

**Returns:** Cad3DPoint - The insertion point.

### setInsertionPoint(Cad3DPoint value) {#setInsertionPoint-com.aspose.cad.fileformats.cad.cadobjects.Cad3DPoint}
```java
public final void setInsertionPoint(Cad3DPoint value)
```

Gets or sets the insertion point .

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | Cad3DPoint | The insertion point. |

### getRotationAngle() {#getRotationAngle}
```java
public final double getRotationAngle()
```

Gets or sets the rotation angle.

**Returns:** double - The rotation angle.

### setRotationAngle(double value) {#setRotationAngle-double}
```java
public final void setRotationAngle(double value)
```

Gets or sets the rotation angle.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | double | The rotation angle. |

### getUnderlayPath() {#getUnderlayPath}
```java
public final String getUnderlayPath()
```

Gets or sets the underlay path.

**Returns:** String - The underlay path.

### setUnderlayPath(String value) {#setUnderlayPath-java.lang.String}
```java
public final void setUnderlayPath(String value)
```

Gets or sets the underlay path.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The underlay path. |

### getUnderlayName() {#getUnderlayName}
```java
public final String getUnderlayName()
```

Gets or sets the name of the underlay.

**Returns:** String - The name of the underlay.

### setUnderlayName(String value) {#setUnderlayName-java.lang.String}
```java
public final void setUnderlayName(String value)
```

Gets or sets the name of the underlay.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The name of the underlay. |

### getScaleX() {#getScaleX}
```java
public final double getScaleX()
```

Gets or sets the scale x.

**Returns:** double

### setScaleX(double value) {#setScaleX-double}
```java
public final void setScaleX(double value)
```

Gets or sets the scale x.

### getScaleY() {#getScaleY}
```java
public final double getScaleY()
```

Gets or sets the scale y.

**Returns:** double

### setScaleY(double value) {#setScaleY-double}
```java
public final void setScaleY(double value)
```

Gets or sets the scale y.

### getScaleZ() {#getScaleZ}
```java
public final double getScaleZ()
```

Gets or sets the scale z.

**Returns:** double

### setScaleZ(double value) {#setScaleZ-double}
```java
public final void setScaleZ(double value)
```

Gets or sets the scale z.

### getFlags() {#getFlags}
```java
public final int getFlags()
```

Gets or sets the flags.

**Returns:** int - The flags.

### setFlags(int value) {#setFlags-int}
```java
public final void setFlags(int value)
```

Gets or sets the flags.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The flags. |

