org.apache.batik.svggen |
SVGGraphics2D Package
Provides an API on top of the
{@link org.apache.batik.ext.awt.g2d.AbstractGraphics2D} to translate
Java 2D primitives into the SVG format.
|
Java Source File Name | Type | Comment |
AbstractImageHandlerEncoder.java | Class | 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. |
AbstractSVGConverter.java | Class | Abstract class with common utility methods used by subclasses
for specific convertion operations. |
AbstractSVGFilterConverter.java | Class | Abstract class with common utility methods used by subclasses
for specific convertion operations. |
ATransform.java | Class | This test validates the convertion of Java 2D AffineTransform into SVG
Shapes. |
AttributedCharacterIterator.java | Class | This test validates the convertion of Java 2D AffineTransform into SVG
Shapes. |
BasicShapes.java | Class | This test validates the convertion of Java 2D shapes into SVG
Shapes. |
BasicShapes2.java | Class | This test validates the convertion of Java 2D shapes into SVG
Shapes. |
BEExample.java | Class | This test validates the convertion of Java 2D AffineTransform into SVG
Shapes. |
BStroke.java | Class | |
Bug17965.java | Class | This test validates fix to Bug #17965 and checks that
attributes which do not apply to given element (eg., font-family
does not apply to ) are not written out. |
Bug21259.java | Class | Checks that the streamed root is not removed from its parent
as shown by bug report 21259. |
Bug4389.java | Class | This test validates drawImage conversions. |
Bug4945.java | Class | This test validates fix to Bug #4945 which checks that
the generator handles Font transform. |
Bug6535.java | Class | |
CachedImageHandler.java | Interface | Extends the default ImageHandler interface with calls to
allow caching of raster images in generated SVG content. |
CachedImageHandlerBase64Encoder.java | Class | This subclass of
ImageHandlerBase64Encoder implements
functionality specific to the cached version of the image
encoder. |
CachedImageHandlerJPEGEncoder.java | Class | GenericImageHandler which caches JPEG images. |
CachedImageHandlerPNGEncoder.java | Class | GenericImageHandler which caches PNG images. |
Clip.java | Class | This test validates convertion of Java 2D clip inot SVG clipPath
definition and attributes. |
Color1.java | Class | This test validates convertion of Java 2D Color into SVG fill,
stroke and opacity attributes. |
Color2.java | Class | This test color opacity on fill and strokes, because this
is handled differently in the Java 2D API than in SVG. |
DefaultCachedImageHandler.java | Class | This class is a default implementation of the GenericImageHandler
for handlers implementing a caching strategy. |
DefaultErrorHandler.java | Class | The ErrorHandler interface allows you to specialize
how the error will be set on an SVG Element . |
DefaultExtensionHandler.java | Class | This implementation of the ExtensionHandler interface always
returns null Nodes. |
DefaultImageHandler.java | Class | 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. |
DefaultStyleHandler.java | Class | The DefaultStyleHandler class provides the default
way to style an SVG Element . |
DOMGroupManager.java | Class | 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.
There are two rules that control how children nodes are
added to the group managed by this class:
+ Children node are added to the group as long as
there is no more than n graphic context overrides needed to
describe the children style. |
DOMTreeManager.java | Class | This class is used by the SVGGraphics2D SVG Generator to manage
addition of new Nodes to the SVG DOM Tree. |
DoubleString.java | Class | |
DoubleStringPerformanceTest.java | Class | This test checks that there is no performance degradation in the
doubleString utility method. |
DrawImage.java | Class | This test validates drawImage conversions. |
ErrorConstants.java | Interface | |
ErrorHandler.java | Interface | The ErrorHandler interface allows you to specialize
how the error will be set on an SVG Element . |
ExtensionHandler.java | Interface | 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). |
Font1.java | Class | This test validates the convertion of Java 2D Fonts into
SVG font attributes. |
Font2.java | Class | This test validates the convertion of Java 2D text into
SVG Shapes, one of the options of the SVGGraphics2D constructor. |
GeneratorContext.java | Class | Testing customization of the SVGGeneratorContext and generation of
SVG Fonts. |
GenericImageHandler.java | Interface | Extends the default ImageHandler interface with calls to
allow caching of raster images in generated SVG content. |
GetRootTest.java | Class | This test validates that the SVGGraphics2D generates the same result
with the two versions of its getRoot method. |
Gradient.java | Class | This test validates the convertion of Java 2D GradientPaints
into SVG linearGradient definition and reference. |
GraphicObjects.java | Class | |
GVector.java | Class | This test validates the convertion of Java 2D GlyphVectors
SVG Shapes. |
IdentityTest.java | Class | This test validates the convertion of Java 2D AffineTransform into SVG
Shapes. |
ImageCacher.java | Class | This class implements caching functionality for raster images. |
ImageHandler.java | Interface | This interface allows the user of the Graphics2D SVG generator
to decide how to handle images that it renders. |
ImageHandlerBase64Encoder.java | Class | 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. |
ImageHandlerJPEGEncoder.java | Class | 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. |
ImageHandlerPNGEncoder.java | Class | 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. |
JPainterCompare.java | Class | |
JPainterComponent.java | Class | Simple component which displays the rendering created by
a Painter. |
Lookup.java | Class | This test validates the convertion of Java 2D LookupOp
into an SVG filer. |
Messages.java | Class | This class manages the message for the test.svg module. |
NegativeLengths.java | Class | This test validates the convertion of Java 2D negative length values:
- On rectangles: a negative width or height makes the rectangle invisible.
- On rounded rectangles: a negative width or height makes the rectangle invisible.
- On ellipses: a negative width or height makes the ellipse invisible
- On 3D rect: a negative width *and* height makes the rectangle invisible. |
NullOp.java | Class | |
Painter.java | Interface | Interface expected from object that can perform an arbitrary
rendering sequence. |
Paints.java | Class | This test validates the convertion of Java 2D paints
into an SVG attributes. |
Rescale.java | Class | This test validates the convertion of Java 2D RescaleOp
into an SVG filer. |
RHints.java | Class | This test validates the convertion of Java 2D RenderingHints
into an SVG attributes. |
ShearTest.java | Class | Testing shear. |
ShowGraphics2DOutput.java | Class | Checks that the content generated from the SVGGraphics2D and to which
an event handler has been added can be processed by Batik. |
SimpleImageHandler.java | Class | Implements the GenericImageHandler interface and only
uses <image> elements. |
StyleHandler.java | Interface | The StyleHandler interface allows you to specialize
how the style will be set on an SVG Element . |
SVGAccuracyTest.java | Class | This test validates that a given rendering sequence, modeled
by a Painter is properly converted to an SVG document
by comparing the generated SVG document to a known, valid
SVG reference. |
SVGAccuracyTestValidator.java | Class | |
SVGAlphaComposite.java | Class | Utility class that converts an AlphaComposite object into
a set of SVG properties and definitions. |
SVGArc.java | Class | Utility class that converts an Arc2D object into
a corresponding SVG element, i.e., a path with an elliptical arc
and optionally lines.. |
SVGAttribute.java | Class | Represents an SVG attribute and provides convenience
methods to determine whether or not the attribute applies
to a given element type. |
SVGAttributeMap.java | Class | Repository of SVG attribute descriptions, accessible by
name. |
SVGBasicStroke.java | Class | |
SVGBufferedImageOp.java | Class | Utility class that converts a BufferedImageOp object into
an SVG filter. |
SVGClip.java | Class | |
SVGClipDescriptor.java | Class | |
SVGColor.java | Class | Utility class that converts a Color object into a set of
corresponding SVG attributes. |
SVGComposite.java | Class | Utility class that converts a Composite object into
a set of SVG properties and definitions. |
SVGCompositeDescriptor.java | Class | Used to represent an SVG Composite. |
SVGConverter.java | Interface | Defines the interface for classes that are able to convert
part or all of a GraphicContext. |
SVGConvolveOp.java | Class | Utility class that converts a ConvolveOp object into
an SVG filter descriptor. |
SVGCSSStyler.java | Class | This utility class converts a standard SVG document that uses
attribute into one that uses the CSS style attribute instead. |
SVGCustomBufferedImageOp.java | Class | Utility class that converts an custom BufferedImageOp object into
an equivalent SVG filter. |
SVGCustomComposite.java | Class | Utility class that converts an custom Composite object into
a set of SVG properties and definitions. |
SVGCustomPaint.java | Class | Utility class that converts an custom Paint object into
a set of SVG properties and definitions. |
SVGDescriptor.java | Interface | Defines the interface for a set of SVG attributes and
related definitions. |
SVGEllipse.java | Class | Utility class that converts an Ellipse2D object into
a corresponding SVG element, i.e., a circle or an ellipse. |
SVGFilterConverter.java | Interface | Defines the interface for classes that are able to convert
a BufferedImageOp filter. |
SVGFilterDescriptor.java | Class | Used to represent an SVG Composite. |
SVGFont.java | Class | |
SVGFontDescriptor.java | Class | |
SVGGeneratorContext.java | Class | This class contains all non graphical contextual information that
are needed by the
org.apache.batik.svggen.SVGGraphics2D to
generate SVG from Java 2D primitives. |
SVGGeneratorTests.java | Class | This test validates that a given rendering sequence, modeled
by a Painter by doing several subtests for a
single input class:
+ SVGAccuracyTest with several configurations
+ SVGRenderingAccuracyTest
+ ImageComparisonTest between the rendering of the generated
SVG for various configurations. |
SVGGraphicContext.java | Class | Represents the SVG equivalent of a Java 2D API graphic
context attribute. |
SVGGraphicContextConverter.java | Class | This class performs the task of converting the state of the
Java 2D API graphic context into a set of graphic attributes. |
SVGGraphicObjectConverter.java | Class | |
SVGGraphics2D.java | Class | This implementation of the java.awt.Graphics2D abstract class
allows users to generate SVG (Scalable Vector Graphics) content
from Java code.
SVGGraphics2D generates a DOM tree whose root is obtained through
the getRoot method. |
SVGGraphics2DIOException.java | Class | Thrown when an SVG Generator method receives an illegal argument in parameter. |
SVGGraphics2DRuntimeException.java | Class | Thrown when an SVG Generator method receives an illegal argument in parameter. |
SVGHintsDescriptor.java | Class | |
SVGIDGenerator.java | Class | |
SVGLine.java | Class | Utility class that converts a Line2D object into
a corresponding SVG line element. |
SVGLinearGradient.java | Class | |
SVGLookupOp.java | Class | Utility class that converts a LookupOp object into
an SVG filter descriptor. |
SVGPaint.java | Class | Utility class that converts a Paint object into an
SVG element. |
SVGPaintDescriptor.java | Class | Used to represent an SVG Paint. |
SVGPath.java | Class | Utility class that converts a Shape object into an SVG
path element. |
SVGPolygon.java | Class | Utility class that converts a Polygon object into
an SVG element. |
SVGRectangle.java | Class | Utility class that converts a Rectangle2D or RoundRectangle2D
object into an SVG element. |
SVGRenderingHints.java | Class | Utility class that converts a RenderingHints object into
a set of SVG properties. |
SVGRescaleOp.java | Class | Utility class that converts a RescaleOp object into
an SVG filter descriptor. |
SVGShape.java | Class | Utility class that converts a Shape object into the corresponding
SVG element. |
SVGStrokeDescriptor.java | Class | Used to represent an SVG Paint. |
SVGStylingAttributes.java | Class | Defines the set of attributes from Exchange SVG that
are defined as styling properties in Stylable SVG. |
SVGSyntax.java | Interface | Contains the definition of the SVG tags and attribute names. |
SVGTexturePaint.java | Class | |
SVGTransform.java | Class | Utility class that converts a GraphicContext transform stack
into an SVG transform attribute. |
SVGTransformDescriptor.java | Class | |
SwingSVGPrettyPrint.java | Class | This class offers a way to create an SVG document with grouping
that reflects the Swing composite structure (container/components). |
TextSpacePreserve.java | Class | This test validates that spaces are preserved correctly in drawString
calls. |
Texture.java | Class | |
TransformCollapse.java | Class | This test validates that transforms are collapsed when they
should. |
XmlWriter.java | Class | Writes a Node as text output. |