Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: 
java.lang.Object
  extended by org.apache.batik.svggen.SVGGraphicContext
All Implemented Interfaces:
ErrorConstants, CSSConstants, SVGConstants, XMLConstants

public class SVGGraphicContext
extends java.lang.Object
implements SVGConstants, ErrorConstants

Represents the SVG equivalent of a Java 2D API graphic context attribute.


Constructor Detail

SVGGraphicContext

public SVGGraphicContext(java.util.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(java.util.Map groupContext,
                         java.util.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 java.util.Map getContext()
Returns:
set of all attributes.

getGroupContext

public java.util.Map getGroupContext()
Returns:
set of attributes that can be set on a group

getGraphicElementContext

public java.util.Map getGraphicElementContext()
Returns:
set of attributes that can be set on leaf node

getTransformStack

public TransformStackElement[] getTransformStack()
Returns:
set of TransformStackElement for this context

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: