SUMMARY:
java.lang.Object
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.
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 groupgraphicElementContext
- 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.
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