From: Chris M. <ki...@us...> - 2004-09-21 03:54:33
|
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; + } + /*************************************************************************************** |