KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Copyright 2001 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 class provides an adapter for FragmentIdentifierHandler.
22  *
23  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
24  * @version $Id: DefaultFragmentIdentifierHandler.java,v 1.5 2005/03/27 08:58:35 cam Exp $
25  */

26 public class DefaultFragmentIdentifierHandler
27     extends DefaultPreserveAspectRatioHandler
28     implements FragmentIdentifierHandler {
29
30     /**
31      * The only instance of this class.
32      */

33     public final static FragmentIdentifierHandler INSTANCE
34         = new DefaultFragmentIdentifierHandler();
35
36     /**
37      * This class does not need to be instantiated.
38      */

39     protected DefaultFragmentIdentifierHandler() {
40     }
41
42     /**
43      * Implements {@link FragmentIdentifierHandler#startFragmentIdentifier()}.
44      */

45     public void startFragmentIdentifier() throws ParseException {
46     }
47
48     /**
49      * Invoked when an ID has been parsed.
50      * @param s The string that represents the parsed ID.
51      * @exception ParseException if an error occured while processing the
52      * fragment identifier
53      */

54     public void idReference(String JavaDoc s) throws ParseException {
55     }
56
57     /**
58      * Invoked when 'viewBox(x,y,width,height)' has been parsed.
59      * @param x the x coordinate of the viewbox.
60      * @param y the y coordinate of the viewbox.
61      * @param width the width of the viewbox.
62      * @param height the height of the viewbox.
63      * @exception ParseException if an error occured while processing the
64      * fragment identifier
65      */

66     public void viewBox(float x, float y, float width, float height)
67         throws ParseException {
68     }
69
70     /**
71      * Invoked when a view target specification starts.
72      * @exception ParseException if an error occured while processing the
73      * fragment identifier
74      */

75     public void startViewTarget() throws ParseException {
76     }
77
78     /**
79      * Invoked when a view target component has been parsed.
80      * @param name the target name.
81      * @exception ParseException if an error occured while processing the
82      * fragment identifier
83      */

84     public void viewTarget(String JavaDoc name) throws ParseException {
85     }
86
87     /**
88      * Invoked when a view target specification ends.
89      * @exception ParseException if an error occured while processing the
90      * fragment identifier
91      */

92     public void endViewTarget() throws ParseException {
93     }
94
95     /**
96      * Implements {@link TransformListHandler#startTransformList()}.
97      */

98     public void startTransformList() throws ParseException {
99     }
100
101     /**
102      * Implements {@link
103      * TransformListHandler#matrix(float,float,float,float,float,float)}.
104      */

105     public void matrix(float a, float b, float c, float d, float e, float f)
106     throws ParseException {
107     }
108
109     /**
110      * Implements {@link TransformListHandler#rotate(float)}.
111      */

112     public void rotate(float theta) throws ParseException {
113     }
114
115     /**
116      * Implements {@link TransformListHandler#rotate(float,float,float)}.
117      */

118     public void rotate(float theta, float cx, float cy) throws ParseException {
119     }
120
121     /**
122      * Implements {@link TransformListHandler#translate(float)}.
123      */

124     public void translate(float tx) throws ParseException {
125     }
126
127     /**
128      * Implements {@link TransformListHandler#translate(float,float)}.
129      */

130     public void translate(float tx, float ty) throws ParseException {
131     }
132
133     /**
134      * Implements {@link TransformListHandler#scale(float)}.
135      */

136     public void scale(float sx) throws ParseException {
137     }
138
139     /**
140      * Implements {@link TransformListHandler#scale(float,float)}.
141      */

142     public void scale(float sx, float sy) throws ParseException {
143     }
144
145     /**
146      * Implements {@link TransformListHandler#skewX(float)}.
147      */

148     public void skewX(float skx) throws ParseException {
149     }
150
151     /**
152      * Implements {@link TransformListHandler#skewY(float)}.
153      */

154     public void skewY(float sky) throws ParseException {
155     }
156
157     /**
158      * Implements {@link TransformListHandler#endTransformList()}.
159      */

160     public void endTransformList() throws ParseException {
161     }
162
163     /**
164      * Invoked when a 'zoomAndPan' specification has been parsed.
165      * @param magnify true if 'magnify' has been parsed.
166      * @exception ParseException if an error occured while processing the
167      * fragment identifier
168      */

169     public void zoomAndPan(boolean magnify) {
170     }
171
172     /**
173      * Implements {@link FragmentIdentifierHandler#endFragmentIdentifier()}.
174      */

175     public void endFragmentIdentifier() throws ParseException {
176     }
177 }
178
Popular Tags