From: Gann B. <ga...@us...> - 2004-11-19 01:35:45
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11034/src/java/org/krysalis/jcharts/properties Modified Files: DataAxisProperties.java Log Message: Added ability to have a custom NumberFormat for the y axis. Sometimes percent or dollar signs just is not enough... Index: DataAxisProperties.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/properties/DataAxisProperties.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DataAxisProperties.java 17 May 2003 17:00:34 -0000 1.1 --- DataAxisProperties.java 19 Nov 2004 01:35:35 -0000 1.2 *************** *** 48,51 **** --- 48,52 ---- import java.lang.reflect.Field; + import java.text.NumberFormat; *************** *** 70,73 **** --- 71,75 ---- private boolean usePercentSigns = false; + private NumberFormat customFormatter = null; //---holds data relevant to values displayed on the axis. may be null *************** *** 106,109 **** --- 108,122 ---- + public NumberFormat getCustomFormatter() + { + return customFormatter; + } + + + public void setCustomFormatter( NumberFormat formatter ) + { + this.customFormatter = formatter; + } + public int getRoundToNearest() { *************** *** 116,120 **** this.roundToNearest = roundToNearest; } ! public boolean showZeroLine() --- 129,133 ---- this.roundToNearest = roundToNearest; } ! public boolean showZeroLine() |