Good questions. I am not trying to "do" anything, especially I am not trying to 
change the graphics without changing them back, though I can see how one would 
infer that !

I am really just trying to understand the processing model. For instance, you 
said- don't use setTransform because other methods (scopes) may depend on the 
transform you just changed. Fair enough. But that begs the question- when is 
the graphics transform state reset, by what method and what logic is used to 
arrive at what that state should be? That's the kind of information I am 
looking for. All I know is that. somehow, mysteriously, the transform gets 
changed when I thought I had changed it for good, and what's more, it changes 
so as to be totally reset.

Is that documented behavior? Because it seems to me that I have to know what 
state the graphics transform is in before I transform it with my own code. So 
if mehtods are resetting it and that's known and expected, I need to be clued 
in.

After all, what good is it to define an translation that is 50 pixels right if 
I can't count on the state of the graphics at an given instant? 50 pixels right 
of WHERE? I can query the graphics, but that presupposes a certain programing 
model- one where the information needed to create an AT is synchronous and 
co-located (scope wise) , both with the graphics object

Let's say my immediate real-world goal is to place shapes where the user drags 
them. Or again to layout a screen of shapes. Practical stuff. I have no idea 
what AT to assoc with a Shape (making the AT the Shape's stateful member field) 
 so it gets drawn somewhere I want it because, well, who knows what state the 
graphics is going to be in next time I see it? All painting is relative to the 
graphics device space coordinate system, but unless I have some guarantees 
about what that might be at some particular time... see what I am saying/

Don't tell me I'm wrong , because I KNOW I am wrong !! The question is, what 
have I got all wrong.


I am hoping there's an elephant in this room somewhere and someone will tell me 
where...
[Message sent by forum member 'swv' (swv)]

http://forums.java.net/jive/thread.jspa?messageID=227754

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to