| /***************************************************************************** |
| * 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 FragmentIdentifierHandler. |
| * |
| * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a> |
| * @version $Id$ |
| */ |
| public class DefaultFragmentIdentifierHandler |
| extends DefaultPreserveAspectRatioHandler |
| implements FragmentIdentifierHandler { |
| |
| /** |
| * The only instance of this class. |
| */ |
| public final static FragmentIdentifierHandler INSTANCE |
| = new DefaultFragmentIdentifierHandler(); |
| |
| /** |
| * This class does not need to be instantiated. |
| */ |
| protected DefaultFragmentIdentifierHandler() { |
| } |
| |
| /** |
| * Implements {@link FragmentIdentifierHandler#startFragmentIdentifier()}. |
| */ |
| public void startFragmentIdentifier() throws ParseException { |
| } |
| |
| /** |
| * Invoked when an ID has been parsed. |
| * @param s The string that represents the parsed ID. |
| * @exception ParseException if an error occured while processing the |
| * fragment identifier |
| */ |
| public void idReference(String s) throws ParseException { |
| } |
| |
| /** |
| * Invoked when 'viewBox(x,y,width,height)' has been parsed. |
| * @param x y width height the coordinates of the viewbox. |
| * @exception ParseException if an error occured while processing the |
| * fragment identifier |
| */ |
| public void viewBox(float x, float y, float width, float height) |
| throws ParseException { |
| } |
| |
| /** |
| * Invoked when a view target specification starts. |
| * @exception ParseException if an error occured while processing the |
| * fragment identifier |
| */ |
| public void startViewTarget() throws ParseException { |
| } |
| |
| /** |
| * Invoked when a view target component has been parsed. |
| * @param name the target name. |
| * @exception ParseException if an error occured while processing the |
| * fragment identifier |
| */ |
| public void viewTarget(String name) throws ParseException { |
| } |
| |
| /** |
| * Invoked when a view target specification ends. |
| * @exception ParseException if an error occured while processing the |
| * fragment identifier |
| */ |
| public void endViewTarget() throws ParseException { |
| } |
| |
| /** |
| * 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 { |
| } |
| |
| /** |
| * Invoked when a 'zoomAndPan' specification has been parsed. |
| * @param magnify true if 'magnify' has been parsed. |
| * @exception ParseException if an error occured while processing the |
| * fragment identifier |
| */ |
| public void zoomAndPan(boolean magnify) { |
| } |
| |
| /** |
| * Implements {@link FragmentIdentifierHandler#endFragmentIdentifier()}. |
| */ |
| public void endFragmentIdentifier() throws ParseException { |
| } |
| } |