KickJava   Java API By Example, From Geeks To Geeks.

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


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>LengthParser</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: LengthHandler.java,v 1.3 2004/08/18 07:14:46 vhardy Exp $
27  */

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

34     void startLength() throws ParseException;
35
36     /**
37      * Invoked when a float value has been parsed.
38      * @exception ParseException if an error occures while processing
39      * the length
40      */

41     void lengthValue(float v) throws ParseException;
42
43     /**
44      * Invoked when 'em' has been parsed.
45      * @exception ParseException if an error occures while processing
46      * the length
47      */

48     void em() throws ParseException;
49
50     /**
51      * Invoked when 'ex' has been parsed.
52      * @exception ParseException if an error occures while processing
53      * the length
54      */

55     void ex() throws ParseException;
56
57     /**
58      * Invoked when 'in' has been parsed.
59      * @exception ParseException if an error occures while processing
60      * the length
61      */

62     void in() throws ParseException;
63
64     /**
65      * Invoked when 'cm' has been parsed.
66      * @exception ParseException if an error occures while processing
67      * the length
68      */

69     void cm() throws ParseException;
70
71     /**
72      * Invoked when 'mm' has been parsed.
73      * @exception ParseException if an error occures while processing
74      * the length
75      */

76     void mm() throws ParseException;
77
78     /**
79      * Invoked when 'pc' has been parsed.
80      * @exception ParseException if an error occures while processing
81      * the length
82      */

83     void pc() throws ParseException;
84
85     /**
86      * Invoked when 'pt' has been parsed.
87      * @exception ParseException if an error occures while processing
88      * the length
89      */

90     void pt() throws ParseException;
91
92     /**
93      * Invoked when 'px' has been parsed.
94      * @exception ParseException if an error occures while processing
95      * the length
96      */

97     void px() throws ParseException;
98
99     /**
100      * Invoked when '%' has been parsed.
101      * @exception ParseException if an error occures while processing
102      * the length
103      */

104     void percentage() throws ParseException;
105
106     /**
107      * Invoked when the length attribute ends.
108      * @exception ParseException if an error occures while processing
109      * the length
110      */

111     void endLength() throws ParseException;
112 }
113
Popular Tags