net.xoetrope.swing
Class XAlignmentHelper
java.lang.Object
net.xoetrope.swing.XAlignmentHelper
-
public class XAlignmentHelper
- extends java.lang.Object
-
A utility class to help in setting alignment options
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
Field Summary |
static int[] |
alignmentOptionIds
The constants associated with each alignment |
static java.lang.String[] |
alignmentOptions
Left, Right, Center, Leading, Trailing |
Method Summary |
static java.lang.String |
getAlignmentOption(int value)
Get the name/text of an alignment |
static int |
getAlignmentOption(java.lang.String value)
Get the alignment option value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alignmentOptions
public static final java.lang.String[] alignmentOptions
-
Left, Right, Center, Leading, Trailing
alignmentOptionIds
public static final int[] alignmentOptionIds
-
The constants associated with each alignment
XAlignmentHelper
public XAlignmentHelper()
-
Construct a new helper
getAlignmentOption
public static int getAlignmentOption(java.lang.String value)
-
Get the alignment option value
-
- Parameters:
-
value
- the alignment name
- Returns:
- the alignment ID
getAlignmentOption
public static java.lang.String getAlignmentOption(int value)
-
Get the name/text of an alignment
-
- Parameters:
-
value
- the alignment value
- Returns:
- alignment name