From: Chris M. <ki...@us...> - 2004-07-01 01:40:16
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/chartData In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7921/src/java/org/krysalis/jcharts/chartData Modified Files: AxisDataSeries.java Log Message: Dual Y axis changes, add String for rightAxisTitle Index: AxisDataSeries.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/chartData/AxisDataSeries.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AxisDataSeries.java 31 May 2004 16:24:34 -0000 1.2 --- AxisDataSeries.java 1 Jul 2004 01:40:05 -0000 1.3 *************** *** 61,64 **** --- 61,65 ---- private String xAxisTitle; private String yAxisTitle; + private String rightYAxisTitle = null; protected HashMap dataSets; *************** *** 84,87 **** --- 85,106 ---- /****************************************************************************************** + * Constructor + * + * @param xAxisTitle if this is NULL, no title will be displayed + * @param yAxisTitle if this is NULL, no title will be displayed + * @param rightYAxisTitle if this is NULL, no title will be displayed + * @param chartTitle if this is NULL, no title will be displayed + *******************************************************************************************/ + public AxisDataSeries( String xAxisTitle, String yAxisTitle, String rightYAxisTitle, String chartTitle ) + { + this.xAxisTitle=xAxisTitle; + this.yAxisTitle=yAxisTitle; + this.rightYAxisTitle=rightYAxisTitle; + this.chartTitle=chartTitle; + dataSets = new HashMap(); + } + + + /****************************************************************************************** * Returns the x-axis title * *************** *** 104,107 **** --- 123,136 ---- } + /****************************************************************************************** + * Returns the right hand side y-axis title + * + * @return String + *******************************************************************************************/ + public String getRightYAxisTitle() + { + return this.rightYAxisTitle; + } + /****************************************************************************************** |