Thanks Thomas, I will make the necessary changes to my code as per your suggested style.
Javid -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 2:51 PM To: [email protected] Cc: [email protected] Subject: RE: Red Spots Hi Javid, "Javid Alimohideen" <[EMAIL PROTECTED]> wrote on 02/28/2006 03:47:14 PM: > If you want to add a group programmatically, here is a sample code: > > SVGSVGElement svgRoot = (SVGSVGElement) svgDocument.getDocumentElement(); > SVGOMGElement circleSet = (SVGOMGElement) > svgDocument.createElementNS("http://www.w3.org/2000/svg", "g"); Just as a point of style I would strongly suggest avoiding the use of the 'SVGOMXXX' classes in your code. You should only use these when absolutely necessary They are Batik's 'private' implementation of DOM Core/SVG DOM - you should use those interfaces in your code unless you _Really_ need access to internals. > circleSet.setAttributeNS(null, "id" "circlegroup"); > svgRoot.appendChild(circleSet); > > Thanks, > Javid > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 28, 2006 2:37 PM > To: [email protected] > Subject: RE: Red Spots > > > > ...yes you are right I haven't created a group with attribute 'id' set to > 'circlegroup', not sure how to :( I'm a complete novice to SVG and have > embarked on this ambitiouse project I'm finding it very difficult and time > is running out, pls ELP! > > Many thx > > yasmin > > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > > <HTML> > > <HEAD> > > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> > > > > > > <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0"> > > <TITLE>RE: Red Spots</TITLE> > > </HEAD> > > <BODY> > > <DIV id=idOWAReplyText64880 dir=ltr> > > <DIV dir=ltr><FONT face=Arial color=#000000 size=2>My guess is that "g" is > > null > > because you never created a group with the attribute 'id' set to > > 'circlegroup'.</FONT></DIV> > > <DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV> > > <DIV dir=ltr><FONT face=Arial size=2>Michael Bishop</FONT></DIV></DIV> > > <DIV dir=ltr><BR> > > <HR tabIndex=-1> > > <FONT face=Tahoma size=2><B>From:</B> [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]<BR><B>Sent:</B> Tue 2/28/2006 3:13 > > PM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> RE: > > Red > > Spots<BR></FONT><BR></DIV> > > <DIV> > > <P><FONT size=2>Hi there,<BR><BR>...here's the code from line > > > 315:<BR> canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater > (new<BR>Runnable() > > > {<BR><BR> & > nbsp; > > public void > > > run()<BR> & > nbsp; > > > {<BR>   > ; > > SVGDocument doc = > > > canvas.getSVGDocument();<BR> > &nbs > p; > > String SVGNS = "<A > > > href="http://www.w3.org/2000/svg">http://www.w3.org/2000/svg</A>";<BR> > &nbs > p; > > Iterator i = > > > spots.iterator();<BR> & > nbsp;   > ; > > Element g = > > > doc.getElementById("circleGroup");<BR> &n > bsp; > > > while > > > (i.hasNext())<BR>   > ; &nb > sp; > > > {<BR>   > ; &nb > sp; > > Point2D pt2d = (Point2D) > > > i.next();<BR> &nb > sp; & > nbsp; > > Element e = > > > doc.createElementNS(SVGNS,"circle");<BR> > &nbs > p; > > > e.setAttributeNS(null,"cx",""+pt2d.getX());<BR>   > ; &nb > sp; > > > e.setAttributeNS(null,"cy",""+pt2d.getY());<BR>   > ; &nb > sp; > > > e.setAttributeNS(null,"r","8");<BR>   > ; &nb > sp; > > > e.setAttributeNS(null,"fill","Red");<BR> > &nbs > p; > > > g.appendChild(e);<BR> & > nbsp;   > ; > > }<BR> &nb > sp; > > }<BR> &nb > sp; > > });<BR><BR>Many thx<BR><BR>yasmin<BR><BR><BR><BR>> Hi > > Yasmin,<BR>><BR>> > > [EMAIL PROTECTED] wrote on 02/28/2006 02:59:53 > > AM:<BR>><BR>>> the > > full stack trace is as follows:<BR>><BR>> > > All the > > code in the stack trace is "yours".<BR>> Can you include the code > > around line > > 315 in KeyAccidentClient?<BR>> I assume this is your version of the > > code I > > provided.<BR>><BR>>> > > java.lang.NullPointerException<BR>>><BR>>> > > at<BR>>><BR>> > > > mypackage22.KeyAccidentClient$showAccidents.actionPerformed(KeyAccidentClien > t.java:315)<BR>>><BR>>> > > at<BR>> > > > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)<BR> > >><BR>>> > > at<BR>>><BR>> > > > javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto > n.java:1839)<BR>>><BR>>> > > at<BR>>><BR>> > > > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 > 20)<BR>>><BR>>> > > at<BR>> > > > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)<BR>&g > t;><BR>>> > > at<BR>>><BR>> > > > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener > .java:245)<BR>>><BR>>> > > at > > > java.awt.Component.processMouseEvent(Component.java:5100)<BR>>><BR>> > ;> > > at > > > java.awt.Component.processEvent(Component.java:4897)<BR>>><BR>>> > > > at > > > java.awt.Container.processEvent(Container.java:1569)<BR>>><BR>>> > > > at > > > java.awt.Component.dispatchEventImpl(Component.java:3615)<BR>>><BR>> > ;> > > at > > > java.awt.Container.dispatchEventImpl(Container.java:1627)<BR>>><BR>> > ;> > > at > > > java.awt.Component.dispatchEvent(Component.java)<BR>>><BR>>>&nbs > p; > > at > > > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java)<BR>>> > ;<BR>>> > > at<BR>> > > > java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)<BR>> > ;><BR>>> > > at > > > java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)<BR>>> > ;<BR>>> > > at > > > java.awt.Container.dispatchEventImpl(Container.java:1613)<BR>>><BR>> > ;> > > at > > > java.awt.Window.dispatchEventImpl(Window.java)<BR>>><BR>>> > > > at > > > java.awt.Component.dispatchEvent(Component.java)<BR>>><BR>>>&nbs > p; > > at > > > java.awt.EventQueue.dispatchEvent(EventQueue.java:458)<BR>>><BR>>&g > t; > > at<BR>>><BR>> > > > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja > va:201)<BR>>><BR>>> > > at<BR>>><BR>> > > > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java > :151)<BR>>><BR>>> > > at<BR>> > > > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)<BR>> > ;><BR>>> > > at<BR>> > > > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)<BR>> > ;><BR>>> > > at > > > java.awt.EventDispatchThread.run(EventDispatchThread.java:100)<BR>>><B > R>>> > > Many Thx<BR>>><BR>>> > > > yasmin<BR>>><BR>>><BR>>><BR>>><BR>>><BR>>&g > t;<BR>>> > > > Hi Yasmin,<BR>>> ><BR>>> > [EMAIL PROTECTED] > > wrote > > on 02/27/2006 05:26:36 PM:<BR>>> ><BR>>> >> I get the > > following error: java.lang.NullPointerException<BR>>> >> after > > correcting the bug you pointed out...<BR>>> ><BR>>> > > > Without the associated stack trace I really > > can't.<BR>>> > The Dialog has a button that will expand the > > window<BR>>> > to include the full stack trace. This will > > help<BR>>> > a lot.<BR>>> ><BR>>> > > >><BR>>> > > >><BR>>> >> > Hi Yasmin,<BR>>> >> > > ><BR>>> >> > [EMAIL PROTECTED] wrote on 02/27/2006 > > 04:50:04 PM:<BR>>> >> ><BR>>> >> >> I've > > tried > > using the code below, but its not displaying the red<BR>>> > > > circles<BR>>> >> >> ...This is what happens, I load the > > SVG > > document by selecting from<BR>> a<BR>>> >> > > > menu<BR>>> > > >> >> bar, which triggers an event to load and rendering > > etc... once > > the<BR>>> >> >> document is displayed I then click a > > button to > > get the data from<BR>> the<BR>>> >> >> database, > > which I > > store into an arrayList, at this point I store<BR>> the<BR>>> > > >> > > >> points in a separate list... and then I added the code below, > > and<BR>>> >> > nothing<BR>>> >> >> > > happens, I > > get an error Msg : null :(<BR>>> >> ><BR>>> > > >> > > > The error Msg probably has a stack trace if you > > 'expand' > > the<BR>>> > window.<BR>>> >> > Also there was a > > bug > > below (might be the problem):<BR>>> >> > > > > > g.appendChild(g);<BR>>> >> ><BR>>> >> > > > Should > > be:<BR>>> >> ><BR>>> >> > > > > > g.appendChild(e);<BR>>> >> ><BR>>> >> > > > You can't add your self as a child.<BR>>> > > >> > > ><BR>>> >> ><BR>>> >> >><BR>>> > > >> >> pls advice, ThankU<BR>>> >> > > >><BR>>> > > >> >> yasmin<BR>>> >> >><BR>>> > > >> > > >><BR>>> >> >><BR>>> >> > > >><BR>>> > > >> >><BR>>> >> >> > Hi > > Yasmin,<BR>>> > > >> >> ><BR>>> >> >> > > > [EMAIL PROTECTED] wrote on 02/27/2006 01:26:07 PM:<BR>>> > > >> > > >> ><BR>>> >> >> >> yes, it does but how > > does > > that work?<BR>>> >> >> ><BR>>> >> > > >> > > > Assuming there is no 'obvious' dynamic content in > > the<BR>>> >> >> > SVG file already (script, event > > handlers, > > etc). You need<BR>>> >> >> > to tell the canvas > > to > > treat your document as dynamic:<BR>>> >> >> > > ><BR>>> > > >> >> > > > canvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);<BR>>> >> > > >> ><BR>>> >> >> > > > // Do what ever you > > curently do to load your SVG and get<BR>>> >> >> > > > // a list of points > > for > > circles.<BR>>> >> >> > > > // Once the document > > is > > loaded (onload callback or<BR>>> >> >> > > > // wait for first > > rendering):<BR>>> >> >> ><BR>>> >> > > >> > > > canvas.getUpdateManager().getUpdateRunnableQueue().<BR>>> > > >> > > >> > invokeLater(new Runnable() > > {<BR>>> > > >> >> > > > public > > void run() {<BR>>> >> >> > > > SVGDocuemnt doc = > > canvas.getSVGDocument();<BR>>> >> >> > > > String SVGNS = "<A > > href="http://www.w3.org/2000/svg">http://www.w3.org/2000/svg</A>"; // > > SVG<BR>>> > namespace<BR>>> >> >> > > > Iterator i = ...; // get list of > > points<BR>>> >> >> > > > Element g = > > doc.getElementById("circleGroup");<BR>>> >> >> > > > while (i.hasNext()) {<BR>>> > > >> > > >> > Point2D pt2d > > = > > i.next();<BR>>> >> >> > > > Element e = > > doc.createElementNS(SVGNS, "circle");<BR>>> >> >> > > > > > e.setAttributeNS(null, > > "cx", ""+pt2d.getX());<BR>>> >> >> > > > > > e.setAttributeNS(null, > > "cy", ""+pt2d.getY());<BR>>> >> >> > > > > > e.setAttributeNS(null, > > "r", "5");<BR>>> >> >> > > > > > g.appendChild(g);<BR>>> >> >> > > > }<BR>>> > > >> > > >> > });<BR>>> >> >> > > ><BR>>> >> >> >><BR>>> >> >> > > >><BR>>> >> >> >><BR>>> >> > > >> > > >> > Well you're not adding them to a document in the file > > system,<BR>>> > but<BR>>> >> > the<BR>>> > > >> > > >> >> > JSVGCanvas certainly has a reference to an > > SVGDocument > > in<BR>>> > memory,<BR>>> >> >> > > > right?<BR>>> >> >> >> ><BR>>> >> > > >> > > >> > Michael Bishop<BR>>> >> >> >> > > ><BR>>> >> >> >> > -----Original > > Message-----<BR>>> >> >> >> > From: > > [EMAIL PROTECTED]<BR>> [<A > > > href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]<BR > >>> > > >> >> >> > Sent: Monday, February 27, 2006 1:18 > > PM<BR>>> >> >> >> > To: > > [email protected]<BR>>> >> >> >> > > > > > Subject: RE: Red Spots<BR>>> >> >> >> > > ><BR>>> > > >> >> >> > Hi there!<BR>>> >> >> > > >> > > ><BR>>> >> >> >> > I can't make the spots > > part of > > the document, because they are<BR>>> > drawn<BR>>> >> > > >> >> > after<BR>>> >> >> >> > > > getting > > the information from a database (Accident database)<BR>>> > > > ...is<BR>>> >> >> > there<BR>>> >> > > >> > > >> > a<BR>>> >> >> >> > way when a > > mouse > > clicks on any of the spots to activate an<BR>>> > > > event?<BR>>> > > >> >> >> ><BR>>> >> >> >> > > > > > ThankU<BR>>> >> >> >> ><BR>>> >> > > >> > > >> > yasmin<BR>>> >> >> >> > > ><BR>>> > > >> >> >> ><BR>>> >> >> >> > > ><BR>>> >> >> >> ><BR>>> >> > > >> > > >> ><BR>>> >> >> >> >> Hi > > Yasmin,<BR>>> >> >> >> >><BR>>> > > >> > > >> >> >> [EMAIL PROTECTED] wrote on 02/27/2006 > > 12:42:09 > > PM:<BR>>> >> >> >> >><BR>>> >> > > >> >> >>> ...I've drawn the circles on the canvas, > > they are > > not part<BR>> of<BR>>> > my<BR>>> >> > > > svg<BR>>> >> >> >> >>> document such that > > the > > actual file is not altered, the the<BR>>> >> > > > circles<BR>>> >> >> >> > are<BR>>> > > >> > > >> >> >> not<BR>>> >> >> >> > > >>> individual elements - any ideas :(<BR>>> >> > > >> > > >> >><BR>>> >> >> >> > > >> Yes, make them part of your document > > ;)<BR>>> > > >> >> >> >> Really this is the > > simplest thing. If you want to<BR>> minimize<BR>>> > > > the<BR>>> >> >> >> >> 'impact' on the > > original > > document put all the circle in a<BR>>> > special<BR>>> > > >> > > >> >> > group<BR>>> >> >> >> > > >> > > (probably dynamically created) so you can just delete the<BR>> > > group<BR>>> > to<BR>>> >> >> >> > > > 'reset'<BR>>> >> >> >> >> the > > document. This > > way you can let the SVG engine do all<BR>> the<BR>>> >> > > > > > event<BR>>> >> >> >> >> > > tracking.<BR>>> > > >> >> >> >><BR>>> >> >> >> > > >> You could add an event listener (mouse move or > > the > > like)<BR>> to<BR>>> > the<BR>>> >> >> > > >> > > >> rootmost SVG element and you will get notified of any > > mouse<BR>>> > > > event<BR>>> >> >> >> >> over any > > element in > > the document. You could then manually<BR>>> > > > check<BR>>> > > >> >> > these<BR>>> >> >> >> > > >> > > points against your circles. But this seems like a bunch > > of<BR>>> > > > extra<BR>>> >> >> >> > work<BR>>> > > >> > > >> >> >> for nothing.<BR>>> >> >> > > >> > > >><BR>>> >> >> >> >>><BR>>> > > >> >> >> >>> yasmin<BR>>> >> > > >> > > >> >>><BR>>> >> >> >> > > >>><BR>>> >> >> >> >>> > > > Hello,<BR>>> >> >> >> >>> > > > For events, I attach an event to the > > entire<BR>> document.<BR>>> > For<BR>>> >> > > >> > > >> >>> > individual elements, this may work. > > You'll need > > to get<BR>> your<BR>>> >> >> > circle<BR>>> > > >> >> >> > as<BR>>> >> >> >> > > >>> > an org.w3c.dom.Element.<BR>>> >> >> > > >> > > >>> ><BR>>> >> >> >> >>> > > > EventTarget eventTarget = (EventTarget) yourElement;<BR>>> >> > > >> >> >>> ><BR>>> > > > eventTarget.addEventListener(SVGConstants.SVG_EVENT_MOUSEDOWN,<BR>>> > > >> > new<BR>>> >> >> >> >>> > > > YourEventListener(), false);<BR>>> >> >> >> > > >>> > > ><BR>>> >> >> >> >>> > Michael > > Bishop<BR>>> >> >> >> >>> > > ><BR>>> > > >> >> >> >>> > -----Original > > Message-----<BR>>> >> >> >> >>> > > > From: > > [EMAIL PROTECTED]<BR>>> > [<A > > > href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]<BR > >>> > > >> >> >> >>> > Sent: Monday, February 27, > > 2006 > > 12:13 PM<BR>>> >> >> >> >>> > To: > > [email protected]<BR>>> >> >> >> > > >>> > Subject: Red Spots<BR>>> >> >> > > >> > > >>> ><BR>>> >> >> >> >>> > > ><BR>>> >> >> >> >>> > Hi Michael > > Bishop,<BR>>> >> >> >> >>> > > ><BR>>> > > >> >> >> >>> > I have been beavering on my > > project > > and have successfully<BR>>> >> >> > > > converted<BR>>> > > >> >> >> > my<BR>>> >> >> >> > > >>> > screen coordinates to documents and can interact with > > my<BR>>> >> > database<BR>>> >> >> > > >> > > > to<BR>>> >> >> >> >>> > retrieve > > the > > information for the current view and show<BR>> red<BR>>> >> > > > > > spots<BR>>> >> >> > on<BR>>> >> >> > > >> >> the<BR>>> >> >> >> >>> > > > > > areas where accidents have happend on the map ...now I<BR>> > > need<BR>>> > > > to<BR>>> >> >> > make<BR>>> >> > > >> > > >> >> the<BR>>> >> >> >> >>> > > > > > red spots active so when a user clicks on a red spot the<BR>>> > > >> > > > relevant<BR>>> >> >> >> >>> > > > information about that particular accident is displayed<BR>> > > ...i<BR>>> > > >> >> > simply<BR>>> >> >> >> > > >> > > used<BR>>> >> >> >> >>> > the > > following code > > to create the red spot:<BR>>> >> >> >> > > >>> > > ><BR>>> >> >> >> >>> > Graphics > > spot = > > canvas.getGraphics();<BR>>> >> >> >> >>> > > > > > > > spot.setColor(Color.RED);<BR>>> >> >> >> > > >>> > > > > > > > spot.fillOval(x,y,22,22);<BR>>> >> >> >> > > >>> > > > > > > > spot.dispose();<BR>>> >> >> >> >>> > > ><BR>>> >> >> >> >>> > but i cant > > assign > > an ActionEvent to the spot ...Any<BR>> ideas?<BR>>> >> > > >> > > >> >>> ><BR>>> >> >> >> > > >>> > > > Many thanks in advance :)<BR>>> >> >> >> > > >>> ><BR>>> >> >> >> >>> > > > Yasmin<BR>>> >> >> >> >>> > > ><BR>>> > > >> >> >> >>> ><BR>>> >> >> > > >> >>> ><BR>>> >> >> >> > > >>> > > ><BR>>> >> >> >> >>> >> > > <!DOCTYPE > > HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><BR>>> >> >> > > >> >>> >> <HTML><BR>>> >> >> > > >> >>> >> <HEAD><BR>>> >> >> > > >> >>> >> <META HTTP-EQUIV="Content-Type" > > CONTENT="text/html;<BR>>> >> >> >> >>> > > > > > charset=iso-8859-1"><BR>>> >> >> >> > > >>> > > >><BR>>> >> >> >> >>> > > >><BR>>> >> >> >> >>> >> > > <META > > NAME="Generator" CONTENT="MS Exchange Server<BR>> version<BR>>> > > >> >> >> >>> > 6.5.7226.0"><BR>>> > > >> >> >> >>> >> <TITLE>RE: > > Coordinates</TITLE><BR>>> >> >> >> > > >>> > > >> </HEAD><BR>>> >> >> >> >>> > > >> <BODY><BR>>> >> >> >> >>> > > >> <DIV id=idOWAReplyText99836 dir=ltr><BR>>> >> > > >> >> >>> >> <DIV dir=ltr><FONT > > face=Arial > > color=#000000<BR>> size=2>Element<BR>>> >> >> > > > element<BR>>> >> >> >> >><BR>>> > > >> > > >> >> >>> >><BR>>> >> >> > > >> > > ><BR>>> >> ><BR>> > > > svgDocument.createElement(SVGConstants.SVG_CIRCLE_TAG);</FONT></DIV > ><BR>>> > > >> >> >> >>> >> <DIV > > dir=ltr><FONT > > face=Arial<BR>>> >> >> >> >>> >> > > size=2>element.setAttribute(SVGConstants.SVG_CX_ATTR,<BR>>> > > >> > > >> >> >>> >> > > xPosition);</FONT></DIV><BR>>> >> >> > > >> > > >>> >> <DIV dir=ltr><FONT face=Arial<BR>>> > > >> >> >> >>> >> > > size=2>element.setAttribute(SVGConstants.SVG_CY_ATTR,<BR>>> > > >> > > >> >> >>> >> > > yPosition);</FONT></DIV><BR>>> >> >> > > >> > > >>> >> <DIV dir=ltr><FONT face=Arial<BR>>> > > >> >> >> >>> >> > > size=2>element.setAttribute(SVGConstants.SVG_R_ATTR,<BR>>> > > >> > > >> >> >>> > > > radius);</FONT></DIV><BR>>> >> >> >> > > >>> >> <DIV dir=ltr><FONT face=Arial<BR>>> > > >> >> >> >>> >> > > size=2>element.setAttribute(SVGConstants.SVG_FILL_ATTR,<BR>>> > > >> > > >> >> >>> >> > > "red");</FONT></DIV><BR>>> >> >> >> > > >>> >> <DIV dir=ltr><FONT face=Arial<BR>>> > > >> >> >> >>> >><BR>>> >> > > >> > > >> ><BR>>> > > > > size=2>svgDocument.getDocumentElement.append(element);</FONT></D > IV><BR>>> > > >> >> >> >>> >> <DIV > > dir=ltr><FONT > > face=Arial size=2></FONT>&nbsp;</DIV><BR>>> > > >> > > >> >> >>> >> <DIV dir=ltr><FONT > > face=Arial > > size=2>Use code completion<BR>> or<BR>>> >> > > > the<BR>>> >> >> >> > Batik<BR>>> >> > > >> >> >>> >> Javadoc.&nbsp; Most of those > > SVGConstants references are<BR>>> >> > probably<BR>>> > > >> >> >> >>> >> > > wrong.</FONT></DIV><BR>>> >> >> >> > > >>> >> <DIV dir=ltr><FONT face=Arial > > size=2></FONT>&nbsp;</DIV><BR>>> >> > > >> > > >> >>> >> <DIV dir=ltr><FONT face=Arial > > size=2>Michael<BR>>> >> >> >> >> > > Bishop</FONT></DIV></DIV><BR>>> >> >> > > >> >>> >> <DIV dir=ltr><BR><BR>>> > > >> >> >> >>> >> <HR > > tabIndex=-1><BR>>> >> >> >> >>> > > >> > > <FONT face=Tahoma size=2><B>From:</B><BR>>> > > > [EMAIL PROTECTED]<BR>>> >> >> >> > > >>> > > >> [<A > > > href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]< > ;BR><B>Sent:</B> > > Sun<BR>>> > 2/19/2006<BR>>> >> >> >> > > > 3:07<BR>>> >> >> >> >>> >> > > PM<BR><B>To:</B><BR>>> >> >> >> > > >> > > > [email protected]<BR><B>Subject:</B><BR>& > gt;> > > >> >> >> >>> > RE:<BR>>> >> > > >> > > >> >>> >> > > Coordinates<BR></FONT><BR></DIV><BR>>> > > >> > > >> >> >>> >> <DIV><BR>>> >> > > >> >> >>> >> <P><FONT size=2>me > > again!<BR><BR>...I think I don't need<BR>> to<BR>>> > > >> >> >> > convert<BR>>> >> >> > > >> > > >>> > back<BR>>> >> >> >> >>> > > >> to<BR>>> >> >> >> >>> >> > > screen > > coordinates I should be<BR>able to use the<BR>> > > document<BR>>> > > >> >> >> >>> > coordinates,<BR>>> > > >> > > >> >> >>> >> but how<BR>>> >> > > >> > > >> >>> >> can I draw a red-spot<BR>(filled > > circle) > > and a given<BR>>> > location<BR>>> >> > > > on<BR>>> > > >> >> >> > the<BR>>> >> >> >> > > >>> >> canvas?<BR><BR>ThankU in<BR>> > > advance<BR><BR>yasmin<BR><BR>&gt;<BR>>> > > >> >> >> >>> > &lt;!DOCTYPE<BR>>> > > >> >> >> >>> >> HTML<BR>>> >> > > >> >> >>> >> PUBLIC "-//W3C//DTD HTML > > 3.2//EN"&gt;<BR>&gt;<BR>>> >> >> > > > &lt;HTML&gt;<BR>&gt;<BR>>> >> >> > > >> > > >>> >> &lt;HEAD&gt;<BR>&gt; &lt;META > > HTTP-EQUIV="Content-Type"<BR>>> >> >> >> > > >>> > > >> CONTENT="text/html;<BR>>> >> >> >> > > >>> > > >> > > > charset=iso-8859-1"&gt;<BR>&gt;<BR>&gt;<BR>&am > p;gt; > > &lt;META<BR>>> >> >> >> >>> > > > NAME="Generator"<BR>>> >> >> >> >>> > > >> > > CONTENT="MS Exchange Server version<BR>> > > 6.5.7226.0"&gt;<BR>&gt;<BR>>> >> >> > > >> > > >>> >> > > > &lt;TITLE&gt;Coordinates&lt;/TITLE&gt;<BR>&gt;<BR> > >> > > >> >> >> > > > &lt;/HEAD&gt;<BR>&gt;<BR>>> >> >> > > >> > > >>> >> &lt;BODY&gt;<BR>&gt; &lt;DIV > > id=idOWAReplyText8269<BR>>> >> >> >> >> > > dir=ltr&gt;<BR>&gt;<BR>>> >> >> >> > > >>> >> &lt;DIV<BR>>> >> >> >> > > >>> >> dir=ltr&gt;&lt;FONT face=Arial > > color=#000000<BR>> size=2&gt;Not<BR>>> >> > > > sure;<BR>>> >> >> >> >>> > > > haven't<BR>>> >> >> >> >>> >> > > done<BR>&gt; it in<BR>&gt; reverse.&amp;nbsp; > > There is > > a<BR>>> >> > method<BR>>> >> >> >> > > > > > for<BR>>> >> >> >> >> an<BR>>> > > >> > > >> >> >>> >> SVGLocatable called > > getScreenCTM<BR>&gt; that<BR>&gt;<BR>> > > may<BR>>> > > > be<BR>>> >> > of<BR>>> >> >> > > >> > > >>> >> > > use.&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; > > &lt;DIV<BR>>> >> > > > dir=ltr&gt;&lt;FONT<BR>>> > > >> >> >> >>> >> face=Arial<BR>>> > > >> > > >> >> >>> >> > > > size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR& > gt;&gt;<BR>>> > > > &lt;DIV<BR>>> >> >> >> >>> > > >> > > dir=ltr&gt;&lt;FONT face=Arial size=2&gt;Michael<BR>>> > > >> >> >> >>> >> > > > Bishop&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;<BR> > ;&gt;<BR>> > > &lt;DIV<BR>>> >> >> >> >>> >> > > dir=ltr&gt;&lt;BR&gt;<BR>&gt; &lt;HR<BR>>> > > > > > tabIndex=-1&gt;<BR>&gt;<BR>>> >> >> > > >> > > > &lt;FONT<BR>>> >> >> >> >>> > > >> > > face=Tahoma > > size=2&gt;&lt;B&gt;From:&lt;/B&gt;<BR>>> > > >> >> >> >>> >> > > [EMAIL PROTECTED]<BR>&gt;<BR>>> >> >> > > >> > > >>> >> [<A<BR>>> >> >> >> > > >>> > > >><BR>>> >> >> >> >>> > > ><BR>>> > > >> >> >> >><BR>>> >> >> >> > > ><BR>>> >> >> ><BR>>> >> > > ><BR>>> > > ><BR>> href="<A > > > href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>"> > ;<A > > > href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>< > /A><BR>>> > > >> >> >> >>> > > > ]&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt;<BR>>> > > >> > > >> >> >>> >> Sun 2/19/2006 > > 1:08<BR>&gt;<BR>>> > > > PM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt;<BR>>> > > >> > > >> >> >>> >><BR>>> >> >> > > >> > > >>> ><BR>>> >> >> >> > > >><BR>>> > > >> >> >> ><BR>>> >> >> > > ><BR>>> > > >> ><BR>>> ><BR>> > > > [email protected]&lt;BR&gt;&lt;B&gt;Subject > :&lt;/B&gt;<<BR>>> > > >> >> >> >>> > BR>&gt;<BR>>> > > >> > > >> >> >>> >><BR>>> >> > > > > Coordinates&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt; > /DIV&gt;<BR>&gt;<BR>>> > > >> >> >> >>> >> > > &lt;DIV&gt;<BR>&gt; &lt;P&gt;&lt;FONT > > size=2&gt;Hi<BR>> Michael<BR>>> >> >> >> > > >>> >> Bishop,&lt;BR&gt;&lt;BR&gt;...I've > > converted my<BR>>> > screen<BR>&gt;<BR>>> > > >> > > >> >> >>> > coordinates<BR>>> >> > > >> > > >> >>> >> to my<BR>>> >> >> > > >> > > >>> >> document coordinates - now&lt;BR&gt;I'm > > trying > > to<BR>>> >> > convert<BR>&gt;<BR>>> > > >> > > >> >> >>> >> document<BR>&gt; > > coordinates > > to screen coordinate so<BR>> that<BR>>> >> >> > > >> > > >>> > at&lt;BR&gt;that<BR>>> >> >> > > >> >>> >> point<BR>>> >> >> > > >> > > >>> >> on the map, I<BR>&gt; can > > draw<BR>&gt; > > a red_spot on the<BR>>> >> >> >> > > > canvas...any<BR>>> >> >> >> >>> >> > > ideas?&lt;BR&gt;&lt;BR&gt;ThankU > > in<BR>&gt;<BR>>> >> >> >> >>> > > >><BR>>> >> >> >> >>> > > ><BR>>> > > >> >> >> >><BR>>> >> >> >> > > ><BR>>> >> >> ><BR>>> >> > > ><BR>>> > > ><BR>> > > > advance&lt;BR&gt;&lt;BR&gt;yasmin&lt;BR&gt;&lt;B > R&gt;&lt;BR&gt;---------<BR>>> > > >> >> >> >>> ><BR>>> >> >> > > >> >><BR>>> >> >> >> ><BR>>> > > >> >> ><BR>>> >> ><BR>>> ><BR>> > > ------------------------------------------------------------&lt;BR& > ;gt;To<BR>>> > > >> >> >> >>> > > > <BR>&gt;<BR>>> > > >> >> >> >>> >> unsubscribe, > > e-mail:<BR>>> >> >> >> >>> > > >><BR>>> > > >> >> >> ><BR>>> > > > > [EMAIL PROTECTED]&lt;BR&gt;For<BR> > ;&gt;<BR>>> > > >> >> >> >>> >> additional<BR>>> > > >> > > >> >> >>> >> commands, > > e-mail:<BR>&gt;<BR>>> >> >> >> > > >>> > > >><BR>>> >> >> >> >>> > > ><BR>>> > > >> >> >> >><BR>>> >> >> >> > > ><BR>>> >> >> ><BR>>> >> > > ><BR>>> > > ><BR>> > > > [EMAIL PROTECTED]&lt;BR&gt;&lt;/FONT&g > t;&lt;/P&gt;<BR>>> > > >> >> >> >>> > > > &lt;/DIV&gt;<BR>&gt;<BR>&gt;<BR>>> > > >> > > >> >> >>> >> > > &lt;/BODY&gt;<BR>&gt;<BR>>> >> >> > > >> > > >>> >><BR>>> >> >> >> >>> > > ><BR>>> >> >> >> >><BR>>> >> > > >> >> ><BR>>> >> >> ><BR>>> > > >> > > ><BR>>> ><BR>> > > > &lt;/HTML&gt;<BR><BR><BR><BR>--------------- > ----------------------------<BR>>> > > >> >> >> >>> > > > --------------------------<BR>To<BR>>> >> >> > > >> > > >>> >> unsubscribe, e-mail:<BR>>> >> >> > > >> >>> > > > [EMAIL PROTECTED]<BR>For<BR>>> > > >> > > >> >> >>> >> additional commands, > > e-mail:<BR>>> > > >> >> >> >>> >><BR>>> > > > > [EMAIL PROTECTED]<BR></FONT></P>< > /DIV><BR>>> > > >> >> >> >>> >><BR>>> >> > > >> > > >> >>> >> </BODY><BR>>> >> >> > > >> >>> >> </HTML><BR>>> >> >> > > >> >>> ><BR>>> >> >> >> > > >>> > > ><BR>>> >> >> >> >>> ><BR>>> > > >> >> >> >>> ><BR>>> >> >> > > >> ><BR>>> >> ><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> >>> > To unsubscribe, > > e-mail:<BR>>> > > >> >> >> > > > [EMAIL PROTECTED]<BR>>> >> > > >> > > >> >>> > For additional commands, e-mail:<BR>>> > > >> > > >> >> >> > > [EMAIL PROTECTED]<BR>>> > > >> >> >> >>> ><BR>>> >> >> > > >> >>> ><BR>>> >> >> >> > > ><BR>>> >> ><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> >>> > To unsubscribe, > > e-mail:<BR>>> > > >> >> >> > > > [EMAIL PROTECTED]<BR>>> >> > > >> > > >> >>> > For additional commands, e-mail:<BR>>> > > >> > > >> >> >> > > [EMAIL PROTECTED]<BR>>> > > >> >> >> >>> ><BR>>> >> >> > > >> >>> ><BR>>> >> >> >> > > >>> > > ><BR>>> >> >> >> >>><BR>>> > > >> > > >> >> >>><BR>>> >> >> >> > > >>><BR>>> >> >> >> > > >>><BR>>> > > >> >> ><BR>>> > > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> >>> To unsubscribe, > > e-mail:<BR>>> > > >> >> >> > > > [EMAIL PROTECTED]<BR>>> >> > > >> > > >> >>> For additional commands, e-mail:<BR>>> > > >> > > >> >> > [EMAIL PROTECTED]<BR>>> > > >> >> >> >>><BR>>> >> >> > > >> > > >><BR>>> >> >> >> >><BR>>> > > >> > > >> >> >><BR>>> >> ><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> >> To unsubscribe, e-mail:<BR>>> > > >> > > >> > [EMAIL PROTECTED]<BR>>> > > >> >> >> >> For additional commands, > > e-mail:<BR>>> > > >> >> >> > > > [EMAIL PROTECTED]<BR>>> >> >> > > >> > > >><BR>>> >> >> >> >><BR>>> > > >> > > >> >> >><BR>>> >> >> >> > > ><BR>>> >> >> >> ><BR>>> >> > > >> > > >> ><BR>>> >> >> >> ><BR>>> > > >> > > ><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> > To unsubscribe, e-mail:<BR>>> > > >> > > > [EMAIL PROTECTED]<BR>>> >> > > >> >> > For additional commands, e-mail:<BR>>> > > >> > > >> > [EMAIL PROTECTED]<BR>>> >> > > >> >> ><BR>>> >> >> >> > > ><BR>>> > > >> ><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> > To unsubscribe, e-mail:<BR>>> > > >> > > > [EMAIL PROTECTED]<BR>>> >> > > >> >> > For additional commands, e-mail:<BR>>> > > >> > > >> > [EMAIL PROTECTED]<BR>>> >> > > >> >> ><BR>>> >> >> >> > > ><BR>>> > > >> >> >> ><BR>>> >> >> > > >><BR>>> >> >> >><BR>>> >> > > >> > > >><BR>>> >> >> >><BR>>> > > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> >> To unsubscribe, e-mail:<BR>>> >> > > > > > [EMAIL PROTECTED]<BR>>> >> > > >> > > >> For additional commands, e-mail:<BR>>> >> > > > [EMAIL PROTECTED]<BR>>> >> >> > > >><BR>>> >> >> ><BR>>> >> >> > > ><BR>>> >> >> ><BR>>> > > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> > To unsubscribe, e-mail:<BR>>> > > > [EMAIL PROTECTED]<BR>>> >> > > >> > > > For additional commands, e-mail:<BR>>> >> > > > [EMAIL PROTECTED]<BR>>> >> >> > > ><BR>>> >> >> ><BR>>> >> >> > > ><BR>>> >> >><BR>>> >> > > >><BR>>> > > >> >><BR>>> >> >><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> >> To unsubscribe, e-mail:<BR>>> > > > [EMAIL PROTECTED]<BR>>> >> > > >> For > > additional commands, e-mail:<BR>>> > > > [EMAIL PROTECTED]<BR>>> >> > > >><BR>>> >> ><BR>>> >> ><BR>>> > > >> ><BR>> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> > To unsubscribe, e-mail:<BR>> > > [EMAIL PROTECTED]<BR>>> >> > > > For > > additional commands, e-mail:<BR>>> > > > [EMAIL PROTECTED]<BR>>> >> > > ><BR>>> > > >> ><BR>>> >> ><BR>>> >><BR>>> > > >><BR>>> >><BR>>> >> > > ---------------------------------------------------------------------<BR>& > gt;> > > >> To unsubscribe, e-mail:<BR>> > > [EMAIL PROTECTED]<BR>>> >> For > > additional commands, e-mail:<BR>> > > [EMAIL PROTECTED]<BR>>> >><BR>>> > > ><BR>>> ><BR>>> > > > ---------------------------------------------------------------------<BR>& > gt;> > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED]<BR>>> > For > > additional > > commands, e-mail:<BR>> > > [EMAIL PROTECTED]<BR>>> > > ><BR>>> ><BR>>> > > ><BR>>><BR>><BR>>><BR>>> > > ---------------------------------------------------------------------<BR>& > gt;> > > To unsubscribe, e-mail: > > [EMAIL PROTECTED]<BR>>> For additional > > commands, e-mail: > > > [EMAIL PROTECTED]<BR>>><BR>><BR>><BR>> > > ---------------------------------------------------------------------<BR>& > gt; > > To > > unsubscribe, e-mail: > > [EMAIL PROTECTED]<BR>> For > > additional commands, e-mail: > > > [EMAIL PROTECTED]<BR>><BR>><BR>><BR><BR><BR>< > BR>---------------------------------------------------------------------<BR> > To > > unsubscribe, e-mail: [EMAIL PROTECTED]<BR>For > > additional commands, e-mail: > > [EMAIL PROTECTED]<BR></FONT></P></DIV> > > > > </BODY> > > </HTML> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
