net.infonode.util

Class Alignment

public final class Alignment extends Enum

An enum class for alignments, left, center, right, top, bottom.

Version: $Revision: 1.5 $

Author: $Author: jesper $

Field Summary
static Alignment[]ALIGNMENTS
Array containing all alignments..
static AlignmentBOTTOM
Bottom alignment.
static AlignmentCENTER
Center alignment.
static Alignment[]HORIZONTAL_ALIGNMENTS
Array containing all horizontal alignments..
static AlignmentLEFT
Left alignment.
static AlignmentRIGHT
Right alignment.
static AlignmentTOP
Top alignment.
static Alignment[]VERTICAL_ALIGNMENTS
Array containing all vertical alignments..
Method Summary
static Alignmentdecode(ObjectInputStream in)
Decodes an alignment from a stream.
static Alignment[]getAlignments()
Gets the alignments.
static Alignment[]getHorizontalAlignments()
Gets the horizontal alignments.
static Alignment[]getVerticalAlignments()
Gets the vertical alignments.

Field Detail

ALIGNMENTS

public static final Alignment[] ALIGNMENTS
Array containing all alignments..

BOTTOM

public static final Alignment BOTTOM
Bottom alignment.

CENTER

public static final Alignment CENTER
Center alignment.

HORIZONTAL_ALIGNMENTS

public static final Alignment[] HORIZONTAL_ALIGNMENTS
Array containing all horizontal alignments..

LEFT

public static final Alignment LEFT
Left alignment.

RIGHT

public static final Alignment RIGHT
Right alignment.

TOP

public static final Alignment TOP
Top alignment.

VERTICAL_ALIGNMENTS

public static final Alignment[] VERTICAL_ALIGNMENTS
Array containing all vertical alignments..

Method Detail

decode

public static Alignment decode(ObjectInputStream in)
Decodes an alignment from a stream.

Parameters: in the stream containing the alignment

Returns: the alignment

Throws: IOException if there is a stream error

getAlignments

public static Alignment[] getAlignments()
Gets the alignments.

Returns: the alignments

Since: 1.1.0

getHorizontalAlignments

public static Alignment[] getHorizontalAlignments()
Gets the horizontal alignments.

Returns: the horizontal alignments

Since: 1.1.0

getVerticalAlignments

public static Alignment[] getVerticalAlignments()
Gets the vertical alignments.

Returns: the vertical alignments

Since: 1.1.0