You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2001/01/03 15:19:59 UTC

cvs commit: xml-batik/sources/org/apache/batik/parser DefaultAngleHandler.java DefaultErrorHandler.java DefaultLengthHandler.java DefaultLengthListHandler.java DefaultPathHandler.java DefaultPointsHandler.java DefaultPreserveAspectRatioHandler.java DefaultTransformListHandler.java

hillion     01/01/03 06:19:59

  Added:       sources/org/apache/batik/parser DefaultAngleHandler.java
                        DefaultErrorHandler.java DefaultLengthHandler.java
                        DefaultLengthListHandler.java
                        DefaultPathHandler.java DefaultPointsHandler.java
                        DefaultPreserveAspectRatioHandler.java
                        DefaultTransformListHandler.java
  Log:
  Parsers cleanup 2.
  
  Revision  Changes    Path
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultAngleHandler.java
  
  Index: DefaultAngleHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides an adapter for AngleHandler
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultAngleHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultAngleHandler implements AngleHandler {
      /**
       * The only instance of this class.
       */
      public final static AngleHandler INSTANCE
          = new DefaultAngleHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultAngleHandler() {
      }
  
      /**
       * Implements {@link AngleHandler#startAngle()}.
       */
      public void startAngle() throws ParseException {
      }
  
      /**
       * Implements {@link AngleHandler#angleValue(float)}.
       */
      public void angleValue(float v) throws ParseException {
      }
  
      /**
       * Implements {@link AngleHandler#deg()}.
       */
      public void deg() throws ParseException {
      }
  
      /**
       * Implements {@link AngleHandler#grad()}.
       */
      public void grad() throws ParseException {
      }
  
      /**
       * Implements {@link AngleHandler#rad()}.
       */
      public void rad() throws ParseException {
      }
  
      /**
       * Implements {@link AngleHandler#endAngle()}.
       */
      public void endAngle() throws ParseException {
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultErrorHandler.java
  
  Index: DefaultErrorHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides a default implementation of ErrorHandler.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultErrorHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  
  public class DefaultErrorHandler implements ErrorHandler {
  
      /**
       * Implements {@link ErrorHandler#error(ParseException)}.
       * Throws the given exception.
       */
      public void error(ParseException e) throws ParseException {
  	throw e;
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultLengthHandler.java
  
  Index: DefaultLengthHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides an adapter for LengthHandler
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultLengthHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultLengthHandler implements LengthHandler {
      /**
       * The only instance of this class.
       */
      public final static LengthHandler INSTANCE = new DefaultLengthHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultLengthHandler() {
      }
  
      /**
       * Implements {@link LengthHandler#startLength()}.
       */
      public void startLength() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#lengthValue(float)}.
       */
      public void lengthValue(float v) throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#em()}.
       */
      public void em() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#ex()}.
       */
      public void ex() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#in()}.
       */
      public void in() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#cm()}.
       */
      public void cm() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#mm()}.
       */
      public void mm() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#pc()}.
       */
      public void pc() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#pt()}.
       */
      public void pt() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#px()}.
       */
      public void px() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#percentage()}.
       */
      public void percentage() throws ParseException {
      }
  
      /**
       * Implements {@link LengthHandler#endLength()}.
       */
      public void endLength() throws ParseException {
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultLengthListHandler.java
  
  Index: DefaultLengthListHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides an adapter for LengthListHandler
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultLengthListHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultLengthListHandler
      extends    DefaultLengthHandler
      implements LengthListHandler {
      /**
       * The only instance of this class.
       */
      public final static LengthListHandler INSTANCE
          = new DefaultLengthListHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultLengthListHandler() {
      }
  
      /**
       * Implements {@link LengthListHandler#startLengthList()}.
       */
      public void startLengthList() throws ParseException {
      }
  
      /**
       * Implements {@link LengthListHandler#endLengthList()}.
       */
      public void endLengthList() throws ParseException {
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultPathHandler.java
  
  Index: DefaultPathHandler.java
  ===================================================================
  /*****************************************************************************
   * 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;
  
  /**
   * The class provides an adapter for PathHandler.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultPathHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultPathHandler implements PathHandler {
  
      /**
       * The only instance of this class.
       */
      public final static PathHandler INSTANCE
          = new DefaultPathHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultPathHandler() {
      }
  
      /**
       * Implements {@link PathHandler#startPath()}.
       */
      public void startPath() throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#endPath()}.
       */
      public void endPath() throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#movetoRel(float,float)}.
       */
      public void movetoRel(float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#movetoAbs(float,float)}.
       */
      public void movetoAbs(float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#closePath()}.
       */
      public void closePath() throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#linetoRel(float,float)}.
       */
      public void linetoRel(float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#linetoAbs(float,float)}.
       */
      public void linetoAbs(float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#linetoHorizontalRel(float)}.
       */
      public void linetoHorizontalRel(float x) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#linetoHorizontalAbs(float)}.
       */
      public void linetoHorizontalAbs(float x) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#linetoVerticalRel(float)}.
       */
      public void linetoVerticalRel(float y) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#linetoVerticalAbs(float)}.
       */
      public void linetoVerticalAbs(float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#curvetoCubicRel(float,float,float,float,float,float)}.
       */
      public void curvetoCubicRel(float x1, float y1, 
  				float x2, float y2, 
  				float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#curvetoCubicAbs(float,float,float,float,float,float)}.
       */
      public void curvetoCubicAbs(float x1, float y1, 
  				float x2, float y2, 
  				float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#curvetoCubicSmoothRel(float,float,float,float)}.
       */
      public void curvetoCubicSmoothRel(float x2, float y2, 
  				      float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#curvetoCubicSmoothAbs(float,float,float,float)}.
       */
      public void curvetoCubicSmoothAbs(float x2, float y2, 
  				      float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#curvetoQuadraticRel(float,float,float,float)}.
       */
      public void curvetoQuadraticRel(float x1, float y1, 
  				    float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#curvetoQuadraticAbs(float,float,float,float)}.
       */
      public void curvetoQuadraticAbs(float x1, float y1, 
  				    float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#curvetoQuadraticSmoothRel(float,float)}.
       */
      public void curvetoQuadraticSmoothRel(float x, float y)
          throws ParseException {
      }
  
      /**
       * Implements {@link PathHandler#curvetoQuadraticSmoothAbs(float,float)}.
       */
      public void curvetoQuadraticSmoothAbs(float x, float y)
          throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#arcRel(float,float,float,boolean,boolean,float,float)}.
       */
      public void arcRel(float rx, float ry, 
  		       float xAxisRotation, 
  		       boolean largeArcFlag, boolean sweepFlag, 
  		       float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link
       * PathHandler#arcAbs(float,float,float,boolean,boolean,float,float)}.
       */
      public void arcAbs(float rx, float ry, 
  		       float xAxisRotation, 
  		       boolean largeArcFlag, boolean sweepFlag, 
  		       float x, float y) throws ParseException {
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultPointsHandler.java
  
  Index: DefaultPointsHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides an adapter for PointsHandler.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultPointsHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultPointsHandler implements PointsHandler {
      /**
       * The only instance of this class.
       */
      public final static DefaultPointsHandler INSTANCE
          = new DefaultPointsHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultPointsHandler() {
      }
  
      /**
       * Implements {@link PointsHandler#startPoints()}.
       */
      public void startPoints() throws ParseException {
      }
  
      /**
       * Implements {@link PointsHandler#point(float,float)}.
       */
      public void point(float x, float y) throws ParseException {
      }
  
      /**
       * Implements {@link PointsHandler#endPoints()}.
       */
      public void endPoints() throws ParseException {
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultPreserveAspectRatioHandler.java
  
  Index: DefaultPreserveAspectRatioHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides an adapter for PreserveAspectRatioHandler.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultPreserveAspectRatioHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultPreserveAspectRatioHandler
      implements PreserveAspectRatioHandler {
      /**
       * The only instance of this class.
       */
      public final static PreserveAspectRatioHandler INSTANCE
          = new DefaultPreserveAspectRatioHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultPreserveAspectRatioHandler() {
      }
  
      /**
       * Implements {@link
       * PreserveAspectRatioHandler#startPreserveAspectRatio()}.
       */
      public void startPreserveAspectRatio() throws ParseException {
      }
      
      /**
       * Implements {@link PreserveAspectRatioHandler#none()}.
       */
      public void none() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMaxYMax()}.
       */
      public void xMaxYMax() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMaxYMid()}.
       */
      public void xMaxYMid() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMaxYMin()}.
       */
      public void xMaxYMin() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMidYMax()}.
       */
      public void xMidYMax() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMidYMid()}.
       */
      public void xMidYMid() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMidYMin()}.
       */
      public void xMidYMin() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMinYMax()}.
       */
      public void xMinYMax() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMinYMid()}.
       */
      public void xMinYMid() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#xMinYMin()}.
       */
      public void xMinYMin() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#meet()}.
       */
      public void meet() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#slice()}.
       */
      public void slice() throws ParseException {
      }
  
      /**
       * Implements {@link PreserveAspectRatioHandler#endPreserveAspectRatio()}.
       */
      public void endPreserveAspectRatio() throws ParseException {
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/parser/DefaultTransformListHandler.java
  
  Index: DefaultTransformListHandler.java
  ===================================================================
  /*****************************************************************************
   * 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 class provides an adapter for TransformListHandler.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: DefaultTransformListHandler.java,v 1.1 2001/01/03 14:19:59 hillion Exp $
   */
  public class DefaultTransformListHandler implements TransformListHandler {
  
      /**
       * The only instance of this class.
       */
      public final static TransformListHandler INSTANCE
          = new DefaultTransformListHandler();
  
      /**
       * This class does not need to be instantiated.
       */
      protected DefaultTransformListHandler() {
      }
  
      /**
       * Implements {@link TransformListHandler#startTransformList()}.
       */
      public void startTransformList() throws ParseException {
      }
  
      /**
       * Implements {@link
       * TransformListHandler#matrix(float,float,float,float,float,float)}.
       */
      public void matrix(float a, float b, float c, float d, float e, float f)
  	throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#rotate(float)}.
       */
      public void rotate(float theta) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#rotate(float,float,float)}.
       */
      public void rotate(float theta, float cx, float cy) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#translate(float)}.
       */
      public void translate(float tx) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#translate(float,float)}.
       */
      public void translate(float tx, float ty) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#scale(float)}.
       */
      public void scale(float sx) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#scale(float,float)}.
       */
      public void scale(float sx, float sy) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#skewX(float)}.
       */
      public void skewX(float skx) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#skewY(float)}.
       */
      public void skewY(float sky) throws ParseException {
      }
  
      /**
       * Implements {@link TransformListHandler#endTransformList()}.
       */
      public void endTransformList() throws ParseException {
      }
  }