| |
|
| java.lang.Object jimm.datavision.field.FormattedValueCache
FormattedValueCache | class FormattedValueCache implements Observer(Code) | | Helps avoid multiple expensive formatting and font size calculations. Each
Field holds on to one of these and asks it for the formatted
(wrapped) version of its value or the height needed to output the formatted
value.
author: Jim Menard, jimm@io.com |
LINE_SIZE_FUDGE_FACTOR | final protected static double LINE_SIZE_FUDGE_FACTOR(Code) | | |
dateFormatters | final protected static HashMap dateFormatters(Code) | | |
decimalFormatters | final protected static HashMap decimalFormatters(Code) | | |
height | protected double height(Code) | | |
wrappingCalculationsLabel | protected static JLabel wrappingCalculationsLabel(Code) | | |
calcValues | void calcValues()(Code) | | Cacluates formatted (wrapped) string and output height.
|
getWrappingCalcsLabel | protected static JLabel getWrappingCalcsLabel()(Code) | | |
notSameAs | protected boolean notSameAs(Object otherValue)(Code) | | |
update | public void update(Observable o, Object arg)(Code) | | When format changes, erase value so we recalculate it
|
|
|
|