KickJava   Java API By Example, From Geeks To Geeks.

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


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>PointsParser</code> instance in order to be
23  * notified of parsing events.
24  *
25  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
26  * @version $Id: PointsHandler.java,v 1.4 2005/03/27 08:58:35 cam Exp $
27  */

28 public interface PointsHandler {
29     /**
30      * Invoked when the points attribute starts.
31      * @exception ParseException if an error occured while processing the
32      * points
33      */

34     void startPoints() throws ParseException;
35
36     /**
37      * Invoked when a point has been parsed.
38      * @param x the x coordinate of the point
39      * @param y the y coordinate of the point
40      * @exception ParseException if an error occured while processing the
41      * points
42      */

43     void point(float x, float y) throws ParseException;
44
45     /**
46      * Invoked when the points attribute ends.
47      * @exception ParseException if an error occured while processing the
48      * points
49      */

50     void endPoints() throws ParseException;
51 }
52
Popular Tags