previous   next   contents   index

25 February, 2000

Appendix B: Java Language Binding

This appendix contains the complete Java bindings for the SYMM Object Model. The definitions are divided into SMIL.

The Java files are also available as http://www.w3.org/TR/2000/WD-smil-boston-dom-20000225/java-binding.zip

B.1: SMIL Document Object Model

org/w3c/dom/smil/SMILDocument.java:

package org.w3c.dom.smil;

import org.w3c.dom.Document;

public interface SMILDocument extends Document, ElementSequentialTimeContainer {
}

org/w3c/dom/smil/SMILElement.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;
import org.w3c.dom.Element;

public interface SMILElement extends Element {
    public String getId();
    public void setId(String id)
 throws DOMException;

}

org/w3c/dom/smil/SMILLayoutElement.java:

package org.w3c.dom.smil;

public interface SMILLayoutElement extends SMILElement {
    public String getType();

    public boolean getResolved();

}

org/w3c/dom/smil/ElementLayout.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface ElementLayout {
    public String getTitle();
    public void setTitle(String title)
 throws DOMException;

    public String getBackgroundColor();
    public void setBackgroundColor(String backgroundColor)
 throws DOMException;

    public int getHeight();
    public void setHeight(int height)
 throws DOMException;

    public int getWidth();
    public void setWidth(int width)
 throws DOMException;

}

org/w3c/dom/smil/SMILTopLayoutElement.java:

package org.w3c.dom.smil;

public interface SMILTopLayoutElement extends SMILElement, ElementLayout {
}

org/w3c/dom/smil/SMILRootLayoutElement.java:

package org.w3c.dom.smil;

public interface SMILRootLayoutElement extends SMILElement, ElementLayout {
}

org/w3c/dom/smil/SMILRegionElement.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface SMILRegionElement extends SMILElement, ElementLayout {
    public String getFit();
    public void setFit(String fit)
 throws DOMException;

    public String getTop();
    public void setTop(String top)
 throws DOMException;

    public int getZIndex();
    public void setZIndex(int zIndex)
 throws DOMException;

}

org/w3c/dom/smil/SMILRegionInterface.java:

package org.w3c.dom.smil;

public interface SMILRegionInterface {
    public SMILRegionElement getRegion();
    public void setRegion(SMILRegionElement region);

}

org/w3c/dom/smil/Time.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;
import org.w3c.dom.Element;

public interface Time {
    public boolean getResolved();

    public double getResolvedOffset();

    // TimeTypes
    public static final short SMIL_TIME_INDEFINITE      = 0;
    public static final short SMIL_TIME_OFFSET          = 1;
    public static final short SMIL_TIME_SYNC_BASED      = 2;
    public static final short SMIL_TIME_EVENT_BASED     = 3;
    public static final short SMIL_TIME_WALLCLOCK       = 4;
    public static final short SMIL_TIME_MEDIA_MARKER    = 5;

    public short getTimeType();

    public double getOffset();
    public void setOffset(double offset)
 throws DOMException;

    public Element getBaseElement();
    public void setBaseElement(Element baseElement)
 throws DOMException;

    public boolean getBaseBegin();
    public void setBaseBegin(boolean baseBegin)
 throws DOMException;

    public String getEvent();
    public void setEvent(String event)
 throws DOMException;

    public String getMarker();
    public void setMarker(String marker)
 throws DOMException;

}

org/w3c/dom/smil/TimeList.java:

package org.w3c.dom.smil;

public interface TimeList {
    public Time item(int index);

    public int getLength();

}

org/w3c/dom/smil/ElementTime.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface ElementTime {
    public TimeList getBegin();
    public void setBegin(TimeList begin)
                     throws DOMException;

    public TimeList getEnd();
    public void setEnd(TimeList end)
                     throws DOMException;

    public float getDur();
    public void setDur(float dur)
                     throws DOMException;

    // restartTypes
    public static final short RESTART_ALWAYS            = 0;
    public static final short RESTART_NEVER             = 1;
    public static final short RESTART_WHEN_NOT_ACTIVE   = 2;

    public short getRestart();
    public void setRestart(short restart)
                     throws DOMException;

    // fillTypes
    public static final short FILL_REMOVE               = 0;
    public static final short FILL_FREEZE               = 1;

    public short getFill();
    public void setFill(short fill)
                     throws DOMException;

    public float getRepeatCount();
    public void setRepeatCount(float repeatCount)
                     throws DOMException;

    public float getRepeatDur();
    public void setRepeatDur(float repeatDur)
                     throws DOMException;

    public boolean beginElement();

    public boolean endElement();

    public void pauseElement();

    public void resumeElement();

    public void seekElement(float seekTo);

}

