KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > parser > TransformListHandler


1 /*
2
3    Copyright 2000 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.parser;
19
20 /**
21  * This interface must be implemented and then registred as the
22  * handler of a <code>TransformParser</code> instance in order to
23  * be notified of parsing events.
24  *
25  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
26  * @version $Id: TransformListHandler.java,v 1.3 2004/08/18 07:14:47 vhardy Exp $
27  */

28 public interface TransformListHandler {
29     /**
30      * Invoked when the tranform starts.
31      *
32      * @exception ParseException if an error occured while processing
33      * the transform
34      */

35     void startTransformList() throws ParseException;
36
37     /**
38      * Invoked when 'matrix(a, b, c, d, e, f)' has been parsed.
39      *
40      * @exception ParseException if an error occured while processing
41      * the transform
42      */

43     void matrix(float a, float b, float c, float d, float e, float f)
44     throws ParseException;
45
46     /**
47      * Invoked when 'rotate(theta)' has been parsed.
48      *
49      * @exception ParseException if an error occured while processing
50      * the transform
51      */

52     void rotate(float theta) throws ParseException;
53
54     /**
55      * Invoked when 'rotate(theta, cx, cy)' has been parsed.
56      *
57      * @exception ParseException if an error occured while processing
58      * the transform
59      */

60     void rotate(float theta, float cx, float cy) throws ParseException;
61
62     /**
63      * Invoked when 'translate(tx)' has been parsed.
64      *
65      * @exception ParseException if an error occured while processing
66      * the transform
67      */

68     void translate(float tx) throws ParseException;
69
70     /**
71      * Invoked when 'translate(tx, ty)' has been parsed.
72      *
73      * @exception ParseException if an error occured while processing
74      * the transform
75      */

76     void translate(float tx, float ty) throws ParseException;
77
78     /**
79      * Invoked when 'scale(sx)' has been parsed.
80      *
81      * @exception ParseException if an error occured while processing
82      * the transform
83      */

84     void scale(float sx) throws ParseException;
85
86     /**
87      * Invoked when 'scale(sx, sy)' has been parsed.
88      *
89      * @exception ParseException if an error occured while processing
90      * the transform
91      */

92     void scale(float sx, float sy) throws ParseException;
93
94     /**
95      * Invoked when 'skewX(skx)' has been parsed.
96      *
97      * @exception ParseException if an error occured while processing
98      * the transform
99      */

100     void skewX(float skx) throws ParseException;
101
102     /**
103      * Invoked when 'skewY(sky)' has been parsed.
104      *
105      * @exception ParseException if an error occured while processing
106      * the transform
107      */

108     void skewY(float sky) throws ParseException;
109
110     /**
111      * Invoked when the transform ends.
112      *
113      * @exception ParseException if an error occured while processing
114      * the transform
115      */

116     void endTransformList() throws ParseException;
117 }
118
Popular Tags