com.businessobjects.rebean.wi
Class HAnchorType

java.lang.Object
  extended by com.businessobjects.rebean.wi.HAnchorType
All Implemented Interfaces:
java.io.Serializable

public final class HAnchorType
extends java.lang.Object
implements java.io.Serializable

Warning: This class is no longer functional from the SAP BusinessObjects 4.0 release onwards.

HAnchorType class represents all possible horizontal anchor types. Anchor types are used to determine how to attach a report element to another.

See Also:
Attachable, Serialized Form

Field Summary
static int _LEFT
          int value of LEFT.value()
static int _NONE
          int value of NONE.value()
static int _RIGHT
          int value of RIGHT.value()
static HAnchorType LEFT
          Defines left attachment.
static HAnchorType NONE
          Defines no attachment.
static HAnchorType RIGHT
          Defines right attachment.
 
Method Summary
static HAnchorType fromInt(int value)
          Returns a HAnchorType instance corresponding to value, or null when value does not correspond to any HAnchorType.
 java.lang.String toString()
          Return a String representation of this anchor type.
 int value()
          Return the int value of this anchor type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_NONE

public static final int _NONE
int value of NONE.value()

See Also:
Constant Field Values

_LEFT

public static final int _LEFT
int value of LEFT.value()

See Also:
Constant Field Values

_RIGHT

public static final int _RIGHT
int value of RIGHT.value()

See Also:
Constant Field Values

NONE

public static final HAnchorType NONE
Defines no attachment. When Attachable.getHorizontalAnchor() returns HAnchorType.NONE, all the x parameters and return values from Position will be relative to the parent report container's left side.


LEFT

public static final HAnchorType LEFT
Defines left attachment. When Attachable.getHorizontalAnchor() returns HAnchorType.LEFT, all the x parameters and return values from Position will be relative to the attached element's left side.


RIGHT

public static final HAnchorType RIGHT
Defines right attachment. When Attachable.getHorizontalAnchor() returns HAnchorType.RIGHT, all the x parameters and return values from Position will be relative to the attached element's right side.

Method Detail

value

public int value()
Return the int value of this anchor type.

Returns:
the int value of this anchor type

toString

public java.lang.String toString()
Return a String representation of this anchor type.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this anchor type (for debug purposes).

fromInt

public static HAnchorType fromInt(int value)
Returns a HAnchorType instance corresponding to value, or null when value does not correspond to any HAnchorType.

Returns:
a HAnchorType instance corresponding to value, or null when value does not correspond to any HAnchorType.