public class

FreeTextAlignmentUtils

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.FreeTextAlignmentUtils

Summary

Public Constructors
FreeTextAlignmentUtils()
Public Methods
static int getHorizontalAlignment(FreeText freeText)
Gets the vertical alignment for the Free Text.
static int getVerticalAlignment(FreeText freeText)
Gets the vertical alignment for the Free Text.
static boolean isLeftAligned(int gravity)
static void setHorizontalAlignment(FreeText freeText, int gravity)
Sets the horizontal alignment for the Free Text.
static void setVerticalAlignment(FreeText freeText, int gravity)
Sets the vertical alignment for the Free Text.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FreeTextAlignmentUtils ()

Public Methods

public static int getHorizontalAlignment (FreeText freeText)

Gets the vertical alignment for the Free Text. This method requires a read lock.

Parameters
freeText the Free Text to obtain vertical alignment

public static int getVerticalAlignment (FreeText freeText)

Gets the vertical alignment for the Free Text. This method requires a read lock.

Parameters
freeText the Free Text to obtain vertical alignment

public static boolean isLeftAligned (int gravity)

public static void setHorizontalAlignment (FreeText freeText, int gravity)

Sets the horizontal alignment for the Free Text. This method requires a write lock.

Parameters
freeText the Free Text to update
gravity the Gravity used to determine the alignment direction.

public static void setVerticalAlignment (FreeText freeText, int gravity)

Sets the vertical alignment for the Free Text. This method requires a write lock.

Parameters
freeText the Free Text to update
gravity the Gravity used to determine the alignment direction.