xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raf...@blueyonder.co.uk
Subject RE: removing elements
Date Thu, 13 Apr 2006 19:35:53 GMT
Avid,

...would it be better if I removed all the 'circle Group' and then add it
again with only the circles I want to display...?

yasmin


> Yasmin,
> If you have some id information associated with the circles then you could
> remove it like this:
>
> Element circleGroup
>
> Element child = (Element) circleGroup.getFirstChild()
> while (child != null) {
> 	if child.getAttributeNS(SVG_NS, "id" ) == "your id"
> 	circleGroup.removeChild(child);
> }
>
> I think this would work but I haven't tested it.
>
> Javid
>
> -----Original Message-----
> From: rafiqy@blueyonder.co.uk [mailto:rafiqy@blueyonder.co.uk]
> Sent: Thursday, April 13, 2006 10:57 AM
> To: batik-users@xmlgraphics.apache.org
> Subject: removing elements
>
>
> Hi All,
>
> Can someone plz advice me how to remove elements from a group, to make
> myself clear, ...I have added a 'CircleGroup', to my svgDocument, now I
> want to remove some of the circles from this group????
>
> Thanx
>
> yasmin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>




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


Mime
View raw message