Thomas, Thank you for the quick responce....your description was right on target!!
I understand now :-) <Thomas_wrote> Remember that since the Java 2D Graphics class is stateful the >hope is that you will draw lots of objects with this 'large' set of >new attributes. </Thomas_wrote> This is very good advice.... We all learn by sharing what we know Robert A. DiBlasi http://www.svgnotebook.com >From: Thomas E Deweese <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: What does DEFAULT_MAX_GC_OVERRIDES in SVGGenerator do? >Date: Thu, 1 Aug 2002 13:18:59 -0400 > > >>>>> "RD" == Robert D <[EMAIL PROTECTED]> writes: > >RD> Controls the policy for grouping nodes. Once the number of >RD> attributes overridden by a child element is greater than >RD> DEFAULT_MAX_GC_OVERRIDES,a new group is created. @see >RD> org.apache.batik.svggen.DOMTreeManager > > [...] > >RD> Controls the policy for grouping nodes (SVG "<g>" elements?) >RD> but.....what is ment by : Once the number of attributes overridden >RD> by a child element is greater than DEFAULT_MAX_GC_OVERRIDES,a new >RD> group is created. > >RD> any help ...would be nice :-) > >RD> public static final int DEFAULT_MAX_GC_OVERRIDES = 3; > > If you draw a new item and it requires more than 3 attributes be >set on it then it creates a new group with those attributes and makes >the item a child of the new group (with no attributes set). > > Example: If you set the fill paint you might get: > > <rect fill="blue" ...> > > Example: If you set the stroke paint and set a new Stroke object > you will likely get: > > <g stroke="red" stroke-width="2" dash-offset="1" > dash-array="1 1"> > > <rect ...> > </g> > > Remember that since the Java 2D Graphics class is stateful the >hope is that you will draw lots of objects with this 'large' set of >new attributes. > > Hope this helps... > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] Robert A. DiBlasi _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]