You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Robert D <r_...@hotmail.com> on 2002/08/01 20:52:30 UTC

Re: What does DEFAULT_MAX_GC_OVERRIDES in SVGGenerator do?

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 <th...@kodak.com>
>Reply-To: batik-dev@xml.apache.org
>To: batik-dev@xml.apache.org
>Subject: What does DEFAULT_MAX_GC_OVERRIDES  in SVGGenerator do?
>Date: Thu, 1 Aug 2002 13:18:59 -0400
>
> >>>>> "RD" == Robert D <r_...@hotmail.com> 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: batik-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-dev-help@xml.apache.org




Robert A. DiBlasi


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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