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: package javax.microedition.m2g;
027:
028: import java.io.InputStream;
029:
030: import com.sun.perseus.midp.SVGAnimatorImpl;
031:
032: /**
033: *
034: */
035: public abstract class SVGAnimator {
036:
037: /**
038: *
039: */
040: public static SVGAnimator createAnimator(SVGImage svgImage) {
041: return SVGAnimatorImpl.createAnimator(svgImage, null);
042: }
043:
044: /**
045: *
046: */
047: public static SVGAnimator createAnimator(SVGImage svgImage,
048: String componentBaseClass) {
049: return SVGAnimatorImpl.createAnimator(svgImage,
050: componentBaseClass);
051: }
052:
053: /**
054: *
055: */
056: public abstract void setSVGEventListener(
057: SVGEventListener svgEventListener);
058:
059: /**
060: *
061: */
062: public abstract void setTimeIncrement(float timeIncrement);
063:
064: /**
065: *
066: */
067: public abstract float getTimeIncrement();
068:
069: /**
070: *
071: */
072: public abstract void play();
073:
074: /**
075: *
076: */
077: public abstract void pause();
078:
079: /**
080: *
081: */
082: public abstract void stop();
083:
084: /**
085: *
086: */
087: public abstract Object getTargetComponent();
088:
089: /**
090: *
091: */
092: public abstract void invokeAndWait(java.lang.Runnable runnable)
093: throws InterruptedException;
094:
095: /**
096: *
097: */
098: public abstract void invokeLater(java.lang.Runnable runnable);
099:
100: }
|