blob: 0e30cb79d8beba942493bc5d1bb270e3f610d05d [file] [log] [blame]
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* version 1.1, a copy of which has been included with this distribution in *
* the LICENSE file. *
*****************************************************************************/
package org.apache.batik.parser;
/**
* This interface must be implemented and then registred as the
* handler of a <code>AngleParser</code> instance in order to be
* notified of parsing events.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
* @version $Id$
*/
public interface AngleHandler {
/**
* Invoked when the angle attribute parsing starts.
* @exception ParseException if an error occured while processing the angle
*/
void startAngle() throws ParseException;
/**
* Invoked when a float value has been parsed.
* @exception ParseException if an error occured while processing the angle
*/
void angleValue(float v) throws ParseException;
/**
* Invoked when 'deg' has been parsed.
* @exception ParseException if an error occured while processing the angle
*/
void deg() throws ParseException;
/**
* Invoked when 'grad' has been parsed.
* @exception ParseException if an error occured while processing the angle
*/
void grad() throws ParseException;
/**
* Invoked when 'rad' has been parsed.
* @exception ParseException if an error occured while processing the angle
*/
void rad() throws ParseException;
/**
* Invoked when the angle attribute parsing ends.
* @exception ParseException if an error occured while processing the angle
*/
void endAngle() throws ParseException;
}