|
Side of Software Print Preview Library 1.8.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.text.Format
|
+--sos.preview.ZoomLayoutFormat
A class that formats and parses instances of ZoomLayout.
ZoomLayout| Constructor Summary | |
ZoomLayoutFormat()
Creates a ZoomLayoutFormat for the default locale. |
|
ZoomLayoutFormat(java.util.Locale locale)
Creates a ZoomLayoutFormat for the specified locale. |
|
ZoomLayoutFormat(java.text.NumberFormat format)
Creates a ZoomLayoutFormat with the specified number format. |
|
| Method Summary | |
java.lang.StringBuffer |
format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats an object and appends the resulting text to a given string buffer. |
static java.util.Locale[] |
getAvailableLocales()
Returns the set of locales for which ZoomLayoutFormats are installed. |
static ZoomLayoutFormat |
getInstance()
Returns the default ZoomLayoutFormat for the default locale. |
static ZoomLayoutFormat |
getInstance(java.util.Locale locale)
Returns the default ZoomLayoutFormat for the specified locale. |
java.lang.Object |
parseObject(java.lang.String source,
java.text.ParsePosition pos)
Parses text from a string to produce an object. |
| Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZoomLayoutFormat()
ZoomLayoutFormat for the default locale.
public ZoomLayoutFormat(java.text.NumberFormat format)
ZoomLayoutFormat with the specified number format.
format - the number format to use to parse and format a ZoomLayout's
scalepublic ZoomLayoutFormat(java.util.Locale locale)
ZoomLayoutFormat for the specified locale.
locale - the desired locale| Method Detail |
public java.lang.StringBuffer format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.Formatobj - the object to formattoAppendTo - where the text is to be appendedpos - a FieldPosition identifying a field in the formatted text
toAppendTo, with formatted text appended
java.lang.IllegalArgumentException - if this Format cannot format the given object
java.lang.NullPointerException - if toAppendTo or pos is nullpublic static java.util.Locale[] getAvailableLocales()
ZoomLayoutFormats are installed.
public static ZoomLayoutFormat getInstance()
ZoomLayoutFormat for the default locale.
ZoomLayoutFormat for the default localepublic static ZoomLayoutFormat getInstance(java.util.Locale locale)
ZoomLayoutFormat for the specified locale.
ZoomLayoutFormat for the specified locale
public java.lang.Object parseObject(java.lang.String source,
java.text.ParsePosition pos)
parseObject in class java.text.Formatsource - a String, part of which should be parsedpos - a ParsePosition object with index and error index
information
null, if an error occurs
java.lang.NullPointerException - if pos is null
|
Side of Software Print Preview Library 1.8.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||