com.maryanovsky.gwtutils.client
Class Alignment

java.lang.Object
  extended by com.maryanovsky.gwtutils.client.Alignment

public class Alignment
extends Object

Convenient constants for placement to be used instead of a pair of alignment constants.

Author:
Maryanovsky Alexander

Field Summary
static Alignment BOTTOM_CENTER
          The constant for bottom-center alignment.
static Alignment BOTTOM_LEFT
          The constant for bottom-left alignment.
static Alignment BOTTOM_RIGHT
          The constant for bottom-right alignment.
static Alignment CENTER
          The constant for center alignment.
static Alignment MIDDLE_LEFT
          The constant for middle-left alignment.
static Alignment MIDDLE_RIGHT
          The constant for middle-right alignment.
static Alignment TOP_CENTER
          The constant for top-center alignment.
static Alignment TOP_LEFT
          The constant for top-left alignment.
static Alignment TOP_RIGHT
          The constant for top-right alignment.
 
Constructor Summary
Alignment(HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlignment, HasVerticalAlignment.VerticalAlignmentConstant verticalAlignment)
          Creates a new Alignment with the specified horizontal and vertical alignments.
 
Method Summary
 HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
          Returns the horizontal alignment constant.
 HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
          Returns the vertical alignment constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP_LEFT

public static final Alignment TOP_LEFT
The constant for top-left alignment.


TOP_CENTER

public static final Alignment TOP_CENTER
The constant for top-center alignment.


TOP_RIGHT

public static final Alignment TOP_RIGHT
The constant for top-right alignment.


MIDDLE_LEFT

public static final Alignment MIDDLE_LEFT
The constant for middle-left alignment.


CENTER

public static final Alignment CENTER
The constant for center alignment.


MIDDLE_RIGHT

public static final Alignment MIDDLE_RIGHT
The constant for middle-right alignment.


BOTTOM_LEFT

public static final Alignment BOTTOM_LEFT
The constant for bottom-left alignment.


BOTTOM_CENTER

public static final Alignment BOTTOM_CENTER
The constant for bottom-center alignment.


BOTTOM_RIGHT

public static final Alignment BOTTOM_RIGHT
The constant for bottom-right alignment.

Constructor Detail

Alignment

public Alignment(HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlignment,
                 HasVerticalAlignment.VerticalAlignmentConstant verticalAlignment)
Creates a new Alignment with the specified horizontal and vertical alignments.

Method Detail

getHorizontalAlignment

public HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
Returns the horizontal alignment constant.


getVerticalAlignment

public HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
Returns the vertical alignment constant.