001: /*
002:
003: Licensed to the Apache Software Foundation (ASF) under one or more
004: contributor license agreements. See the NOTICE file distributed with
005: this work for additional information regarding copyright ownership.
006: The ASF licenses this file to You under the Apache License, Version 2.0
007: (the "License"); you may not use this file except in compliance with
008: the License. You may obtain a copy of the License at
009:
010: http://www.apache.org/licenses/LICENSE-2.0
011:
012: Unless required by applicable law or agreed to in writing, software
013: distributed under the License is distributed on an "AS IS" BASIS,
014: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: See the License for the specific language governing permissions and
016: limitations under the License.
017:
018: */
019: package org.apache.batik.parser;
020:
021: /**
022: * This interface must be implemented and then registred as the
023: * handler of a <code>PreserveAspectRatioParser</code> instance in order to
024: * be notified of parsing events.
025: *
026: * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
027: * @version $Id: PreserveAspectRatioHandler.java 475477 2006-11-15 22:44:28Z cam $
028: */
029: public interface PreserveAspectRatioHandler {
030: /**
031: * Invoked when the PreserveAspectRatio parsing starts.
032: * @exception ParseException if an error occured while processing
033: * the PreserveAspectRatio
034: */
035: void startPreserveAspectRatio() throws ParseException;
036:
037: /**
038: * Invoked when 'none' been parsed.
039: * @exception ParseException if an error occured while processing
040: * the PreserveAspectRatio
041: */
042: void none() throws ParseException;
043:
044: /**
045: * Invoked when 'xMaxYMax' has been parsed.
046: * @exception ParseException if an error occured while processing
047: * the PreserveAspectRatio
048: */
049: void xMaxYMax() throws ParseException;
050:
051: /**
052: * Invoked when 'xMaxYMid' has been parsed.
053: * @exception ParseException if an error occured while processing
054: * the PreserveAspectRatio
055: */
056: void xMaxYMid() throws ParseException;
057:
058: /**
059: * Invoked when 'xMaxYMin' has been parsed.
060: * @exception ParseException if an error occured while processing
061: * the PreserveAspectRatio
062: */
063: void xMaxYMin() throws ParseException;
064:
065: /**
066: * Invoked when 'xMidYMax' has been parsed.
067: * @exception ParseException if an error occured while processing
068: * the PreserveAspectRatio
069: */
070: void xMidYMax() throws ParseException;
071:
072: /**
073: * Invoked when 'xMidYMid' has been parsed.
074: * @exception ParseException if an error occured while processing
075: * the PreserveAspectRatio
076: */
077: void xMidYMid() throws ParseException;
078:
079: /**
080: * Invoked when 'xMidYMin' has been parsed.
081: * @exception ParseException if an error occured while processing
082: * the PreserveAspectRatio
083: */
084: void xMidYMin() throws ParseException;
085:
086: /**
087: * Invoked when 'xMinYMax' has been parsed.
088: * @exception ParseException if an error occured while processing
089: * the PreserveAspectRatio
090: */
091: void xMinYMax() throws ParseException;
092:
093: /**
094: * Invoked when 'xMinYMid' has been parsed.
095: * @exception ParseException if an error occured while processing
096: * the PreserveAspectRatio
097: */
098: void xMinYMid() throws ParseException;
099:
100: /**
101: * Invoked when 'xMinYMin' has been parsed.
102: * @exception ParseException if an error occured while processing
103: * the PreserveAspectRatio
104: */
105: void xMinYMin() throws ParseException;
106:
107: /**
108: * Invoked when 'meet' has been parsed.
109: * @exception ParseException if an error occured while processing
110: * the PreserveAspectRatio
111: */
112: void meet() throws ParseException;
113:
114: /**
115: * Invoked when 'slice' has been parsed.
116: * @exception ParseException if an error occured while processing
117: * the PreserveAspectRatio
118: */
119: void slice() throws ParseException;
120:
121: /**
122: * Invoked when the PreserveAspectRatio parsing ends.
123: * @exception ParseException if an error occured while processing
124: * the PreserveAspectRatio
125: */
126: void endPreserveAspectRatio() throws ParseException;
127: }
|