From: Gann B. <ga...@us...> - 2004-11-16 06:39:44
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8971/src/java/org/krysalis/jcharts/properties Modified Files: AxisTypeProperties.java Log Message: Added ability to align rotated X-labels at the top rather the bottom. This also causes the tops to point directly to the matching points on the X axis rather than be centered below them. Finally, just like with purely vertical labels, we only need consider the text height rather than width to figure out how many to show in this case. Index: AxisTypeProperties.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/properties/AxisTypeProperties.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AxisTypeProperties.java 1 Jul 2004 01:47:53 -0000 1.4 --- AxisTypeProperties.java 16 Nov 2004 06:39:34 -0000 1.5 *************** *** 91,94 **** --- 91,95 ---- private boolean showAxis = true; private int labelRotationAngle = 0; + private boolean rotatedLabelAlignTop = false; *************** *** 293,296 **** --- 294,306 ---- } + public boolean getRotatedLabelAlignTop( ) + { + return this.rotatedLabelAlignTop; + } + + public void setRotatedLabelAlignTop( boolean rotatedLabelAlignTop ) + { + this.rotatedLabelAlignTop = rotatedLabelAlignTop; + } public int getLabelRotationAngle() |