Re-send: the list bounced it a few days ago...
Chet Haase wrote:
> translate() adds the given translation to the one that exists
> in the Graphics object already. So the new x,y are relative to
> the current translated origin, not the top left corner.
> This doesn't affect objects you have already drawn, since it only
> impacts things that you will draw after you set this new state.
> firstname.lastname@example.org wrote:
>> Hi All,
>> When I use the Graphics2D.translate(int x, int y) several times in one
>> program, does the new x and y are relative to the old origin or to the
>> top left corner?
>> and what happens if I already have several shapes? does Java2D re
>> locate them according to the new origin?
>> Thank u in advance
>> [Message sent by forum member 'eyal757' (eyal757)]
>> To unsubscribe, send email to email@example.com and include in the
>> of the message "signoff JAVA2D-INTEREST". For general help, send
>> email to
>> firstname.lastname@example.org and include in the body of the message "help".
To unsubscribe, send email to email@example.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
firstname.lastname@example.org and include in the body of the message "help".
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.