|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<HorizontalAlignment>
ca.sqlpower.wabit.report.HorizontalAlignment
public enum HorizontalAlignment
Enumeration of possible horizontal alignments.
VerticalAlignment| Enum Constant Summary | |
|---|---|
CENTER
Indicates the item's centre should be lined up with the centre of the containing box. |
|
LEFT
Indicates the item should run from the left-hand boundary of its containing box to its natural width. |
|
RIGHT
Indicates the item should run to the right-hand boundary of its containing box from the position of the right-hand boundary less its natural width. |
|
| Method Summary | |
|---|---|
int |
computeStartX(int containingBoxWidth,
int itemWidth)
Computes the starting X position within the given box for content that has the given width. |
static HorizontalAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HorizontalAlignment[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final HorizontalAlignment LEFT
public static final HorizontalAlignment CENTER
public static final HorizontalAlignment RIGHT
| Method Detail |
|---|
public static HorizontalAlignment[] values()
for (HorizontalAlignment c : HorizontalAlignment.values()) System.out.println(c);
public static HorizontalAlignment valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public int computeStartX(int containingBoxWidth,
int itemWidth)
containingBoxWidth - The width of the containing boxitemWidth - The width of the item to align within the containing box
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||