From: <ki...@us...> - 2003-08-27 04:38:03
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/properties In directory sc8-pr-cvs1:/tmp/cvs-serv23576/properties Modified Files: AxisTypeProperties.java Log Message: Integration of the Dual Y axis code that was submitted to Nathaniel by Romain SEGUY. These are new properties added to the AxisTypeProperties class ChartFont AxisTypeProperties.getScaleChartFontRight() void AxisTypeProperties.setScaleChartFontRight( ChartFont scaleChartFontRight ) void AxisTypeProperties.setShowRightAxis( boolean showRightAxis ) float AxisTypeProperties.getSecondScaleRight() void AxisTypeProperties.setSecondScaleRight(float secondScaleRight) double AxisTypeProperties.getMinRightAxis() void AxisTypeProperties.setMinRightAxis(double minRightAxis) double AxisTypeProperties.getMaxRightAxis() void AxisTypeProperties.setMaxRightAxis(double maxRightAxis) Added to Axis class TextTagGroup Axis.getAxisLabelsGroupRight() void Axis.setAxisLabelsGroupRight( TextTagGroup axisLabelsGroupRight ) There is a demonstration servlet in org\krysalis\jcharts\demo\simpleservlet called DualYAxis.java Index: AxisTypeProperties.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/properties/AxisTypeProperties.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AxisTypeProperties.java 17 May 2003 17:00:33 -0000 1.1 --- AxisTypeProperties.java 27 Aug 2003 04:37:44 -0000 1.2 *************** *** 89,92 **** --- 89,100 ---- private boolean showAxisLabels= true; + // Dual Y axis changes integrated CMC 25Aug03 + //variable added for the right axis + //the method corresponding are so implemented + private ChartFont scaleChartFontRight = ChartFont.DEFAULT_AXIS_SCALE; + private boolean showRightAxis = false; + private float secondScaleRight=1; + private double minRightAxis = 0; + private double maxRightAxis = 0; private ChartFont titleChartFont= ChartFont.DEFAULT_AXIS_TITLE; *************** *** 245,248 **** --- 253,267 ---- } + // Dual Y axis changes integrated CMC 25Aug03 + public ChartFont getScaleChartFontRight() + { + return scaleChartFontRight; + } + + + public void setScaleChartFontRight( ChartFont scaleChartFontRight ) + { + this.scaleChartFontRight = scaleChartFontRight; + } public ChartFont getAxisTitleChartFont() *************** *** 270,274 **** ! public float getPaddingBetweenAxisLabels() { return this.paddingBetweenAxisLabels; --- 289,341 ---- ! // Dual Y axis changes integrated CMC 25Aug03 ! public boolean getShowRightAxis() ! { ! return this.showRightAxis; ! } ! ! ! public void setShowRightAxis( boolean showRightAxis ) ! { ! this.showRightAxis = showRightAxis; ! } ! ! ! public float getSecondScaleRight() ! { ! return this.secondScaleRight; ! } ! ! ! public void setSecondScaleRight(float secondScaleRight) ! { ! this.secondScaleRight=secondScaleRight; ! } ! ! public double getMinRightAxis() ! { ! return this.minRightAxis; ! } ! ! ! public void setMinRightAxis(double minRightAxis) ! { ! this.minRightAxis=minRightAxis; ! } ! ! ! public double getMaxRightAxis() ! { ! return this.maxRightAxis; ! } ! ! ! public void setMaxRightAxis(double maxRightAxis) ! { ! this.maxRightAxis=maxRightAxis; ! } ! ! ! public float getPaddingBetweenAxisLabels() { return this.paddingBetweenAxisLabels; |