Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCChart2D for Java
 Rotating YAxis Title
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RunnerGirl

6 Posts

Posted - 26 Feb 2007 :  11:49:15  Show Profile  Reply with Quote
I'm trying to rotate the yaxis titles so they don't overlap on a polygraph style display. The call to setTextRotation doesn't seem to have any effect. Here is the code that I am using:

AxisTitle yAxisTitle = new AxisTitle();
yAxisTitle.setAxisTitle(yaxis, font24, m_vParams.get(i).getName());
yAxisTitle.setTextRotation(45.0);
chartVu.addChartObject(yAxisTitle);

Thank you.

quinncurtis

1164 Posts

Posted - 28 Feb 2007 :  16:05:43  Show Profile  Reply with Quote
Unlike our generic ChartText class, and the axis labels classes, the axis title class uses a fixed rotation, setting it 90 degrees for y-axis titles, and leaving it a 0 for x-axis titles. Calling setTextRotation will have no effect. There is no way to change that behavior for the AxisTitle class. You could try and use ChartText objects instead, placing them in the positions you want.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07