public enum HorizontalAlign extends Enum<HorizontalAlign> implements FriendlyNamed
Modifier and Type | Method and Description |
---|---|
String |
getFriendlyName() |
abstract float |
position(float pageWidth,
float stringWidth,
float margin) |
static HorizontalAlign |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalAlign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalAlign CENTER
public static final HorizontalAlign RIGHT
public static final HorizontalAlign LEFT
public static HorizontalAlign[] values()
for (HorizontalAlign c : HorizontalAlign.values()) System.out.println(c);
public static HorizontalAlign valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getFriendlyName()
getFriendlyName
in interface FriendlyNamed
public abstract float position(float pageWidth, float stringWidth, float margin)
pageWidth
- page width in ptsstringWidth
- width of the text we are positioning in ptsmargin
- margin to use. Relevant only in non central alignment.Copyright © 2018 sejda. All rights reserved.