net.infonode.util
Class Alignment

java.lang.Object
  extended by net.infonode.util.Enum
      extended by net.infonode.util.Alignment
All Implemented Interfaces:
java.io.Serializable, Writable

public final class Alignment
extends Enum

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

Version:
$Revision: 1.5 $
Author:
$Author: jesper $
See Also:
Serialized Form

Field Summary
static Alignment[] ALIGNMENTS
          Array containing all alignments..
static Alignment BOTTOM
          Bottom alignment.
static Alignment CENTER
          Center alignment.
static Alignment[] HORIZONTAL_ALIGNMENTS
          Array containing all horizontal alignments..
static Alignment LEFT
          Left alignment.
static Alignment RIGHT
          Right alignment.
private static long serialVersionUID
           
static Alignment TOP
          Top alignment.
static Alignment[] VERTICAL_ALIGNMENTS
          Array containing all vertical alignments..
 
Constructor Summary
private Alignment(int value, java.lang.String name)
           
 
Method Summary
static Alignment decode(java.io.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.
 
Methods inherited from class net.infonode.util.Enum
decode, getName, getObject, getValue, readResolve, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LEFT

public static final Alignment LEFT
Left alignment.


CENTER

public static final Alignment CENTER
Center alignment.


RIGHT

public static final Alignment RIGHT
Right alignment.


TOP

public static final Alignment TOP
Top alignment.


BOTTOM

public static final Alignment BOTTOM
Bottom alignment.


ALIGNMENTS

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


HORIZONTAL_ALIGNMENTS

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


VERTICAL_ALIGNMENTS

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

Constructor Detail

Alignment

private Alignment(int value,
                  java.lang.String name)
Method Detail

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

decode

public static Alignment decode(java.io.ObjectInputStream in)
                        throws java.io.IOException
Decodes an alignment from a stream.

Parameters:
in - the stream containing the alignment
Returns:
the alignment
Throws:
java.io.IOException - if there is a stream error