krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart AxisChart.java,1.14,1.15

Gann Bierner <[email protected]> Fri, 19 Nov 2004 01:35:37 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11034/src/java/org/krysalis/jcharts/axisChart

Modified Files:
	AxisChart.java 
Log Message:
Added ability to have a custom NumberFormat for the y axis.  Sometimes percent or dollar signs just is not enough...

Index: AxisChart.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/AxisChart.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** AxisChart.java	5 Nov 2004 01:49:20 -0000	1.14
--- AxisChart.java	19 Nov 2004 01:35:35 -0000	1.15
***************
*** 189,198 ****
  //TODO what if they do not want to display axis labels?
  //todo we still need to know how to size the axis
! 			NumericTagGroup numericTagGroup = new NumericTagGroup( dataAxisProperties.getScaleChartFont(),
! 																					 fontRenderContext,
! 																					 dataAxisProperties.useDollarSigns(),
! 																					 dataAxisProperties.usePercentSigns(),
! 																					 dataAxisProperties.useCommas(),
! 																					 dataAxisProperties.getRoundToNearest() );
  
  			numericTagGroup.createAxisScaleLabels( axis.getScaleCalculator() );
--- 189,211 ----
  //TODO what if they do not want to display axis labels?
  //todo we still need to know how to size the axis
! 			NumericTagGroup numericTagGroup = null;
!                         if (dataAxisProperties.getCustomFormatter() != null)
!                         {
!                                 numericTagGroup = new NumericTagGroup(dataAxisProperties.getScaleChartFont(),
!                                                                       fontRenderContext,
!                                                                       dataAxisProperties.getCustomFormatter());
!                         }
!                         else
!                         {
!                                 numericTagGroup = new NumericTagGroup( dataAxisProperties.getScaleChartFont(),
!                                                                        fontRenderContext,
!                                                                        dataAxisProperties.useDollarSigns(),
!                                                                        dataAxisProperties.usePercentSigns(),
!                                                                        dataAxisProperties.useCommas(),
!                                                                        dataAxisProperties.getRoundToNearest() );
!                         }
!                         
!                         
!                         
  
  			numericTagGroup.createAxisScaleLabels( axis.getScaleCalculator() );



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8