krysalis-jcharts/src/java/org/krysalis/jcharts/properties AxisTypeProperties.java,1.4,1.5

Gann Bierner <[email protected]> Tue, 16 Nov 2004 06:39:37 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
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()



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8