public final class Align extends Object
A non-instantiable class containing several constants dealing with alignments.
Alignments are made up of various bits, stored in an integer, which may be bitwise-ORed
together. So, for example, to align something to the top-left, you could set
int align = Align.TOP | Align.LEFT
. Following the standard set by CSS2 and HTML,
CENTER
means horizontally centered, and MIDDLE
means vertically
centered.
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM
The constant representing bottom vertical alignment
|
static int |
BOX
A constant requesting horizontal alignment to be done based on the "box" of all values
rather than this individual value.
|
static int |
CENTER
The constant representing centered horizontal alignment
|
static int |
LEFT
The constant representing left horizontal alignment
|
static int |
MIDDLE
The constant representing middle vertical alignment
|
static int |
RIGHT
The constant representing right horizontal alignment
|
static int |
TOP
The constant representing top vertical alignment
|
public static final int TOP
public static final int BOTTOM
public static final int MIDDLE
public static final int LEFT
public static final int RIGHT
public static final int CENTER
public static final int BOX
Copyright © 2001-2016 Big Faceless Organization