| Home >> All >> org >> apache >> batik >> ext |
| | org.apache.batik.ext.awt.* (181) | | org.apache.batik.ext.swing.* (6) | | org.apache.batik.extension.svg.* (30) |
Package Samples:
org.apache.batik.extension.svg: This package contains Batik's extensions to standard SVG (custom elements, additional bridges...).
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.ext.awt.image.codec: Contains extensions to the java.awt.image package.
org.apache.batik.ext.awt.color: Contains extensions to the java.awt package.
org.apache.batik.ext.awt.geom
org.apache.batik.ext.swing
org.apache.batik.ext.awt.image.spi
org.apache.batik.ext.awt.image.rendered
org.apache.batik.ext.awt.image.renderable
org.apache.batik.ext.awt.image
org.apache.batik.ext.awt.g2d
org.apache.batik.ext.awt.font
org.apache.batik.ext.awt
Classes:
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 ...
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 ...
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 ...
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 ...
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 ...
TIFFImageDecoder: A baseline TIFF reader. The reader has some functionality in addition to the baseline specifications for Bilevel images, for which the group 3 and group 4 decompression schemes have been implemented. Support for LZW decompression has also been added. Support for Horizontal differencing predictor decoding is also included, when used with LZW compression. However, this support is limited to data with bitsPerSample value of 8. When reading in RGB images, support for alpha and extraSamples being present has been added. Support for reading in images with 16 bit samples has been added. Support for the ...
AbstractGraphics2D: This extension of the java.awt.Graphics2D abstract class is still abstract, but it implements a lot of the Graphics2D method in a way that concrete implementations can reuse. This class uses a GraphicContext to store the state of its various attributes that control the rendering, such as the current Font , Paint or clip. Concrete implementations can focus on implementing the rendering methods, such as drawShape . As a convenience, rendering methods that can be expressed with other rendering methods (e.g., drawRect can be expressed as draw(new Rectangle(..)) ), are implemented by AbstractGraphi ...
FileCacheSeekableStream: A subclass of SeekableStream that may be used to wrap a regular InputStream . Seeking backwards is supported by means of a file cache. In circumstances that do not allow the creation of a temporary file (for example, due to security consideration or the absence of local disk), the MemoryCacheSeekableStream class may be used instead. The mark() and reset() methods are supported. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
TIFFField: A class representing a field in a TIFF 6.0 Image File Directory. The TIFF file format is described in more detail in the comments for the TIFFDescriptor class. A field in a TIFF Image File Directory (IFD). A field is defined as a sequence of values of identical data type. TIFF 6.0 defines 12 data types, which are mapped internally onto the Java datatypes byte, int, long, float, and double. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
MemoryCacheSeekableStream: A subclass of SeekableStream that may be used to wrap a regular InputStream . Seeking backwards is supported by means of an in-memory cache. For greater efficiency, FileCacheSeekableStream should be used in circumstances that allow the creation of a temporary file. The mark() and reset() methods are supported. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
DiffuseLightingRable: This filter primitive lights an image using the alpha channel as a bump map. The resulting image is an RGBA opaque image based on the light color with alpha = 1.0 everywhere. The lighting calculation follows the standard diffuse component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. This filter follows the specification of the feDiffuseLighting filter in the SVG 1.0 specification.
TextPathLayout: PathLayout can layout text along a Shape, usually a Path object. There are a number of improvements that could be made to this class. I'll try to list some of them: The layout should really only modify the GlyphVector, rather than converting to a Shape. Maybe the functions should take a AttributedCharacterIterator or something? Should this class do the entire layout? The layout code works, but it's definitely not perfect.
FilterChainRable8Bit: Implements a filter chain. A filter chain is defined by its filter region (i.e., the bounding box of its input/output), its filter resolution and its source. Its source cannot be null, but its resolution can. The filter chain decomposes as follows: A pad operation that makes the input image a big as the filter region. If there is a filterResolution specified along at least one of the axis, a AffineRable
ExtendedPathIterator: The ExtendedPathIterator class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arcs. This interface is identical to that of PathIterator except it can return SEG_ARCTO from currentSegment, also the array of values passed to currentSegment must be of length 7 or an error will be thrown. This does not extend PathIterator as it would break the interface contract for that class.
ExtendedGeneralPath: The ExtendedGeneralPath class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc. This class delegates lines and curves to an enclosed GeneralPath . Elliptical arc is implemented using an Arc2D in float precision. Warning : An elliptical arc may be composed of several path segments. For futher details, see the SVG Appendix F.6
URLImageCache: This class manages a cache of soft references to Images that we have already loaded. Adding an image is two fold. First you add the ParsedURL, this lets the cache know that someone is working on this ParsedURL. Then when the completed RenderedImage is ready you put it into the cache. If someone requests a ParsedURL after it has been added but before it has been put they will be blocked until the put.
PathLength: PathLength is a utility class for calculating the length of a path, the location of a point at a particular length along the path, and the angle of the tangent to the path at a given length. It uses a FlatteningPathIterator to create a flattened version of the Path. This means the values returned are not always exact (in fact, they rarely are), but in most cases they are reasonably accurate.
DeferRable: This class allows for the return of a proxy object quickly, while a heavy weight object is constrcuted in a background Thread. This proxy object will then block if any methods are called on it that require talking to the source object. This is actually a particular instance of a very general pattern this is probably best represented using the Proxy class in the Reflection APIs.
RectListManager: RectListManager is a class to manage a list of rectangular regions. This class contains methods to add new rectangles to the List, to merge rectangles in the list (based on a cost function), and functions to subract one RectListManager from another. The main purpose of this class is to manage dirty regions on a display (for this reason it uses Rectangle not Rectangle2D).
SimpleRenderedImage: A simple class implemented the RenderedImage interface. Only the getTile() method needs to be implemented by subclasses. The instance variables must also be filled in properly. Normally in JAI PlanarImage is used for this purpose, but in the interest of modularity the use of PlanarImage has been avoided.
MagicNumberRegistryEntry: This Image tag registry entry is built around the notion of magic numbers. These are strings of bytes that are at a well known location in the input stream (often the start). This base class can handle the compatiblity check based on a list of Magic Numbers that correspond to your format (Some formats have multiple magic numbers associated with them).
DefaultGraphics2D: This concrete implementation of AbstractGraphics2D is a simple help to programmers to get started with their own implementation of Graphics2D . DefaultGraphics2D implements all the abstract methods is AbstractGraphics2D and makes it easy to start implementing a Graphic2D piece-meal.
| Home | Contact Us | Privacy Policy | Terms of Service |