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 Marshall Keith J NPRI <Ma...@Npt.NUWC.Navy.Mil> on 2008/01/10 17:33:14 UTC

GenericText Nodes

Does anyone happen to know how to change a style property for a  GenericText node? I tried casting it to a SVGStylable node but I'm getting a class cast exception.

Thanks,
Keith



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


Re: GenericText Nodes

Posted by Cameron McCormack <ca...@mcc.id.au>.
Hi Keith.

Marshall Keith J NPRI:
> Does anyone happen to know how to change a style property for a
> GenericText node? I tried casting it to a SVGStylable node but I'm
> getting a class cast exception.

You need to set the style on the enclosing <text> (or <tspan>, etc.)
element, which does implement SVGStylable.

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

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