|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.util.FormatCache
public final class FormatCache
Helper class that caches PrintfFormat classes. Used by table
renderers, which need to switch between small number of different formats.
| Constructor Summary | |
|---|---|
FormatCache()
|
|
| Method Summary | |
|---|---|
static PrintfFormat |
getDefaultFormatter()
Returns default formatter with format string %4.4f. |
static PrintfFormat |
getFormatter(java.lang.String format)
Returns instance of PrintfFormat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatCache()
| Method Detail |
|---|
public static PrintfFormat getFormatter(java.lang.String format)
PrintfFormat. If formatter does not
already exist in cache, new instance will be created. If format is
invalid, null will be returned.
format - C-Style format string.
public static PrintfFormat getDefaultFormatter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||