-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make m_axis field available to subclasses of AxisLabelLayout #4
base: master
Are you sure you want to change the base?
Conversation
Thanks for the patch. I think the added method will be useful. Did you encounter any other private fields in AxisLabelLayout that you On 02.08.2012 06:42, brycecr wrote:
|
Most of the other private members are exposed somehow, so I think that's the only issue I had with AxisLabelLayout. I did run into an issue in AxisRenderer where, in this snippet: AffineTransform origTransform = g.getTransform();
AffineTransform transform = this.getTransform(item);
if ( transform != null ) g.setTransform(transform);
From the Graphics2D javadoc: // Get the current transform AffineTransform
saveAT = g2.getTransform();
// Perform transformation
g2d.transform(...);
// Render
g2d.draw(...);
// Restore original transform
g2d.setTransform(saveAT); I will push a commit for this bug momentarily |
Similarly allowing programs to set the palette after a DataColorAction has been created has it's uses (as I found). The commits above deal with that |
Apologies, I'll take off the last cascaded table "fix" as that was testing code and doesn't function...my mistake... |
I was writing a subclass of AxisLabelLayout and the axis field is unavailable through any straightforward means. As far as I can tell, this is an omission and not a useful design choice, although I'm open to discussion on that point. The patch exposes m_axis conservatively; a public method might be reasonable.