1 /* 2 3 Copyright 2003 The Apache Software Foundation 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 17 */ 18 package org.w3c.dom.svg; 19 20 /** 21 * This interface must be implemented in order to call Java code from 22 * an SVG document. 23 * 24 * A <code>EventListenerInitializer</code> instance is called when 25 * a 'script' element's 'type' attribute value is 'application/java-archive' and when 26 * the manifest of the jar file referenced by the 'xlink:href' attribute contains 27 * a 'SVG-Handler-Class' entry. The value of this entry must be the classname of the 28 * <code>EventListenerInitializer</code> to call. 29 * 30 * This classes implementing this interface must have a default 31 * constructor. 32 * 33 * @version $Id: EventListenerInitializer.java,v 1.2 2005/03/27 08:58:37 cam Exp $ 34 */ 35 public interface EventListenerInitializer { 36 37 /** 38 * This method is called by the SVG viewer 39 * when the scripts are loaded to register 40 * the listener needed. 41 * @param doc The current document. 42 */ 43 public void initializeEventListeners(SVGDocument doc); 44 } 45