001    /*
002     * SVGLoaderHelper.java
003     *
004     *
005     *  The Salamander Project - 2D and 3D graphics libraries in Java
006     *  Copyright (C) 2004 Mark McKay
007     *
008     *  This library is free software; you can redistribute it and/or
009     *  modify it under the terms of the GNU Lesser General Public
010     *  License as published by the Free Software Foundation; either
011     *  version 2.1 of the License, or (at your option) any later version.
012     *
013     *  This library is distributed in the hope that it will be useful,
014     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
015     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
016     *  Lesser General Public License for more details.
017     *
018     *  You should have received a copy of the GNU Lesser General Public
019     *  License along with this library; if not, write to the Free Software
020     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021     *
022     *  Mark McKay can be contacted at mark@kitfox.com.  Salamander and other
023     *  projects can be found at http://www.kitfox.com
024     *
025     * Created on February 18, 2004, 5:37 PM
026     */
027    
028    package com.kitfox.svg;
029    
030    import java.net.*;
031    import java.io.*;
032    
033    import com.kitfox.svg.animation.parser.*;
034    
035    /**
036     * @author Mark McKay
037     * @author <a href="mailto:mark@kitfox.com">Mark McKay</a>
038     */
039    public class SVGLoaderHelper
040    {
041        /** This is the URL that this document is being loaded from */
042    //    public final URL docRoot;
043    //    public final URI docRoot;
044    
045        /** This is the universe of all currently loaded SVG documents */
046        public final SVGUniverse universe;
047    
048        /** This is the diagram which the load process is currently loading */
049        public final SVGDiagram diagram;
050    
051        public final URI xmlBase;
052    
053        /**
054         * Animate nodes use this to parse their time strings
055         */
056        public final AnimTimeParser animTimeParser = new AnimTimeParser(new StringReader(""));
057        
058        /** Creates a new instance of SVGLoaderHelper */
059        public SVGLoaderHelper(URI xmlBase, SVGUniverse universe, SVGDiagram diagram)
060        {
061            /*
062            URI docURI = null;
063            try
064            {
065                docURI = new URI(docRoot.toString());
066            }
067            catch (Exception e)
068            {
069                e.printStackTrace();
070            }
071             */
072            
073            this.xmlBase = xmlBase;
074    //        this.docRoot = docURI;
075            this.universe = universe;
076            this.diagram = diagram;
077        }
078    
079    }