---
title: "Justification"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/justification/"
product: "Aspose.PDF for Java API Reference"
description: "Enumerates the forms of quadding (justification) to be used in displaying the annotation's text."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < Justification > com.aspose.pdf.Justification, java.lang.Enum < Justification >, com.aspose.pdf.Justification

**All Implemented Interfaces:**
Serializable, Comparable < Justification >

```
public enum Justification extends Enum < Justification >
```

Enumerates the forms of quadding (justification) to be used in displaying the annotation's text.

## Fields

| Field | Description |
| --- | --- |
| [Center](#Center) | Center justification. |
| [Left](#Left) | Left justification. |
| [Right](#Right) | Right justification. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Center {#Center}
```
public static final Justification Center
```

Center justification.

### Left {#Left}
```
public static final Justification Left
```

Left justification.

### Right {#Right}
```
public static final Justification Right
```

Right justification.

### getByValue {#getByValue-int-}
```
public static Justification getByValue(int value)
```



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

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static Justification [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
