Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Page 1   2  
org.apache.batik.apps.* (40)org.apache.batik.bridge.* (133)org.apache.batik.css.* (172)
org.apache.batik.dom.* (247)org.apache.batik.ext.* (187)org.apache.batik.extension.* (33)
org.apache.batik.gvt.* (108)org.apache.batik.i18n.* (4)org.apache.batik.parser.* (46)
org.apache.batik.script.* (20)

org.apache.batik: Javadoc index of package org.apache.batik.


Package Samples:

org.apache.batik.bridge.svg12: Provides an API for mapping and maintaining consistency between the SVG DOM tree and the GVT tree.  
org.apache.batik.extension.svg: This package contains Batik's extensions to standard SVG (custom elements, additional bridges...).  
org.apache.batik.gvt.event: Contains all of the interfaces for describing and painting vector graphics as Java objects.  
org.apache.batik.ext.awt.image.codec.tiff: Provides a set of classes to encode/decode images in various raster image file formats.  
org.apache.batik.script.jacl: Provides an API for interpreting scripting language found in SVG files.  
org.apache.batik.ext.awt.image.codec: Contains extensions to the java.awt.image package.  
org.apache.batik.dom.events: Provides an implementation of the DOM level 2 core module.  
org.apache.batik.ext.awt.color: Contains extensions to the java.awt package.  
org.apache.batik.script.rhino
org.apache.batik.parser
org.apache.batik.gvt
org.apache.batik.ext.awt.geom
org.apache.batik.dom.svg
org.apache.batik.dom
org.apache.batik.css.engine.value
org.apache.batik.css.dom
org.apache.batik.bridge
org.apache.batik.apps.rasterizer
org.apache.batik.apps.ttf2svg
org.apache.batik.apps.svgpp

Classes:

