Element element = svgDocument.createElement(SVGConstants.SVG_CIRCLE_TAG);
element.setAttribute(SVGConstants.SVG_CX_ATTR, xPosition);
element.setAttribute(SVGConstants.SVG_CY_ATTR, yPosition);
element.setAttribute(SVGConstants.SVG_R_ATTR, radius);
element.setAttribute(SVGConstants.SVG_FILL_ATTR, "red");
svgDocument.getDocumentElement.append(element);
 
Use code completion or the Batik Javadoc.  Most of those SVGConstants 
references are probably wrong.
 
Michael Bishop

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sun 2/19/2006 3:07 PM
To: [email protected]
Subject: RE: Coordinates



me again!

...I think I don't need to convert back to screen coordinates I should be
able to use the document coordinates, but how can I draw a red-spot
(filled circle) and a given location on the canvas?

ThankU in advance

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>Coordinates</TITLE>
> </HEAD>
> <BODY>
> <DIV id=idOWAReplyText8269 dir=ltr>
> <DIV dir=ltr><FONT face=Arial color=#000000 size=2>Not sure; haven't done
> it in
> reverse.&nbsp; There is a method for an SVGLocatable called getScreenCTM
> that
> may be of use.</FONT></DIV>
> <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</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> Sun 2/19/2006 1:08
> PM<BR><B>To:</B> [email protected]<BR><B>Subject:</B>
> Coordinates<BR></FONT><BR></DIV>
> <DIV>
> <P><FONT size=2>Hi Michael Bishop,<BR><BR>...I've converted my screen
> coordinates to my document coordinates - now<BR>I'm trying to convert
> document
> coordinates to screen coordinate so that at<BR>that point on the map, I
> can draw
> a red_spot on the canvas...any ideas?<BR><BR>ThankU in
> advance<BR><BR>yasmin<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]


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  • RE: Coordinates Bishop, Michael W. CONTR J9C880

Reply via email to