org.niffty
Class ReferencePointOverride

java.lang.Object
  |
  +--org.niffty.ReferencePointOverride

public class ReferencePointOverride
extends java.lang.Object

A ReferencePointOverride has an anchor horizontal, dependent horizontal, anchor vertical and dependent vertical. Always used in combination with either Absolute Placement or Logical Placement tags.


Field Summary
static int BOTTOM
           
static int DEFAULT
           
static int HORIZONTAL_CENTER
           
static int LEFT
           
static int RIGHT
           
static int TOP
           
static int VERTICAL_CENTER
           
 
Constructor Summary
ReferencePointOverride()
          Creates new ReferencePointOverride with all zero values
ReferencePointOverride(int anchorHorizontal, int dependentHorizontal, int anchorVertical, int dependentVertical)
          Creates new ReferencePointOverride with the given values.
 
Method Summary
 int getAnchorHorizontal()
          Return the anchor horizontal value, which is DEFAULT, LEFT, RIGHT or HORIZONTAL_CENTER.
 int getAnchorVertical()
          Return the anchor vertical value, which is DEFAULT, TOP, BOTTOM or VERTICAL_CENTER.
 int getDependentHorizontal()
          Return the dependent horizontal value, which is DEFAULT, LEFT, RIGHT or HORIZONTAL_CENTER.
 int getDependentVertical()
          Return the dependent vertical value, which is DEFAULT, TOP, BOTTOM or VERTICAL_CENTER.
 java.lang.String toString()
          Returns string as "(anchor horizontal:value, dependent horizontal:value, anchor vertical:value, dependent vertical:value)"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

HORIZONTAL_CENTER

public static final int HORIZONTAL_CENTER
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

VERTICAL_CENTER

public static final int VERTICAL_CENTER
See Also:
Constant Field Values
Constructor Detail

ReferencePointOverride

public ReferencePointOverride()
Creates new ReferencePointOverride with all zero values


ReferencePointOverride

public ReferencePointOverride(int anchorHorizontal,
                              int dependentHorizontal,
                              int anchorVertical,
                              int dependentVertical)
Creates new ReferencePointOverride with the given values.

Parameters:
anchorHorizontal - anchor horizontal. Must be DEFAULT, LEFT, RIGHT or HORIZONTAL_CENTER.
dependentHorizontal - dependent horizontal. Must be DEFAULT, LEFT, RIGHT or HORIZONTAL_CENTER.
anchorVertical - anchor vertical. Must be DEFAULT, TOP, BOTTOM or VERTICAL_CENTER.
dependentVertical - anchor vertical. Must be DEFAULT, TOP, BOTTOM or VERTICAL_CENTER.
Method Detail

getAnchorHorizontal

public int getAnchorHorizontal()
Return the anchor horizontal value, which is DEFAULT, LEFT, RIGHT or HORIZONTAL_CENTER.


getDependentHorizontal

public int getDependentHorizontal()
Return the dependent horizontal value, which is DEFAULT, LEFT, RIGHT or HORIZONTAL_CENTER.


getAnchorVertical

public int getAnchorVertical()
Return the anchor vertical value, which is DEFAULT, TOP, BOTTOM or VERTICAL_CENTER.


getDependentVertical

public int getDependentVertical()
Return the dependent vertical value, which is DEFAULT, TOP, BOTTOM or VERTICAL_CENTER.


toString

public java.lang.String toString()
Returns string as "(anchor horizontal:value, dependent horizontal:value, anchor vertical:value, dependent vertical:value)"

Overrides:
toString in class java.lang.Object