krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/customRenderers/axisValue/renderers ValueLabelRenderer.java,1.3,1.4

Gann Bierner <[email protected]> Mon, 18 Oct 2004 02:58:52 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/customRenderers/axisValue/renderers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9149/src/java/org/krysalis/jcharts/axisChart/customRenderers/axisValue/renderers

Modified Files:
	ValueLabelRenderer.java 
Log Message:
Added constructor to set custom number formatter.  Made some methods protected for further customization.

Index: ValueLabelRenderer.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/customRenderers/axisValue/renderers/ValueLabelRenderer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ValueLabelRenderer.java	31 May 2004 16:23:03 -0000	1.3
--- ValueLabelRenderer.java	18 Oct 2004 02:58:49 -0000	1.4
***************
*** 72,89 ****
  
  
! 	/**********************************************************************************
! 	 *
! 	 * @param isCurrency
! 	 * @param showGrouping
! 	 * @param roundingPowerOfTen
! 	 * @deprecated use the other Constructor
! 	 **********************************************************************************/
! 	public ValueLabelRenderer( boolean isCurrency, boolean showGrouping, int roundingPowerOfTen )
! 	{
! 		this.numberFormat = NumericTagGroup.getNumberFormatInstance( isCurrency, false, showGrouping, roundingPowerOfTen );
! 	}
  
  
! 	/**********************************************************************************
  	 *
  	 * @param isCurrency
--- 72,99 ----
  
  
!     /**********************************************************************************
!      *
!      * @param format
!      **********************************************************************************/
!     public ValueLabelRenderer( NumberFormat format )
!     {
!         this.numberFormat = format;
!     }
!     
! 
!     /**********************************************************************************
!      *
!      * @param isCurrency
!      * @param showGrouping
!      * @param roundingPowerOfTen
!      * @deprecated use the other Constructor
!      **********************************************************************************/
!     public ValueLabelRenderer( boolean isCurrency, boolean showGrouping, int roundingPowerOfTen )
!     {
!         this.numberFormat = NumericTagGroup.getNumberFormatInstance( isCurrency, false, showGrouping, roundingPowerOfTen );
!     }
  
  
!     /**********************************************************************************
  	 *
  	 * @param isCurrency
***************
*** 208,212 ****
  	 * @return float
  	 ************************************************************************************************/
! 	private float calculateXVerticalPlot( AxisValueRenderEvent axisValueRenderEvent, TextTag formattedTextTag )
  	{
  		float x = axisValueRenderEvent.getValueX();
--- 218,222 ----
  	 * @return float
  	 ************************************************************************************************/
! 	protected float calculateXVerticalPlot( AxisValueRenderEvent axisValueRenderEvent, TextTag formattedTextTag )
  	{
  		float x = axisValueRenderEvent.getValueX();
***************
*** 231,235 ****
  	 * @return float
  	 ************************************************************************************************/
! 	private float calculateYHorizontalPlot( AxisValueRenderEvent axisValueRenderEvent,
  														 TextTag formattedTextTag )
  	{
--- 241,245 ----
  	 * @return float
  	 ************************************************************************************************/
! 	protected float calculateYHorizontalPlot( AxisValueRenderEvent axisValueRenderEvent,
  														 TextTag formattedTextTag )
  	{
***************
*** 255,259 ****
  	 * @param isNegative
  	 ************************************************************************************************/
! 	private float calculateXHorizontalPlot( AxisValueRenderEvent axisValueRenderEvent,
  														 TextTag formattedTextTag,
  														 boolean isNegative )
--- 265,269 ----
  	 * @param isNegative
  	 ************************************************************************************************/
! 	protected float calculateXHorizontalPlot( AxisValueRenderEvent axisValueRenderEvent,
  														 TextTag formattedTextTag,
  														 boolean isNegative )
***************
*** 347,351 ****
  	 * @param isNegative
  	 ************************************************************************************************/
! 	private float calculateYVerticalPlot( AxisValueRenderEvent axisValueRenderEvent,
  													  TextTag formattedTextTag,
  													  boolean isNegative )
--- 357,361 ----
  	 * @param isNegative
  	 ************************************************************************************************/
! 	protected float calculateYVerticalPlot( AxisValueRenderEvent axisValueRenderEvent,
  													  TextTag formattedTextTag,
  													  boolean isNegative )



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl