# Anchor

Import: `import com.install4j.api.beans.Anchor;`

```java
public final enum Anchor
```

Property type for an anchor.

## Constants

### NORTHWEST

### NORTH

### NORTHEAST

### WEST

### CENTER

### EAST

### SOUTHWEST

### SOUTH

### SOUTHEAST

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `Anchor[]` |  |
| [`valueOf(String)`](#valueof-string) | `Anchor` |  |
| [`getByValue(int)`](#getbyvalue-int) | `Anchor` | Get the anchor constant that corresponds to the specified value |
| [`isCorner()`](#iscorner) | `boolean` | If the anchor is a corner. |
| [`getValue()`](#getvalue) | `int` | The value of the anchor which can be used by `java.awt.GridBagLayout`. |
| [`toString()`](#tostring) | `String` |  |

### values()

```java
public static Anchor[] values()
```

### valueOf(String)

```java
public static Anchor valueOf(String name)
```

### getByValue(int)

```java
public static Anchor getByValue(int value)
```

Get the anchor constant that corresponds to the specified value


**Parameters:**

- `value` — the value, as returned by [`Anchor.getValue`](Anchor.md#getvalue)

**Returns:** the anchor or `null` if the value cannot be found

**See also:**

- [Anchor.getValue](Anchor.md#getvalue)

### isCorner()

```java
public boolean isCorner()
```

If the anchor is a corner.


**Returns:** the value

### getValue()

```java
public int getValue()
```

The value of the anchor which can be used by `java.awt.GridBagLayout`.


**Returns:** the value, one of the anchor constants in `java.awt.GridBagConstraints`

### toString()

```java
public String toString()
```

