org.apache.batik.dom.svg
Class AbstractSVGTransformList.TransformListBuilder

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGTransformList.TransformListBuilder
All Implemented Interfaces:
TransformListHandler
Enclosing class:
AbstractSVGTransformList

protected class AbstractSVGTransformList.TransformListBuilder
extends Object
implements TransformListHandler

Helper class to interface the TransformListParser and the ListHandler.


Field Summary
protected  ListHandler listHandler
          The ListHandler to pass newly created AbstractSVGTransformList.SVGTransformItem objects to.
 
Constructor Summary
AbstractSVGTransformList.TransformListBuilder(ListHandler listHandler)
          Creates a new TransformListBuilder.
 
Method Summary
 void endTransformList()
          Implements TransformListHandler.endTransformList().
 void matrix(float a, float b, float c, float d, float e, float f)
          Implements TransformListHandler.matrix(float,float,float,float,float,float).
 void rotate(float theta)
          Implements TransformListHandler.rotate(float).
 void rotate(float theta, float cx, float cy)
          Implements TransformListHandler.rotate(float,float,float).
 void scale(float sx)
          Implements TransformListHandler.scale(float).
 void scale(float sx, float sy)
          Implements TransformListHandler.scale(float,float).
 void skewX(float skx)
          Implements TransformListHandler.skewX(float).
 void skewY(float sky)
          Implements TransformListHandler.skewY(float).
 void startTransformList()
          Implements TransformListHandler.startTransformList().
 void translate(float tx)
          Implements TransformListHandler.translate(float).
 void translate(float tx, float ty)
          Implements TransformListHandler.translate(float,float).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listHandler

protected ListHandler listHandler
The ListHandler to pass newly created AbstractSVGTransformList.SVGTransformItem objects to.

Constructor Detail

AbstractSVGTransformList.TransformListBuilder

public AbstractSVGTransformList.TransformListBuilder(ListHandler listHandler)
Creates a new TransformListBuilder.

Method Detail

startTransformList

public void startTransformList()
                        throws ParseException
Implements TransformListHandler.startTransformList().

Specified by:
startTransformList in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

matrix

public void matrix(float a,
                   float b,
                   float c,
                   float d,
                   float e,
                   float f)
            throws ParseException
Implements TransformListHandler.matrix(float,float,float,float,float,float).

Specified by:
matrix in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

rotate

public void rotate(float theta)
            throws ParseException
Implements TransformListHandler.rotate(float).

Specified by:
rotate in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

rotate

public void rotate(float theta,
                   float cx,
                   float cy)
            throws ParseException
Implements TransformListHandler.rotate(float,float,float).

Specified by:
rotate in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

translate

public void translate(float tx)
               throws ParseException
Implements TransformListHandler.translate(float).

Specified by:
translate in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

translate

public void translate(float tx,
                      float ty)
               throws ParseException
Implements TransformListHandler.translate(float,float).

Specified by:
translate in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

scale

public void scale(float sx)
           throws ParseException
Implements TransformListHandler.scale(float).

Specified by:
scale in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

scale

public void scale(float sx,
                  float sy)
           throws ParseException
Implements TransformListHandler.scale(float,float).

Specified by:
scale in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

skewX

public void skewX(float skx)
           throws ParseException
Implements TransformListHandler.skewX(float).

Specified by:
skewX in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

skewY

public void skewY(float sky)
           throws ParseException
Implements TransformListHandler.skewY(float).

Specified by:
skewY in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform

endTransformList

public void endTransformList()
                      throws ParseException
Implements TransformListHandler.endTransformList().

Specified by:
endTransformList in interface TransformListHandler
Throws:
ParseException - if an error occured while processing the transform


Copyright © 2008 Apache Software Foundation. All Rights Reserved.