org.apache.batik.svggen

Class SVGGraphicContext

public class SVGGraphicContext extends Object implements SVGConstants, ErrorConstants

Represents the SVG equivalent of a Java 2D API graphic context attribute.
Constructor Summary
SVGGraphicContext(Map context, TransformStackElement[] transformStack)
SVGGraphicContext(Map groupContext, Map graphicElementContext, TransformStackElement[] transformStack)
Method Summary
MapgetContext()
MapgetGraphicElementContext()
MapgetGroupContext()
TransformStackElement[]getTransformStack()

Constructor Detail

SVGGraphicContext

public SVGGraphicContext(Map context, TransformStackElement[] transformStack)

Parameters: context Set of style attributes in this context. transformStack Sequence of transforms that where applied to create the context's current transform.

SVGGraphicContext

public SVGGraphicContext(Map groupContext, Map graphicElementContext, TransformStackElement[] transformStack)

Parameters: groupContext Set of attributes that apply to group graphicElementContext Set of attributes that apply to elements but not to groups (e.g., opacity, filter). transformStack Sequence of transforms that where applied to create the context's current transform.

Method Detail

getContext

public Map getContext()

Returns: set of all attributes.

getGraphicElementContext

public Map getGraphicElementContext()

Returns: set of attributes that can be set on leaf node

getGroupContext

public Map getGroupContext()

Returns: set of attributes that can be set on a group

getTransformStack

public TransformStackElement[] getTransformStack()

Returns: set of TransformStackElement for this context

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.