Well now you're talking about object-oriented design.  Essentially, every 
update you make to the document needs to happen inside the RunnableQueue of the 
JSVGCanvas.  How to find the JSVGCanvas is up to you and the needs of your 
program.  Personally, I use Swing's hierarchy to do it.  My top-level container 
is a custom class that has getters and setters for its children.  I use the 
SwingUtilities class on actionEvent.getSource() to find my top-level container, 
then I use my getter/setter to access the JSVGCanvas.
 
If you don't have many actions that access the JSVGCanvas, you can pass the 
JSVGCanvas as a constructor parameter to a custom Action class.
 
The possibilities are numerous...:)
 
Michael Bishop

________________________________

From: hardc0d3r [mailto:[EMAIL PROTECTED]
Sent: Tue 6/26/2007 12:03 AM
To: batik-users@xmlgraphics.apache.org
Subject: RE: how to update SVGCanvas without moving mouse on canvas?




how do i do that if the canvas is separated with the button? they are in
different classes.. when i pressed a button i call a method in the class
with the canvas that looks like the code you gave? is this right or there is
a better way?
--
View this message in context: 
http://www.nabble.com/how-to-update-SVGCanvas-without-moving-mouse-on-canvas--tf3975725.html#a11299615
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to