Hi,
I'm trying to understand how the rotation method works.
I have some text which I want rotated and placed in a specific place, the bottom-left of a rectangle which I created.
AffineTransform af = new AffineTransform();
af.translate(0,0);
af.rotate(Math.toRadians(-45));
FontRenderContext renderContext = new FontRenderContext(null, false,
false);
s2d.transform(af);
TextLayout layout = new TextLayout("15 march",s2d.getFont
(),renderContext);
layout.draw(s2d, 0, 0);
I want to be able to add more text aligned to this one and I'd like to understand what general coordinates I need to use to get it right.
Thank you
Mich