JSVGComponent: This class represents a swing component that can display SVG documents. This component also lets you translate, zoom and rotate the document being displayed. This is the fundamental class for rendering SVG documents in a swing application. Rendering Process The rendering process can be broken down into five phases. Not all of those steps are required - depending on the method used to specify the SVG document to display, but basically the steps in the rendering process are: Building a DOM tree If the loadSVGDocument(String) 55 method is used, the SVG file is parsed and an SVG DOM Tree is built. ...
SeekableStream: An abstract subclass of java.io.InputStream that allows seeking within the input, similar to the RandomAccessFile class. Additionally, the DataInput interface is supported and extended to include support for little-endian representations of fundamental data types. In addition to the familiar methods from InputStream , the methods getFilePointer() , seek() , are defined as in the RandomAccessFile class. The canSeekBackwards() method will return true if it is permissible to seek to a position earlier in the stream than the current value of getFilePointer() . Some subclasses of SeekableStream guarantee ...
SVGConverter: This application can be used to convert SVG images to raster images. Possible result raster image formats are PNG, JPEG, TIFF, and PDF. The Batik Transcoder API is used to execute the conversion. FOP is needed to be able to transcode to the PDF format The source has to be list of files or URL (set by the setSources method). The destination can be: unspecified . In that case, only file sources can be converted and a file in the same directory as the source will be created. a directory , set by the setDst method. In that case, the output files are created in that destination directory a file . In ...
RadialGradientPaint: This class provides a way to fill a shape with a circular radial color gradient pattern. The user may specify 2 or more gradient colors, and this paint will provide an interpolation between each color. The user must provide an array of floats specifying how to distribute the colors along the gradient. These values should range from 0.0 to 1.0 and act like keyframes along the gradient (they mark where the gradient should be exactly a particular color). This paint will map the first color of the gradient to a focus point within the circle, and the last color to the perimeter of the circle, interpolating ...
PNGDecodeParam: An instance of ImageDecodeParam for decoding images in the PNG format. PNGDecodeParam allows several aspects of the decoding process for PNG images to be controlled. By default, decoding produces output images with the following properties: Images with a bit depth of 8 or less use a DataBufferByte to hold the pixel data. 16-bit images use a DataBufferUShort . Palette color images and non-transparent grayscale images with bit depths of 1, 2, or 4 will have a MultiPixelPackedSampleModel and an IndexColorModel . For palette color images, the ColorModel palette contains the red, green, blue, and optionally ...
LinearGradientPaint: The LinearGradientPaint class provides a way to fill a java.awt.Shape with a linear color gradient pattern. The user may specify 2 or more gradient colors, and this paint will provide an interpolation between each color. The user also specifies start and end points which define where in user space the color gradient should begin and end. The user must provide an array of floats specifying how to distribute the colors along the gradient. These values should range from 0.0 to 1.0 and act like keyframes along the gradient (they mark where the gradient should be exactly a particular color). For example: ...
TIFFDecodeParam: An instance of ImageDecodeParam for decoding images in the TIFF format. To determine the number of images present in a TIFF file, use the getNumPages() method on the ImageDecoder object that will be used to perform the decoding. The desired page number may be passed as an argument to the ImageDecoder.decodeAsRaster)() or decodeAsRenderedImage() methods. For TIFF Palette color images, the colorMap always has entries of short data type, the color Black being represented by 0,0,0 and White by 65536,65536,65536. In order to display these images, the default behavior is to dither the short values down ...
AbstractTest: Base class containing convenience methods for writing tests. There are at least three approaches to write new tests derived from AbstractTest : You can simply override the runImplBase method and return true or false depending on whether or not the test fails. You can choose to report more complex test failure conditions by overriding the runImpl method which returns a TestReport . In that case, you can use the convenience methods such as reportFailure reportSuccess or reportException to help build a TestReport , and use the TestReport 's addDescriptionEntry to populate the report with relevant ...
LocalizableSupport: This class provides a default implementation of the Localizable interface. You can use it as a base class or as a member field and delegates various work to it. For example, to implement Localizable, the following code can be used: package mypackage; ... public class MyClass implements Localizable { // This code fragment requires a file named // 'mypackage/resources/Messages.properties', or a // 'mypackage.resources.Messages' class which extends // java.util.ResourceBundle, accessible using the current // classpath. LocalizableSupport localizableSupport = new LocalizableSupport("mypackage.resources.Messages"); ...
TurbulencePatternRed: This class creates a RenderedImage in conformance to the one defined for the feTurbulence filter of the SVG specification. What follows is my high-level description of how the noise is generated. This is not contained in the SVG spec, just the algorithm for doing it. This is provided in the hope that someone will figure out a clever way to accelerate parts of the function. gradient contains a long list of random unit vectors. For each point we are to generate noise for we do two things. first we use the latticeSelector to 'co-mingle' the integer portions of x and y (this allows us to have a one-dimensional ...
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 ...
PrintTranscoder: This class is a Transcoder that prints SVG images. This class works as follows: any-time the transcode method is invoked, the corresponding input is cached and nothing else happens. However, the PrintTranscoder is also a Printable. If used in a print operation, it will print each of the input it cached, one input per page. The PrintTranscoder uses several different hints that guide its printing: KEY_LANGUAGE, KEY_USER_STYLESHEET_URI, KEY_PIXEL_TO_MM, KEY_XML_PARSER_CLASSNAME can be used to set the defaults for the various SVG properties. KEY_PAGE_WIDTH, KEY_PAGE_HEIGHT, KEY_MARGIN_TOP, KEY_MARGIN_BOTTOM, ...
TestReportValidator: This Test implementation can be used to validate the operation of a specific test. A typical use is to create known error conditions and check that the input Test reports these errors properly. This test checks that a given test status (passed or not) and a given error code is returned by a Test . A TestReportValidator is built with the Test to run, the expected status (passed or failed) and the expected error code. The TestReportValidator will pass if the expected values are produced by the TestReport created by the associated Test . Otherwise, it will fail with one of two error codes: + if the ...
SelfContainedSVGOnLoadTest: This test takes an SVG file as an input. It processes the input SVG (meaning it turns it into a GVT tree) and then dispatches the 'onload' event. The SVG input file should contain script that will position the result of the test in the DOM using the following namespace: xmlns:test="http://xml.apache.org/batik/test" The result should be set in the result attribute of the <testResult> element by the script embeded in the input SVG test file. Sample input SVG file: <svg ... onload="runTest(evt)" xmlns:test="http://xml.apache.org/batik/test" > <script type="text/ecmascript"> function ...
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 ...
ParsedURL: This class is used as a replacement for java.net.URL. This is done for several reasons. First unlike java.net.URL this class will accept and parse as much of a URL as possible, without throwing a MalformedURL exception. This makes it extreamly useful for simply parsing a URL string (hence it's name). Second it allows for extension of the protocols supported by the URL parser. Batik uses this to support the 'Data' protocol. Third by default it checks the streams that it opens to see if they are GZIP compressed, if so it automatically uncompresses them (avoiding opening the stream twice in the processes). ...
PreferenceManager: This class allows to manage users preferences. Here is a short usage example: // at application intialization HashMap defaults = new HashMap(); defaults.put("windowSize", new Dimension(640, 480)); defaults.put("antialias", Boolean.TRUE); PreferenceManager prefs = new PreferenceManager("application.ini", defaults); try { prefs.load(); } catch (IOException e) { // } myApplication.setSize(prefs.getDimension("windowSize")); myApplication.setAntialiasingOn(prefs.getBoolean("antialias")); // later a dialog box may customize preferences myApplication.setAntialiasingOn(antialiasCheckBox.getState()); prefs.setBoolean("antialias", ...
ImageTranscoder: This class enables to transcode an input to an image of any format. Two transcoding hints ( KEY_WIDTH and KEY_HEIGHT ) can be used to respectively specify the image width and the image height. If only one of these keys is specified, the transcoder preserves the aspect ratio of the original image. The KEY_BACKGROUND_COLOR defines the background color to use for opaque image formats, or the background color that may be used for image formats that support alpha channel. The KEY_AOI represents the area of interest to paint in device space. Three additional transcoding hints that act on the SVG processor ...
ExternalResourcesTest: This test validates that SecurityExceptions are generated when the user is trying the access external resources and the UserAgent disallows that. In the following, 'unsecure' means an external resource coming from a different location than the file referencing it. This test works with an SVG file containing an unsecure stylesheet and a set of unsecure elements of all kinds, such as <image> <use> or <feImage>. All these elements are defined in a defs section. The test tries to load the document and validates that a SecurityException is thrown (because of the unsecure stylesheet). ...
SVGOnLoadExceptionTest: This test takes an SVG file as an input. It processes the input SVG (meaning it turns it into a GVT tree) and then dispatches the 'onload' event. In that process, the test checks for the occurence of a specific exception type and, for BridgeExceptions, for a given error code. If an exception of the given type (and, optionally, code) happens, then the test passes. If an exception of an unexpected type (or code, for BridgeExceptions) happens, or if no exception happens, the test fails. The following properties control the test's operation: - Scripts: list of allowed script types (e.g., "application/java-archive") ...
SVGOMMultiImageElement: This class implements a multiImage extension to SVG. The 'multiImage' element is similar to the 'image' element (supports all the same attributes and properties) except. It has two addtional attributes: 'pixel-width' and 'pixel-height' which are the maximum width and height of the image referenced by the xlink:href attribute. It can contain a child element 'subImage' which has two attributes, pixel-width, pixel-height. It holds SVG content to be rendered. It can contain a child element 'subImageRef' which has only three attributes, pixel-width, pixel-height and xlink:href. The image displayed is ...
TIFFDirectory: A class representing an Image File Directory (IFD) from a TIFF 6.0 stream. The TIFF file format is described in more detail in the comments for the TIFFDescriptor class. A TIFF IFD consists of a set of TIFFField tags. Methods are provided to query the set of tags and to obtain the raw field array. In addition, convenience methods are provided for acquiring the values of tags that contain a single value that fits into a byte, int, long, float, or double. Every TIFF file is made up of one or more public IFDs that are joined in a linked list, rooted in the file header. A file may also contain so-called ...
AbstractSVGList: This class is a base implementation for a live list representation of SVG attributes. This classe provides support for a SVG List representation of an attribute. It implements the basic functionnalities. For a specific attribute, it requires a attribute value 55 , a parser 55 , and the item creation 55 Whenever the attribute changes outside of the control of the list, this list must be invalidated 55
MenuFactory: This class represents a menu factory which builds menubars and menus from the content of a resource file. The resource entries format is (for a menubar named 'MenuBar'): MenuBar = Menu1 Menu2 ... Menu1.type = RADIO | CHECK | MENU | ITEM Menu1 = Item1 Item2 - Item3 ... Menu1.text = text Menu1.icon = icon_name Menu1.mnemonic = mnemonic Menu1.accelerator = accelerator Menu1.action = action_name Menu1.selected = true | false Menu1.enabled = true | false ... mnemonic is a single character accelerator is of the form: mod+mod+...+X where mod is Shift, Meta, Alt or Ctrl '-' represents a separator All entries ...
TIFFEncodeParam: An instance of ImageEncodeParam for encoding images in the TIFF format. This class allows for the specification of encoding parameters. By default, the image is encoded without any compression, and is written out consisting of strips, not tiles. The particular compression scheme to be used can be specified by using the setCompression() method. The compression scheme specified will be honored only if it is compatible with the type of image being written out. For example, Group3 and Group4 compressions can only be used with Bilevel images. Writing of tiled TIFF images can be enabled by calling the ...

Home | Contact Us | Privacy Policy | Terms of Service