|
sharkysoft.com | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sharkysoft.util.EnumeratedType
com.sharkysoft.printf.engine.AlignmentMode
Text justification styles.
Details: AlignmentMode is an enumeration of alignment
modes supported by StringFormatter. When the text is shorter than
the field into which it is being rendered, it may be justified against the
left edge of the field, the right edge of the field, or both. The text may
also be centered. This class represents each of the alignment modes with
both ints and type-
StringFormatter| Field Summary | |
static int |
CENTER
Centered alignment. |
static int |
FULL
Full justification. |
static AlignmentMode |
gpCenter
Centered alignment. |
static AlignmentMode |
gpFull
Full justification. |
static AlignmentMode |
gpLeft
Left-alignment. |
static AlignmentMode |
gpRight
Right-alignment. |
static int |
LEFT
Left-alignment. |
static int |
RIGHT
Right-alignment. |
| Method Summary | |
static AlignmentMode |
forInt(int inValue)
Converts int value to object value. |
| Methods inherited from class com.sharkysoft.util.EnumeratedType |
compareTo, toEnumeratedType, toInt, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int LEFT
Details: LEFT indicates that text is
left-
gpLeft,
Constant Field Valuespublic static final AlignmentMode gpLeft
Details: gpLeft is a type-LEFT.
LEFTpublic static final int CENTER
Details: CENTER indicates that text is centered in
the field.
gpCenter,
Constant Field Valuespublic static final AlignmentMode gpCenter
Details: gpCenter is a type-CENTER.
CENTERpublic static final int RIGHT
Details: RIGHT indicates that text is
right-
gpRight,
Constant Field Valuespublic static final AlignmentMode gpRight
Details: gpRight is a type-RIGHT.
RIGHTpublic static final int FULL
Details: FULL indicates that text is fully justified
in the field. Fully justified text is aligned to both the left and right
sides of the field. It may be necessary to insert spaces into the text in
order to make it the same width as the field.
gpFull,
Constant Field Valuespublic static final AlignmentMode gpFull
Details: gpFull is a type-FULL.
FULL| Method Detail |
public static AlignmentMode forInt(int inValue)
Details: forInt returns the type-int value.
inValue - int value
|
sharkysoft.com | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997-2004 Sharkysoft (sharkysoft.com). All rights reserved.