|Home >> All >> org >> apache >> batik >> [ svggen Javadoc ]|
|||org.apache.batik.svggen.font.* (72)||||org.apache.batik.svggen.font.table.* (67)|
org.apache.batik.svggen: Javadoc index of package org.apache.batik.svggen.
org.apache.batik.svggen.font: Provides an API on top of the org.apache.batik.ext.awt.g2d.AbstractGraphics2D to translate Java 2D primitives into the SVG format.
DOMGroupManager: 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. A graphic context override happens when style attributes need to be added to a child node to reflect the state of the graphic context at the time the child was added. Note that the opacity is never reflected in ...
DOMTreeManager: This class is used by the SVGGraphics2D SVG Generator to manage addition of new Nodes to the SVG DOM Tree. This class handles a set of DOMGroupManager objects that can all append to the top level group managed by this class. This allows multiple SVGGraphics2D instances, created from the same SVGGraphics2D through the various create methods, to append to the same SVG document and keep the rendering order correct. The root node managed by this DOMTreeManager contains two children: a top level group node and a top level defs node. The top level defs node contains the definition of common SVG entities ...
SVGGraphics2D: 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. Refer to the DOMTreeManager and DOMGroupManager documentation for details on the structure of the generated DOM tree. The SVGGraphics2D class can produce a DOM tree using any implementation that conforms to the W3C DOM 1.0 specification (see http://www.w3.org). At construction time, the SVGGraphics2D must be given a org.w3.dom.Document instance that is used as a factory ...
SVGPath: Utility class that converts a Shape object into an SVG path element. Note that this class does not attempt to find out what type of object (e.g., whether the input Shape is a Rectangle or an Ellipse. This type of analysis is done by the SVGShape class). Note that this class assumes that the parent of the path element it generates defines the fill-rule as nonzero. This is not the SVG default value. However, because it is the GeneralPath's default, it is preferable to have this attribute specified once to set the default (in the parent element, e.g., a group) and then only in the rare instance where ...
SVGAlphaComposite: Utility class that converts an AlphaComposite object into a set of SVG properties and definitions. Here is how AlphaComposites are mapped to SVG: + AlphaComposite.SRC_OVER with extra alpha is mapped to the opacity attribute + AlphaComposite's other rules are translated into predefined filter effects. One of the big differences between AlphaComposite and the SVG feComposite filter is that feComposite does not have the notion of extra alpha applied to the source. The extra alpha equivalent is obtained by setting the opacity property on the nodes to be composited.
NegativeLengths: 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. A negative width or height makes the rectangle display as a line. The above behavior is that of the default Graphics2D implementations.
SVGRenderingHints: Utility class that converts a RenderingHins object into a set of SVG properties. Here is how individual hints are converted. + RENDERING -> sets all other hints to initial value. + FRACTIONAL_METRICS -> sets initial values for text-rendering and shape-rendering. + ALPHA_INTERPOLATION -> Not mapped + ANTIALIASING -> shape-rendering and text-rendering + COLOR_RENDERING -> color-rendering + DITHERING -> not mapped + INTERPOLATION -> image-rendering + TEXT_ANTIALIASING -> text-rendering
SVGShape: Utility class that converts a Shape object into the corresponding SVG element. Note that this class analyzes the input Shape class to generate the most appropriate corresponding SVG element: + Polygon is mapped to polygon + Rectangle2D and RoundRectangle2D are mapped to rect + Ellipse2D is mapped to circle or ellipse + Line2D is mapped to line + Arc2D, CubicCurve2D, Area, GeneralPath and QuadCurve2D are mapped to path. + Any custom Shape implementation is mapped to path as well.
SVGComposite: Utility class that converts a Composite object into a set of SVG properties and definitions. Here is how Composites are mapped to SVG: AlphaComposite.SRC_OVER with extra alpha is mapped to the opacity attribute AlphaComposite's other rules are translated into predefined filter effects. Custom Composite implementations are handled by the extension mechanism.
ImageHandler: This interface allows the user of the Graphics2D SVG generator to decide how to handle images that it renders. For example, an implementation could decide to embed JPEG/PNG encoded images into SVG source document using the data protocol (RFC 1521, paragraph 5.2) Another option is to save images into JPEG/PNG files and store URI in SVG source.
AbstractImageHandlerEncoder: 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. This class stores images in an configurable directory. The xlink:href value the class generates is made of a configurable url root and the name of the file created by this handler.
AbstractSVGConverter: Abstract class with common utility methods used by subclasses for specific convertion operations. It holds a reference to a domFactory Document, which many implementations use, and provides a convenience method, to offers a convertion of double values to String that remove the trailing '.' character on integral values.
AbstractSVGFilterConverter: Abstract class with common utility methods used by subclasses for specific convertion operations. It holds a reference to a domFactory Document, which many implementations use, and provides a convenience method, to offers a convertion of double values to String that remove the trailing '.' character on integral values.
SVGGeneratorTests: 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.
SVGGeneratorContext: This class contains all non graphical contextual information that are needed by the SVGGraphics2D to generate SVG from Java 2D primitives. You can subclass it to change the defaults.
SVGRescaleOp: Utility class that converts a RescaleOp object into an SVG filter descriptor. The SVG filter corresponding to a RescaleOp is an feComponentTransfer, with a type set to 'linear', the slopes equal to the RescapeOp scaleFactors and the intercept equal to the RescapeOp offsets.
JPainterCompare: Simple component which displays, side by side, the drawing created by a Painter , rendered in a JPainterComponent on the left, and in a JSVGCanvas on the right, where the SVG displayed is the one created by the SVGGraphics2D
Font2: This test validates the convertion of Java 2D text into SVG Shapes, one of the options of the SVGGraphics2D constructor. This is the same test as Font testing with regards to the Java 2D API code, except that it validates text to shapes convertion.
XmlWriter: Writes a Node as text output. Package access. This is *not* a full Xml printout implementation. It only covers what is needed by the Graphics2D class. The code for this class draws heavily from the work done for Sun's Project X by David Brownell.
CachedImageHandlerBase64Encoder: This subclass of ImageHandlerBase64Encoder implements functionality specific to the cached version of the image encoder.
SVGLookupOp: Utility class that converts a LookupOp object into an SVG filter descriptor. The SVG filter corresponding to a LookupOp is an feComponentTransfer, with a type set to 'table', the tableValues set to the content of the lookup table.
SimpleImageHandler: Implements the GenericImageHandler interface and only uses <image> elements. This class delegates to the ImageHandler interface for handling the xlink:href attribute on the elements it creates.
ImageHandlerJPEGEncoder: 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: 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.