Package org.apache.batik.svggen


package org.apache.batik.svggen
Provides an API on top of the AbstractGraphics2D to translate Java 2D primitives into the SVG format.
  • Class
    Description
    This abstract implementation of the ImageHandler interface is intended to be the base class for ImageHandlers that generate image files for all the images they handle.
    Abstract class with common utility methods used by subclasses for specific convertion operations.
    Abstract class with common utility methods used by subclasses for specific convertion operations.
    Extends the default ImageHandler interface with calls to allow caching of raster images in generated SVG content.
    This subclass of ImageHandlerBase64Encoder implements functionality specific to the cached version of the image encoder.
    GenericImageHandler which caches JPEG images.
    GenericImageHandler which caches PNG images.
    Inner class used to key clip definitions in a Map.
    This class is a default implementation of the GenericImageHandler for handlers implementing a caching strategy.
    The ErrorHandler interface allows you to specialize how the error will be set on an SVG Element.
    This implementation of the ExtensionHandler interface always returns null Nodes.
    This class provides a default implementation of the ImageHandler interface simply puts a place holder in the xlink:href attribute and sets the width and height of the element.
    The DefaultStyleHandler class provides the default way to style an SVG Element.
    This class is used by the Graphics2D SVG Generator to manage a group of Nodes that can later be added to the SVG DOM Tree managed by the DOMTreeManager.
    This class is used by the SVGGraphics2D SVG Generator to manage addition of new Nodes to the SVG DOM Tree.
     
    The ErrorHandler interface allows you to specialize how the error will be set on an SVG Element.
    The ExtensionHandler interface allows the user to handle Java 2D API extensions that map to SVG concepts (such as custom Paints, Composites or BufferedImageOp filters).
    Extends the default ImageHandler interface with calls to allow caching of raster images in generated SVG content.
    This class implements caching functionality for raster images.
    Cache implementation for images embedded in the SVG file.
    Cache implementation for file-based images.
    Instances of this class are created to keep track of the set of images processed by the ImageHandler.
    This interface allows the user of the Graphics2D SVG generator to decide how to handle images that it renders.
    This implementation of ImageHandler encodes the input image as a PNG image first, then encodes the PNG image using Base64 encoding and uses the result to encoder the image url using the data protocol.
    This implementation of the abstract AbstractImageHandlerEncoder class creates JPEG images in the image directory and sets the url pointing to that file in the xlink:href attributes of the image elements it handles.
    This implementation of the abstract AbstractImageHandlerEncoder class creates PNG images in the image directory and sets the url pointing to that file in the xlink:href attributes of the image elements it handles.
     
    Implements the GenericImageHandler interface and only uses <image> elements.
    The StyleHandler interface allows you to specialize how the style will be set on an SVG Element.
    Utility class that converts an AlphaComposite object into a set of SVG properties and definitions.
    Utility class that converts an Arc2D object into a corresponding SVG element, i.e., a path with an elliptical arc and optionally lines..
    Represents an SVG attribute and provides convenience methods to determine whether or not the attribute applies to a given element type.
    Repository of SVG attribute descriptions, accessible by name.
    Utility class that converts a Java BasicStroke object into a set of SVG style attributes
    Utility class that converts a BufferedImageOp object into an SVG filter.
    Utility class that converts a Path object into an SVG clip
    Describes an SVG clip
    Utility class that converts a Color object into a set of corresponding SVG attributes.
    Utility class that converts a Composite object into a set of SVG properties and definitions.
    Used to represent an SVG Composite.
    Defines the interface for classes that are able to convert part or all of a GraphicContext.
    Utility class that converts a ConvolveOp object into an SVG filter descriptor.
    This utility class converts a standard SVG document that uses attribute into one that uses the CSS style attribute instead.
    Utility class that converts an custom BufferedImageOp object into an equivalent SVG filter.
    Utility class that converts an custom Composite object into a set of SVG properties and definitions.
    Utility class that converts an custom Paint object into a set of SVG properties and definitions.
    Defines the interface for a set of SVG attributes and related definitions.
    Utility class that converts an Ellipse2D object into a corresponding SVG element, i.e., a circle or an ellipse.
    Defines the interface for classes that are able to convert a BufferedImageOp filter.
    Used to represent an SVG Composite.
    Utility class that converts a Font object into a set of SVG font attributes
    this helper-class implements a set of characters.
    Describes an SVG font
    This class contains all non graphical contextual information that are needed by the SVGGraphics2D to generate SVG from Java 2D primitives.
    Class to describe the GraphicContext defaults to be used.
    Represents the SVG equivalent of a Java 2D API graphic context attribute.
    This class performs the task of converting the state of the Java 2D API graphic context into a set of graphic attributes.
     
    This implementation of the java.awt.Graphics2D abstract class allows users to generate SVG (Scalable Vector Graphics) content from Java code.
    Thrown when an SVG Generator method receives an illegal argument in parameter.
    Thrown when an SVG Generator method receives an illegal argument in parameter.
    Describes a set of SVG hints
    Generates id for an arbitrary number of prefix
    Utility class that converts a Line2D object into a corresponding SVG line element.
    Utility class that converts a Java GradientPaint into an SVG linear gradient element
    Utility class that converts a LookupOp object into an SVG filter descriptor.
    Utility class that converts a Paint object into an SVG element.
    Used to represent an SVG Paint.
    Utility class that converts a Shape object into an SVG path element.
    Utility class that converts a Polygon object into an SVG element.
    Utility class that converts a Rectangle2D or RoundRectangle2D object into an SVG element.
    Utility class that converts a RenderingHints object into a set of SVG properties.
    Utility class that converts a RescaleOp object into an SVG filter descriptor.
    Utility class that converts a Shape object into the corresponding SVG element.
    Used to represent an SVG Paint.
    Defines the set of attributes from Exchange SVG that are defined as styling properties in Stylable SVG.
    Contains the definition of the SVG tags and attribute names.
    Utility class that converts a TexturePaint object into an SVG pattern element
    Utility class that converts a GraphicContext transform stack into an SVG transform attribute.
    Describes an SVG transform
    This class offers a way to create an SVG document with grouping that reflects the Swing composite structure (container/components).
    Writes a Node as text output.