org/w3c/dom/smil/ElementTimeManipulation.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface ElementTimeManipulation {
    public float getSpeed();
    public void setSpeed(float speed)
                            throws DOMException;

    public float getAccelerate();
    public void setAccelerate(float accelerate)
                            throws DOMException;

    public float getDecelerate();
    public void setDecelerate(float decelerate)
                            throws DOMException;

    public boolean getAutoReverse();
    public void setAutoReverse(boolean autoReverse)
                            throws DOMException;

}

org/w3c/dom/smil/ElementTimeContainer.java:

package org.w3c.dom.smil;

import org.w3c.dom.NodeList;

public interface ElementTimeContainer extends ElementTime {
    public NodeList getTimeChildren();

    public NodeList getActiveChildrenAt(float instant);

}

org/w3c/dom/smil/ElementSyncBehavior.java:

package org.w3c.dom.smil;

public interface ElementSyncBehavior {
    public String getSyncBehavior();

    public float getSyncTolerance();

    public String getDefaultSyncBehavior();

    public float getDefaultSyncTolerance();

    public boolean getSyncMaster();

}

org/w3c/dom/smil/ElementParallelTimeContainer.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface ElementParallelTimeContainer extends ElementTimeContainer {
    public String getEndSync();
    public void setEndSync(String endSync)
                                        throws DOMException;

    public float getImplicitDuration();

}

org/w3c/dom/smil/ElementSequentialTimeContainer.java:

package org.w3c.dom.smil;

public interface ElementSequentialTimeContainer extends ElementTimeContainer {
}

org/w3c/dom/smil/ElementExclusiveTimeContainer.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;
import org.w3c.dom.NodeList;

public interface ElementExclusiveTimeContainer extends ElementTimeContainer {
    public String getEndSync();
    public void setEndSync(String endSync)
                                     throws DOMException;

    public NodeList getPausedElements();

}

org/w3c/dom/smil/TimeEvent.java:

package org.w3c.dom.smil;

import org.w3c.dom.events.Event;
import org.w3c.dom.views.AbstractView;

public interface TimeEvent extends Event {
    public AbstractView getView();

    public int getDetail();

    public void initTimeEvent(String typeArg, 
                              AbstractView viewArg, 
                              int detailArg);

}

org/w3c/dom/smil/SMILMediaElement.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface SMILMediaElement extends ElementTime, SMILElement {
    public String getAbstractAttr();
    public void setAbstractAttr(String abstractAttr)
                              throws DOMException;

    public String getAlt();
    public void setAlt(String alt)
                              throws DOMException;

    public String getAuthor();
    public void setAuthor(String author)
                              throws DOMException;

    public String getClipBegin();
    public void setClipBegin(String clipBegin)
                              throws DOMException;

    public String getClipEnd();
    public void setClipEnd(String clipEnd)
                              throws DOMException;

    public String getCopyright();
    public void setCopyright(String copyright)
                              throws DOMException;

    public String getLongdesc();
    public void setLongdesc(String longdesc)
                              throws DOMException;

    public String getPort();
    public void setPort(String port)
                              throws DOMException;

    public String getReadIndex();
    public void setReadIndex(String readIndex)
                              throws DOMException;

    public String getRtpformat();
    public void setRtpformat(String rtpformat)
                              throws DOMException;

    public String getSrc();
    public void setSrc(String src)
                              throws DOMException;

    public String getStripRepeat();
    public void setStripRepeat(String stripRepeat)
                              throws DOMException;

    public String getTitle();
    public void setTitle(String title)
                              throws DOMException;

    public String getTransport();
    public void setTransport(String transport)
                              throws DOMException;

    public String getType();
    public void setType(String type)
                              throws DOMException;

}

org/w3c/dom/smil/SMILRefElement.java:

package org.w3c.dom.smil;

public interface SMILRefElement extends SMILMediaElement {
}

