KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Copyright 2000-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 interface must be implemented and then registred as the
22  * handler of a <code>PreserveAspectRatioParser</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: PreserveAspectRatioHandler.java,v 1.4 2004/08/18 07:14:47 vhardy Exp $
27  */

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

34     void startPreserveAspectRatio() throws ParseException;
35
36     /**
37      * Invoked when 'none' been parsed.
38      * @exception ParseException if an error occured while processing
39      * the PreserveAspectRatio
40      */

41     void none() throws ParseException;
42
43     /**
44      * Invoked when 'xMaxYMax' has been parsed.
45      * @exception ParseException if an error occured while processing
46      * the PreserveAspectRatio
47      */

48     void xMaxYMax() throws ParseException;
49
50     /**
51      * Invoked when 'xMaxYMid' has been parsed.
52      * @exception ParseException if an error occured while processing
53      * the PreserveAspectRatio
54      */

55     void xMaxYMid() throws ParseException;
56
57     /**
58      * Invoked when 'xMaxYMin' has been parsed.
59      * @exception ParseException if an error occured while processing
60      * the PreserveAspectRatio
61      */

62     void xMaxYMin() throws ParseException;
63
64     /**
65      * Invoked when 'xMidYMax' has been parsed.
66      * @exception ParseException if an error occured while processing
67      * the PreserveAspectRatio
68      */

69     void xMidYMax() throws ParseException;
70
71     /**
72      * Invoked when 'xMidYMid' has been parsed.
73      * @exception ParseException if an error occured while processing
74      * the PreserveAspectRatio
75      */

76     void xMidYMid() throws ParseException;
77
78     /**
79      * Invoked when 'xMidYMin' has been parsed.
80      * @exception ParseException if an error occured while processing
81      * the PreserveAspectRatio
82      */

83     void xMidYMin() throws ParseException;
84
85     /**
86      * Invoked when 'xMinYMax' has been parsed.
87      * @exception ParseException if an error occured while processing
88      * the PreserveAspectRatio
89      */

90     void xMinYMax() throws ParseException;
91
92     /**
93      * Invoked when 'xMinYMid' has been parsed.
94      * @exception ParseException if an error occured while processing
95      * the PreserveAspectRatio
96      */

97     void xMinYMid() throws ParseException;
98
99     /**
100      * Invoked when 'xMinYMin' has been parsed.
101      * @exception ParseException if an error occured while processing
102      * the PreserveAspectRatio
103      */

104     void xMinYMin() throws ParseException;
105
106     /**
107      * Invoked when 'meet' has been parsed.
108      * @exception ParseException if an error occured while processing
109      * the PreserveAspectRatio
110      */

111     void meet() throws ParseException;
112
113     /**
114      * Invoked when 'slice' has been parsed.
115      * @exception ParseException if an error occured while processing
116      * the PreserveAspectRatio
117      */

118     void slice() throws ParseException;
119
120     /**
121      * Invoked when the PreserveAspectRatio parsing ends.
122      * @exception ParseException if an error occured while processing
123      * the PreserveAspectRatio
124      */

125     void endPreserveAspectRatio() throws ParseException;
126 }
127
Popular Tags