You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Stuart McMahon <sm...@zandar.com> on 2003/03/07 11:16:15 UTC

an element to draw points...

Hi,
I am trying to draw points on the JSVGCanvas. Using small rectangles is one
option but I am checking in case there is an easier method.
I thought the path element would do the trick but it always joins the
points.
Is there a way to mark x,y points and not draw the lines in between?

thanks,
Stuart.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: an element to draw points...

Posted by Stuart McMahon <sm...@zandar.com>.
thankyou Thomas that works a treat!

-----Original Message-----
From: Thomas E Deweese [mailto:thomas.deweese@kodak.com]
Sent: 07 March 2003 14:10
To: Batik Users
Subject: RE: an element to draw points...


>>>>> "SM" == Stuart McMahon <sm...@zandar.com> writes:

SM> Hi, I am trying to draw points on the JSVGCanvas. Using small
SM> rectangles is one option but I am checking in case there is an
SM> easier method.  I thought the path element would do the trick but
SM> it always joins the points.  Is there a way to mark x,y points and
SM> not draw the lines in between?

    Well you can fake it with something like:

    <path d="M0,0h1 M10,10h1 M30 30h1" 
          stroke-width="1" fill="none" stroke="black"/>

    This will draw a 1x1 line at (0,0) (10,10) (30,30)


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: an element to draw points...

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "SM" == Stuart McMahon <sm...@zandar.com> writes:

SM> Hi, I am trying to draw points on the JSVGCanvas. Using small
SM> rectangles is one option but I am checking in case there is an
SM> easier method.  I thought the path element would do the trick but
SM> it always joins the points.  Is there a way to mark x,y points and
SM> not draw the lines in between?

    Well you can fake it with something like:

    <path d="M0,0h1 M10,10h1 M30 30h1" 
          stroke-width="1" fill="none" stroke="black"/>

    This will draw a 1x1 line at (0,0) (10,10) (30,30)


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org