|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.ElementAlignment
Represents the alignment of an element.
Field Summary | |
static ElementAlignment |
BOTTOM
A constant for bottom alignment. |
static ElementAlignment |
CENTER
A constant for center alignment (horizontal). |
static ElementAlignment |
LEFT
A constant for left alignment. |
static ElementAlignment |
MIDDLE
A constant for middle alignment (vertical). |
static ElementAlignment |
RIGHT
A constant for right alignment. |
static ElementAlignment |
TOP
A constant for top alignment. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if this object is equal to the specified object, and
false otherwise. |
int |
getOldAlignment()
Returns the alignment code, used by the old XML parsing code, that corresponds to this alignment object. |
int |
hashCode()
Returns a hash code for the alignment object. |
protected java.lang.Object |
readResolve()
Replaces the automatically generated instance with one of the enumeration instances. |
java.lang.String |
toString()
Returns the alignment name. |
static ElementAlignment |
translateHorizontalAlignment(int alignment)
Translates the old alignment ( int ) constants into the new
ElementAlignment objects. |
static ElementAlignment |
translateVerticalAlignment(int alignment)
Translates the old alignment ( int ) constants into the new
ElementAlignment objects. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ElementAlignment LEFT
public static final ElementAlignment CENTER
public static final ElementAlignment RIGHT
public static final ElementAlignment TOP
public static final ElementAlignment MIDDLE
public static final ElementAlignment BOTTOM
Method Detail |
public java.lang.String toString()
public int getOldAlignment()
public boolean equals(java.lang.Object o)
true
if this object is equal to the specified object, and
false
otherwise.
o
- the other object.
public int hashCode()
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- if the element could not be resolved.public static ElementAlignment translateHorizontalAlignment(int alignment)
int
) constants into the new
ElementAlignment
objects.
alignment
- the alignment code.
java.lang.IllegalArgumentException
- if the supplied code does not match one
of the predefined constant values.public static ElementAlignment translateVerticalAlignment(int alignment)
int
) constants into the new
ElementAlignment
objects.
alignment
- the alignment code.
java.lang.IllegalArgumentException
- if the supplied code does not match one
of the predefined constant values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |