java.lang.Object | +--com.ibm.commerce.payment.utils.TextAlignHelper
Utility class with static methods for aligning text Strings.
Constructor Summary | |
---|---|
TextAlignHelper() |
Method Summary | |
---|---|
static java.lang.String |
centerAlign(java.lang.String sIn, int iSize,
java.lang.String sEncoding) Align a given Text String in the Center of a line of specified size. |
static java.lang.String |
leftAlign(java.lang.String sIn, int iSize,
java.lang.String sEncoding) Align a given Text String to the left of a line of specified size. |
static java.lang.String |
rightAlign(java.lang.String sIn, int iSize,
java.lang.String sEncoding) Align a given Text String to the right of a line of specified size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public TextAlignHelper()
Method Detail |
---|
public static java.lang.String centerAlign(java.lang.String sIn, int iSize, java.lang.String sEncoding) throws java.io.UnsupportedEncodingException
sIn
- The text String to be centered.iSize
- The size of the line that is to contain the Text
String.java.io.UnsupportedEncodingException
public static java.lang.String leftAlign(java.lang.String sIn, int iSize, java.lang.String sEncoding) throws java.io.UnsupportedEncodingException
sIn
- The text String to be left-aligned.iSize
- The size of the line that is to contain the Text
String.java.io.UnsupportedEncodingException
public static java.lang.String rightAlign(java.lang.String sIn, int iSize, java.lang.String sEncoding) throws java.io.UnsupportedEncodingException
sIn
- The text String to be right-aligned.iSize
- The size of the line that is to contain the Text
String.java.io.UnsupportedEncodingException