TinyLine SVG Programming Guide

2 TinyLine SVG API

Package com.tinyline.tiny2d

The TinyLine 2D implements an advanced 2D graphics and imaging for J2ME platform (CLDC and CDC).

Tiny2D The Tiny2D defines a graphics context that allows an application to draw shapes, images and texts onto a TinyBuffer object.
TinyBuffer The TinyBuffer class represents a rectangular array of pixels.
TinyColor The TinyColor class defines colors in the ARGB color space.
TinyPaint The TinyPaint class defines paint servers in the ARGB color space.
TinyFont The TinyFont class defines a collection of glyphs together with the information necessary to use those glyphs.
TinyGlyph The TinyGlyph class specifies a glyph representing a unit of rendered content within a font.
TinyMatrix The TinyMatrix class represents a 2D affine transformation matrix.
TinyPath The TinyPath class represents a geometric path constructed from straight lines, and quadratic and cubic (Bezier) curves.
TinyPoint The TinyPoint class specifies a point representing a location in (x, y) coordinate space specified in fixed point precision.
TinyProducer The TinyProducer interface provides an interface for objects which can produce the image data from the TinyBuffer object (pixels buffer).
TinyRect The TinyRect class specifies an area in a coordinate space that is enclosed by the TinyRect object's top-left point (xmin, ymin ) and down-right point (xmax, ymax ) in the coordinate space.
TinyState A TinyState object encapsulates state information needed for the basic rendering operations.

These convenience classes define basic data types, data structures and utilities.

TinyHash The TinyHash class implements a hashtable, which maps keys to values.
TinyNumber The TinyNumber class wraps a value of the (double) fixed point type in an object.
TinyString The TinyString class represents character strings.
TinyVector The TinyVector class implements a growable array of objects.

Package com.tinyline.util

This package contains miscellaneous utility classes.

GZIPInputStream This class implements a stream filter for reading compressed data in the GZIP format for CLDC 1.0 platform.
TinyInputStream A data input stream lets an application read primitive TinyLine 2D data types from an input stream.
TinyOutputStream A data output stream lets an application write primitive TinyLine 2D data types to an output stream.

Package com.tinyline.svg

This package implements a SVG Tiny 1.1+ language for CLDC 1.0 platform.

Interfaces:

AnimationCallback The AnimationCallback interface.
ImageLoader The ImageLoader interface
XMLHandler The XML callbacks interface.
XMLParser The interface for parsing XML documents using callbacks.

Classes:

SMILTime The SMILTime class is a datatype that represents times within the timegraph.
SVG The SVG class defines SVG Tiny constants such as elements, attributes and values as for SVG Tiny specification.
SVGAnimationElem The SVGAnimationElem class implements animation elements which are defined in SMIL Animation and 3GPP SMIL Language Profile specifications.
SVGAttr The SVGAttr class implements the SVGT attributes parser.
SVGDocument The SVGDocument class implements the header object in the SVG object hierarchy.
SVGEllipseElem The SVGEllipseElem class implements the 'circle' and 'ellipse' elements.
SVGFontElem The SVGFontElem class implements the 'font' element.
SVGFontFaceElem The SVGFontFaceElem class implements the 'font-face' element.
SVGGlyphElem The SVGGlyphElem class implements the 'glyph' element.
SVGGradientElem The SVGGradientElem class implements the 'linearGradient' or the 'radialGradient' element.
SVGGroupElem The SVGGroupElem class implements the container element.
SVGImageElem The SVGImageElem class implements the 'image' element.
SVGLineElem The SVGLineElem class implements the 'line' element.
SVGMPathElem The SVGMPathElem class implements the 'mpath' sub-element.
SVGNode The SVGNode class implements the base class for all elements in the SVG language.
SVGParser The SVGParser class implements XMLHandler callbacks API for parsing the SVGT input stream.
SVGPathElem The SVGPathElem class implements the 'path' element.
SVGPolygonElem The SVGPolygonElem class implements the 'polyline' and 'polygon' elements.
SVGRaster The SVGRaster class rasterizes the tree of SVGNodes onto the pixel buffer.
SVGRect The SVGRect class implements the basic type 'rectangle'.
SVGAttr The SVGAttr class implements the SVGT attributes parser.
SVGRectElem The SVGRectElem class implements the 'rect' element.
SVGStopElem The SVGStopElem class implements the 'stop' element.
SVGSVGElem The SVGSVGElem class implements the 'svg' element.
SVGTextElem The SVGTextElem class implements the 'text' element.
SVGUnknownElem The SVGUnknownElem class implements the 'unknown' element.
SVGUseElem The SVGUseElem class implements the 'use' element.
TinyUtils The TinyUtils class implements parsers with support for basic data types and objects.

The best way to learn and understand TinyLine API is to look at examples!

© 2008 TinyLine. All rights reserved.