001: /*
002: *
003: *
004: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
005: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
006: *
007: * This program is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU General Public License version
009: * 2 only, as published by the Free Software Foundation.
010: *
011: * This program is distributed in the hope that it will be useful, but
012: * WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * General Public License version 2 for more details (a copy is
015: * included at /legal/license.txt).
016: *
017: * You should have received a copy of the GNU General Public License
018: * version 2 along with this work; if not, write to the Free Software
019: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA
021: *
022: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
023: * Clara, CA 95054 or visit www.sun.com if you need additional
024: * information or have any questions.
025: */
026:
027: package javax.microedition.m2g;
028:
029: import org.w3c.dom.Document;
030: import org.w3c.dom.svg.SVGElement;
031: import org.w3c.dom.DOMException;
032: import com.sun.perseus.model.SVGImageImpl;
033: import java.io.IOException;
034:
035: /**
036: *
037: */
038: public class SVGImage extends ScalableImage {
039:
040: /**
041: *
042: */
043: protected SVGImage() {
044: }
045:
046: /**
047: *
048: */
049: public Document getDocument() {
050: return null;
051: }
052:
053: /**
054: *
055: */
056: public static SVGImage createEmptyImage(
057: ExternalResourceHandler handler) {
058: return SVGImageImpl.createEmptyImage(handler);
059: }
060:
061: /**
062: *
063: */
064: public void dispatchMouseEvent(String type, int x, int y)
065: throws DOMException {
066: };
067:
068: /**
069: *
070: */
071: public void activate() {
072: };
073:
074: /**
075: *
076: */
077: public void focusOn(SVGElement element) throws DOMException {
078: };
079:
080: /**
081: *
082: */
083: public void incrementTime(float seconds) {
084: };
085:
086: // Inherited from ScalableImage...
087:
088: /**
089: *
090: */
091: public static ScalableImage createImage(java.io.InputStream stream,
092: ExternalResourceHandler handler) throws IOException {
093: return SVGImageImpl.createImage(stream, handler);
094: }
095:
096: /**
097: *
098: */
099: public static ScalableImage createImage(String URL,
100: ExternalResourceHandler handler) throws IOException {
101: return SVGImageImpl.createImage(URL, handler);
102: }
103:
104: /**
105: *
106: */
107: public void setViewportWidth(int width) {
108: }
109:
110: /**
111: *
112: */
113: public void setViewportHeight(int height) {
114: }
115:
116: /**
117: *
118: */
119: public int getViewportWidth() {
120: return 0;
121: }
122:
123: /**
124: *
125: */
126: public int getViewportHeight() {
127: return 0;
128: }
129:
130: /**
131: *
132: */
133: public void requestCompleted(String URI,
134: java.io.InputStream resourceData) throws IOException {
135: }
136:
137: }
|