The basic concepts of Java2D are based on the basic concepts of computer 
graphics, and they have been explored since the 1960's. So a lot of the core 
concepts are as relevant today as they were in 1999. The painter's model is the 
key abstraction. When you paint, paint the objects in the background before the 
objects in the foreground, because foreground objects obscure background 
objects.

The latest modern design strategy centers around the concept of "Painters." 
This is just a delegate object that does the actual painting. So instead of 
having a single paint() method in a component that does all the work, that 
component now calls out to its Painter delegate to do the actual painting. This 
allows for a more flexible design since you can swap out painters as needed to 
produce different effects, and you can combine painters to do combination of 
effects. 

The Filthy Rich Clients book discusses this concept in great detail, and the 
SwingX project in SwingLabs uses this model extensively in its components.
[Message sent by forum member 'robross' (robross)]

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

===========================================================================
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