org/w3c/dom/smil/ElementTimeControl.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface ElementTimeControl {
    public boolean beginElement()
                                throws DOMException;

    public boolean beginElementAt(float offset)
                                  throws DOMException;

    public boolean endElement()
                              throws DOMException;

    public boolean endElementAt(float offset)
                                throws DOMException;

}

org/w3c/dom/smil/SMILAnimation.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface SMILAnimation extends SMILElement, ElementTargetAttributes, ElementTime, ElementTimeControl {
    // additiveTypes
    public static final short ADDITIVE_REPLACE          = 0;
    public static final short ADDITIVE_SUM              = 1;

    public short getAdditive();
    public void setAdditive(short additive)
                                throws DOMException;

    // accumulateTypes
    public static final short ACCUMULATE_NONE           = 0;
    public static final short ACCUMULATE_SUM            = 1;

    public short getAccumulate();
    public void setAccumulate(short accumulate)
                                throws DOMException;

    // calcModeTypes
    public static final short CALCMODE_DISCRETE         = 0;
    public static final short CALCMODE_LINEAR           = 1;
    public static final short CALCMODE_PACED            = 2;
    public static final short CALCMODE_SPLINE           = 3;

    public short getCalcMode();
    public void setCalcMode(short calcMode)
                                throws DOMException;

    public String getKeySplines();
    public void setKeySplines(String keySplines)
                                throws DOMException;

    public TimeList getKeyTimes();
    public void setKeyTimes(TimeList keyTimes)
                                throws DOMException;

    public String getValues();
    public void setValues(String values)
                                throws DOMException;

    public String getFrom();
    public void setFrom(String from)
                                throws DOMException;

    public String getTo();
    public void setTo(String to)
                                throws DOMException;

    public String getBy();
    public void setBy(String by)
                                throws DOMException;

}

org/w3c/dom/smil/ElementTargetAttributes.java:

package org.w3c.dom.smil;

public interface ElementTargetAttributes {
    public String getAttributeName();
    public void setAttributeName(String attributeName);

    // attributeTypes
    public static final short ATTRIBUTE_TYPE_AUTO       = 0;
    public static final short ATTRIBUTE_TYPE_CSS        = 1;
    public static final short ATTRIBUTE_TYPE_XML        = 2;

    public short getAttributeType();
    public void setAttributeType(short attributeType);

}

org/w3c/dom/smil/SMILAnimateElement.java:

package org.w3c.dom.smil;

public interface SMILAnimateElement extends SMILAnimation {
}

org/w3c/dom/smil/SMILSetElement.java:

package org.w3c.dom.smil;

public interface SMILSetElement extends ElementTimeControl, ElementTime, ElementTargetAttributes, SMILElement {
    public String getTo();
    public void setTo(String to);

}

org/w3c/dom/smil/SMILAnimateMotionElement.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface SMILAnimateMotionElement extends SMILAnimateElement {
    public String getPath();
    public void setPath(String path)
                                throws DOMException;

    public String getOrigin();
    public void setOrigin(String origin)
                                throws DOMException;

}

org/w3c/dom/smil/SMILAnimateColorElement.java:

package org.w3c.dom.smil;

public interface SMILAnimateColorElement extends SMILAnimation {
}

org/w3c/dom/smil/SMILSwitchElement.java:

package org.w3c.dom.smil;

import org.w3c.dom.Element;

public interface SMILSwitchElement extends SMILElement {
    public Element getSelectedElement();

}

org/w3c/dom/smil/ElementTest.java:

package org.w3c.dom.smil;

import org.w3c.dom.DOMException;

public interface ElementTest {
    public int getSystemBitrate();
    public void setSystemBitrate(int systemBitrate)
                                      throws DOMException;

    public boolean getSystemCaptions();
    public void setSystemCaptions(boolean systemCaptions)
                                      throws DOMException;

    public String getSystemLanguage();
    public void setSystemLanguage(String systemLanguage)
                                      throws DOMException;

    public boolean getSystemRequired();

    public boolean getSystemScreenSize();

    public boolean getSystemScreenDepth();

    public String getSystemOverdubOrSubtitle();
    public void setSystemOverdubOrSubtitle(String systemOverdubOrSubtitle)
                                      throws DOMException;

    public boolean getSystemAudioDesc();
    public void setSystemAudioDesc(boolean systemAudioDesc)
                                      throws DOMException;

}


previous   next   contents   index