Class Alignment

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

public final class Alignment extends Enum
An enum class for alignments, left, center, right, top, bottom.
See Also:
  • Field Details

    • LEFT

      public static final Alignment LEFT
      Left alignment.
    • CENTER

      public static final Alignment CENTER
      Center 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..
  • Method Details

    • 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(ObjectInputStream in) throws IOException
      Decodes an alignment from a stream.
      Parameters:
      in - the stream containing the alignment
      Returns:
      the alignment
      Throws:
      IOException - if there is a stream error