krysalis-jcharts/src/java/org/krysalis/jcharts/types ChartType.java,1.4,1.5

Chris McKay <[email protected]> Tue, 21 Sep 2004 03:54:26 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/types
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22819/src/java/org/krysalis/jcharts/types

Modified Files:
	ChartType.java 
Log Message:
Final fixes for truely independant dual Y axis

Index: ChartType.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/types/ChartType.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ChartType.java	13 Aug 2004 01:48:25 -0000	1.4
--- ChartType.java	21 Sep 2004 03:54:24 -0000	1.5
***************
*** 48,63 ****
--- 48,74 ----
  {
  	public static final ChartType BAR=new ChartType( 0, false );
+ 	public static final ChartType BAR_RHS=new ChartType( 0, false, true );
  	public static final ChartType BAR_CLUSTERED=new ChartType( 1, false );
+ 	public static final ChartType BAR_CLUSTERED_RHS=new ChartType( 1, false, true );
  	public static final ChartType BAR_STACKED=new ChartType( 2, true );
+ 	public static final ChartType BAR_STACKED_RHS=new ChartType( 2, true, true );
  	public static final ChartType LINE=new ChartType( 3, false );
+ 	public static final ChartType LINE_RHS=new ChartType( 3, false, true );
  	public static final ChartType POINT=new ChartType( 4, false );
+ 	public static final ChartType POINT_RHS=new ChartType( 4, false, true );
  	public static final ChartType AREA=new ChartType( 5, false );
+ 	public static final ChartType AREA_RHS=new ChartType( 5, false, true );
  	public static final ChartType AREA_STACKED=new ChartType( 6, true );
+ 	public static final ChartType AREA_STACKED_RHS=new ChartType( 6, true, true );
  	public static final ChartType STOCK=new ChartType( 7, false );
+ 	public static final ChartType STOCK_RHS=new ChartType( 7, false, true );
  	public static final ChartType SCATTER_PLOT=new ChartType( 8, false );
+ 	public static final ChartType SCATTER_PLOT_RHS=new ChartType( 8, false, true );
  	public static final ChartType BAR_STACKED_3D=new ChartType( 9, true );
+ 	public static final ChartType BAR_STACKED_3D_RHS=new ChartType( 9, true, true );
  	public static final ChartType LINE_REGRESSION=new ChartType( 10, false );
  
  	private boolean stackedData;
+ 	private boolean plotAgainstRHS = false;
  
  
***************
*** 74,77 ****
--- 85,96 ----
  	}
  
+ 	private ChartType( int typeCode, boolean stackedData, boolean plotAgainstRHS )
+ 	{
+ 		super( typeCode );
+ 
+ 		this.stackedData=stackedData;
+ 		this.plotAgainstRHS = plotAgainstRHS;
+ 	}
+ 
  
  	/***************************************************************************************
***************
*** 85,88 ****
--- 104,112 ----
  	}
  
+ 	public boolean isPlottedAgainstRHS()
+ 	{
+ 		return this.plotAgainstRHS;
+ 	}
+ 
  
  	/***************************************************************************************



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php