forked from upstream-mirrors/quik
Include android-smsmms source for modification
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* The <code>DocumentEvent</code> interface provides a mechanism by which the
|
||||
* user can create an Event of a type supported by the implementation. It is
|
||||
* expected that the <code>DocumentEvent</code> interface will be
|
||||
* implemented on the same object which implements the <code>Document</code>
|
||||
* interface in an implementation which supports the Event model.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface DocumentEvent {
|
||||
/**
|
||||
*
|
||||
* @param eventType The <code>eventType</code> parameter specifies the
|
||||
* type of <code>Event</code> interface to be created. If the
|
||||
* <code>Event</code> interface specified is supported by the
|
||||
* implementation this method will return a new <code>Event</code> of
|
||||
* the interface type requested. If the <code>Event</code> is to be
|
||||
* dispatched via the <code>dispatchEvent</code> method the
|
||||
* appropriate event init method must be called after creation in
|
||||
* order to initialize the <code>Event</code>'s values. As an example,
|
||||
* a user wishing to synthesize some kind of <code>UIEvent</code>
|
||||
* would call <code>createEvent</code> with the parameter "UIEvents".
|
||||
* The <code>initUIEvent</code> method could then be called on the
|
||||
* newly created <code>UIEvent</code> to set the specific type of
|
||||
* UIEvent to be dispatched and set its context information.The
|
||||
* <code>createEvent</code> method is used in creating
|
||||
* <code>Event</code>s when it is either inconvenient or unnecessary
|
||||
* for the user to create an <code>Event</code> themselves. In cases
|
||||
* where the implementation provided <code>Event</code> is
|
||||
* insufficient, users may supply their own <code>Event</code>
|
||||
* implementations for use with the <code>dispatchEvent</code> method.
|
||||
* @return The newly created <code>Event</code>
|
||||
* @exception DOMException
|
||||
* NOT_SUPPORTED_ERR: Raised if the implementation does not support the
|
||||
* type of <code>Event</code> interface requested
|
||||
*/
|
||||
public Event createEvent(String eventType)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.events;
|
||||
|
||||
/**
|
||||
* The <code>Event</code> interface is used to provide contextual information
|
||||
* about an event to the handler processing the event. An object which
|
||||
* implements the <code>Event</code> interface is generally passed as the
|
||||
* first parameter to an event handler. More specific context information is
|
||||
* passed to event handlers by deriving additional interfaces from
|
||||
* <code>Event</code> which contain information directly relating to the
|
||||
* type of event they accompany. These derived interfaces are also
|
||||
* implemented by the object passed to the event listener.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface Event {
|
||||
// PhaseType
|
||||
/**
|
||||
* The current event phase is the capturing phase.
|
||||
*/
|
||||
public static final short CAPTURING_PHASE = 1;
|
||||
/**
|
||||
* The event is currently being evaluated at the target
|
||||
* <code>EventTarget</code>.
|
||||
*/
|
||||
public static final short AT_TARGET = 2;
|
||||
/**
|
||||
* The current event phase is the bubbling phase.
|
||||
*/
|
||||
public static final short BUBBLING_PHASE = 3;
|
||||
|
||||
/**
|
||||
* The name of the event (case-insensitive). The name must be an XML name.
|
||||
*/
|
||||
public String getType();
|
||||
|
||||
/**
|
||||
* Used to indicate the <code>EventTarget</code> to which the event was
|
||||
* originally dispatched.
|
||||
*/
|
||||
public EventTarget getTarget();
|
||||
|
||||
/**
|
||||
* Used to indicate the <code>EventTarget</code> whose
|
||||
* <code>EventListeners</code> are currently being processed. This is
|
||||
* particularly useful during capturing and bubbling.
|
||||
*/
|
||||
public EventTarget getCurrentTarget();
|
||||
|
||||
/**
|
||||
* Used to indicate which phase of event flow is currently being
|
||||
* evaluated.
|
||||
*/
|
||||
public short getEventPhase();
|
||||
|
||||
/**
|
||||
* Used to indicate whether or not an event is a bubbling event. If the
|
||||
* event can bubble the value is true, else the value is false.
|
||||
*/
|
||||
public boolean getBubbles();
|
||||
|
||||
/**
|
||||
* Used to indicate whether or not an event can have its default action
|
||||
* prevented. If the default action can be prevented the value is true,
|
||||
* else the value is false.
|
||||
*/
|
||||
public boolean getCancelable();
|
||||
|
||||
/**
|
||||
* Used to specify the time (in milliseconds relative to the epoch) at
|
||||
* which the event was created. Due to the fact that some systems may
|
||||
* not provide this information the value of <code>timeStamp</code> may
|
||||
* be not available for all events. When not available, a value of 0
|
||||
* will be returned. Examples of epoch time are the time of the system
|
||||
* start or 0:0:0 UTC 1st January 1970.
|
||||
*/
|
||||
public long getTimeStamp();
|
||||
|
||||
/**
|
||||
* The <code>stopPropagation</code> method is used prevent further
|
||||
* propagation of an event during event flow. If this method is called
|
||||
* by any <code>EventListener</code> the event will cease propagating
|
||||
* through the tree. The event will complete dispatch to all listeners
|
||||
* on the current <code>EventTarget</code> before event flow stops. This
|
||||
* method may be used during any stage of event flow.
|
||||
*/
|
||||
public void stopPropagation();
|
||||
|
||||
/**
|
||||
* If an event is cancelable, the <code>preventDefault</code> method is
|
||||
* used to signify that the event is to be canceled, meaning any default
|
||||
* action normally taken by the implementation as a result of the event
|
||||
* will not occur. If, during any stage of event flow, the
|
||||
* <code>preventDefault</code> method is called the event is canceled.
|
||||
* Any default action associated with the event will not occur. Calling
|
||||
* this method for a non-cancelable event has no effect. Once
|
||||
* <code>preventDefault</code> has been called it will remain in effect
|
||||
* throughout the remainder of the event's propagation. This method may
|
||||
* be used during any stage of event flow.
|
||||
*/
|
||||
public void preventDefault();
|
||||
|
||||
/**
|
||||
* The <code>initEvent</code> method is used to initialize the value of an
|
||||
* <code>Event</code> created through the <code>DocumentEvent</code>
|
||||
* interface. This method may only be called before the
|
||||
* <code>Event</code> has been dispatched via the
|
||||
* <code>dispatchEvent</code> method, though it may be called multiple
|
||||
* times during that phase if necessary. If called multiple times the
|
||||
* final invocation takes precedence. If called from a subclass of
|
||||
* <code>Event</code> interface only the values specified in the
|
||||
* <code>initEvent</code> method are modified, all other attributes are
|
||||
* left unchanged.
|
||||
* @param eventTypeArg Specifies the event type. This type may be any
|
||||
* event type currently defined in this specification or a new event
|
||||
* type.. The string must be an XML name. Any new event type must not
|
||||
* begin with any upper, lower, or mixed case version of the string
|
||||
* "DOM". This prefix is reserved for future DOM event sets. It is
|
||||
* also strongly recommended that third parties adding their own
|
||||
* events use their own prefix to avoid confusion and lessen the
|
||||
* probability of conflicts with other new events.
|
||||
* @param canBubbleArg Specifies whether or not the event can bubble.
|
||||
* @param cancelableArg Specifies whether or not the event's default
|
||||
* action can be prevented.
|
||||
*/
|
||||
public void initEvent(String eventTypeArg,
|
||||
boolean canBubbleArg,
|
||||
boolean cancelableArg);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.events;
|
||||
|
||||
/**
|
||||
* Event operations may throw an <code>EventException</code> as specified in
|
||||
* their method descriptions.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public class EventException extends RuntimeException {
|
||||
public EventException(short code, String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
public short code;
|
||||
// EventExceptionCode
|
||||
/**
|
||||
* If the <code>Event</code>'s type was not specified by initializing the
|
||||
* event before the method was called. Specification of the Event's type
|
||||
* as <code>null</code> or an empty string will also trigger this
|
||||
* exception.
|
||||
*/
|
||||
public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.events;
|
||||
|
||||
/**
|
||||
* The <code>EventListener</code> interface is the primary method for
|
||||
* handling events. Users implement the <code>EventListener</code> interface
|
||||
* and register their listener on an <code>EventTarget</code> using the
|
||||
* <code>AddEventListener</code> method. The users should also remove their
|
||||
* <code>EventListener</code> from its <code>EventTarget</code> after they
|
||||
* have completed using the listener.
|
||||
* <p> When a <code>Node</code> is copied using the <code>cloneNode</code>
|
||||
* method the <code>EventListener</code>s attached to the source
|
||||
* <code>Node</code> are not attached to the copied <code>Node</code>. If
|
||||
* the user wishes the same <code>EventListener</code>s to be added to the
|
||||
* newly created copy the user must add them manually.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface EventListener {
|
||||
/**
|
||||
* This method is called whenever an event occurs of the type for which
|
||||
* the <code> EventListener</code> interface was registered.
|
||||
* @param evt The <code>Event</code> contains contextual information
|
||||
* about the event. It also contains the <code>stopPropagation</code>
|
||||
* and <code>preventDefault</code> methods which are used in
|
||||
* determining the event's flow and default action.
|
||||
*/
|
||||
public void handleEvent(Event evt);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.events;
|
||||
|
||||
/**
|
||||
* The <code>EventTarget</code> interface is implemented by all
|
||||
* <code>Nodes</code> in an implementation which supports the DOM Event
|
||||
* Model. Therefore, this interface can be obtained by using
|
||||
* binding-specific casting methods on an instance of the <code>Node</code>
|
||||
* interface. The interface allows registration and removal of
|
||||
* <code>EventListeners</code> on an <code>EventTarget</code> and dispatch
|
||||
* of events to that <code>EventTarget</code>.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface EventTarget {
|
||||
/**
|
||||
* This method allows the registration of event listeners on the event
|
||||
* target. If an <code>EventListener</code> is added to an
|
||||
* <code>EventTarget</code> while it is processing an event, it will not
|
||||
* be triggered by the current actions but may be triggered during a
|
||||
* later stage of event flow, such as the bubbling phase.
|
||||
* <br> If multiple identical <code>EventListener</code>s are registered
|
||||
* on the same <code>EventTarget</code> with the same parameters the
|
||||
* duplicate instances are discarded. They do not cause the
|
||||
* <code>EventListener</code> to be called twice and since they are
|
||||
* discarded they do not need to be removed with the
|
||||
* <code>removeEventListener</code> method.
|
||||
* @param type The event type for which the user is registering
|
||||
* @param listener The <code>listener</code> parameter takes an interface
|
||||
* implemented by the user which contains the methods to be called
|
||||
* when the event occurs.
|
||||
* @param useCapture If true, <code>useCapture</code> indicates that the
|
||||
* user wishes to initiate capture. After initiating capture, all
|
||||
* events of the specified type will be dispatched to the registered
|
||||
* <code>EventListener</code> before being dispatched to any
|
||||
* <code>EventTargets</code> beneath them in the tree. Events which
|
||||
* are bubbling upward through the tree will not trigger an
|
||||
* <code>EventListener</code> designated to use capture.
|
||||
*/
|
||||
public void addEventListener(String type,
|
||||
EventListener listener,
|
||||
boolean useCapture);
|
||||
|
||||
/**
|
||||
* This method allows the removal of event listeners from the event
|
||||
* target. If an <code>EventListener</code> is removed from an
|
||||
* <code>EventTarget</code> while it is processing an event, it will not
|
||||
* be triggered by the current actions. <code>EventListener</code>s can
|
||||
* never be invoked after being removed.
|
||||
* <br>Calling <code>removeEventListener</code> with arguments which do
|
||||
* not identify any currently registered <code>EventListener</code> on
|
||||
* the <code>EventTarget</code> has no effect.
|
||||
* @param type Specifies the event type of the <code>EventListener</code>
|
||||
* being removed.
|
||||
* @param listener The <code>EventListener</code> parameter indicates the
|
||||
* <code>EventListener </code> to be removed.
|
||||
* @param useCapture Specifies whether the <code>EventListener</code>
|
||||
* being removed was registered as a capturing listener or not. If a
|
||||
* listener was registered twice, one with capture and one without,
|
||||
* each must be removed separately. Removal of a capturing listener
|
||||
* does not affect a non-capturing version of the same listener, and
|
||||
* vice versa.
|
||||
*/
|
||||
public void removeEventListener(String type,
|
||||
EventListener listener,
|
||||
boolean useCapture);
|
||||
|
||||
/**
|
||||
* This method allows the dispatch of events into the implementations
|
||||
* event model. Events dispatched in this manner will have the same
|
||||
* capturing and bubbling behavior as events dispatched directly by the
|
||||
* implementation. The target of the event is the
|
||||
* <code> EventTarget</code> on which <code>dispatchEvent</code> is
|
||||
* called.
|
||||
* @param evt Specifies the event type, behavior, and contextual
|
||||
* information to be used in processing the event.
|
||||
* @return The return value of <code>dispatchEvent</code> indicates
|
||||
* whether any of the listeners which handled the event called
|
||||
* <code>preventDefault</code>. If <code>preventDefault</code> was
|
||||
* called the value is false, else the value is true.
|
||||
* @exception EventException
|
||||
* UNSPECIFIED_EVENT_TYPE_ERR: Raised if the <code>Event</code>'s type
|
||||
* was not specified by initializing the event before
|
||||
* <code>dispatchEvent</code> was called. Specification of the
|
||||
* <code>Event</code>'s type as <code>null</code> or an empty string
|
||||
* will also trigger this exception.
|
||||
*/
|
||||
public boolean dispatchEvent(Event evt)
|
||||
throws EventException;
|
||||
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
/**
|
||||
* This interface defines a time container with semantics based upon par, but
|
||||
* with the additional constraint that only one child element may play at a
|
||||
* time.
|
||||
*/
|
||||
public interface ElementExclusiveTimeContainer extends ElementTimeContainer {
|
||||
/**
|
||||
* Controls the end of the container. Need to address thr id-ref value.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getEndSync();
|
||||
public void setEndSync(String endSync)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This should support another method to get the ordered collection of
|
||||
* paused elements (the paused stack) at a given point in time.
|
||||
* @return All paused elements at the current time.
|
||||
*/
|
||||
public NodeList getPausedElements();
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* This interface is used by SMIL elements root-layout, top-layout and region.
|
||||
*
|
||||
*/
|
||||
public interface ElementLayout {
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getTitle();
|
||||
public void setTitle(String title)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getBackgroundColor();
|
||||
public void setBackgroundColor(String backgroundColor)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public int getHeight();
|
||||
public void setHeight(int height)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public int getWidth();
|
||||
public void setWidth(int width)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* A <code>parallel</code> container defines a simple parallel time grouping
|
||||
* in which multiple elements can play back at the same time. It may have to
|
||||
* specify a repeat iteration. (?)
|
||||
*/
|
||||
public interface ElementParallelTimeContainer extends ElementTimeContainer {
|
||||
/**
|
||||
* Controls the end of the container. Need to address thr id-ref value.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getEndSync();
|
||||
public void setEndSync(String endSync)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* This method returns the implicit duration in seconds.
|
||||
* @return The implicit duration in seconds or -1 if the implicit is
|
||||
* unknown (indefinite?).
|
||||
*/
|
||||
public float getImplicitDuration();
|
||||
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* A <code>seq</code> container defines a sequence of elements in which
|
||||
* elements play one after the other.
|
||||
*/
|
||||
public interface ElementSequentialTimeContainer extends ElementTimeContainer {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* The synchronization behavior extension.
|
||||
*/
|
||||
public interface ElementSyncBehavior {
|
||||
/**
|
||||
* The runtime synchronization behavior for an element.
|
||||
*/
|
||||
public String getSyncBehavior();
|
||||
|
||||
/**
|
||||
* The sync tolerance for the associated element. It has an effect only if
|
||||
* the element has <code>syncBehavior="locked"</code> .
|
||||
*/
|
||||
public float getSyncTolerance();
|
||||
|
||||
/**
|
||||
* Defines the default value for the runtime synchronization behavior for
|
||||
* an element, and all descendents.
|
||||
*/
|
||||
public String getDefaultSyncBehavior();
|
||||
|
||||
/**
|
||||
* Defines the default value for the sync tolerance for an element, and
|
||||
* all descendents.
|
||||
*/
|
||||
public float getDefaultSyncTolerance();
|
||||
|
||||
/**
|
||||
* If set to true, forces the time container playback to sync to this
|
||||
* element.
|
||||
*/
|
||||
public boolean getSyncMaster();
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* This interface define the set of animation target extensions.
|
||||
*/
|
||||
public interface ElementTargetAttributes {
|
||||
/**
|
||||
* The name of the target attribute.
|
||||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
* A code representing the value of the attributeType attribute, as
|
||||
* defined above. Default value is <code>ATTRIBUTE_TYPE_CODE</code> .
|
||||
*/
|
||||
public short getAttributeType();
|
||||
public void setAttributeType(short attributeType);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* Defines the test attributes interface. See the Test attributes definition
|
||||
* .
|
||||
*/
|
||||
public interface ElementTest {
|
||||
/**
|
||||
* The systemBitrate value.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public int getSystemBitrate();
|
||||
public void setSystemBitrate(int systemBitrate)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The systemCaptions value.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public boolean getSystemCaptions();
|
||||
public void setSystemCaptions(boolean systemCaptions)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The systemLanguage value.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getSystemLanguage();
|
||||
public void setSystemLanguage(String systemLanguage)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The result of the evaluation of the systemRequired attribute.
|
||||
*/
|
||||
public boolean getSystemRequired();
|
||||
|
||||
/**
|
||||
* The result of the evaluation of the systemScreenSize attribute.
|
||||
*/
|
||||
public boolean getSystemScreenSize();
|
||||
|
||||
/**
|
||||
* The result of the evaluation of the systemScreenDepth attribute.
|
||||
*/
|
||||
public boolean getSystemScreenDepth();
|
||||
|
||||
/**
|
||||
* The value of the systemOverdubOrSubtitle attribute.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getSystemOverdubOrSubtitle();
|
||||
public void setSystemOverdubOrSubtitle(String systemOverdubOrSubtitle)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The value of the systemAudioDesc attribute.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public boolean getSystemAudioDesc();
|
||||
public void setSystemAudioDesc(boolean systemAudioDesc)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*
|
||||
* Difference to the original copy of this file:
|
||||
* 1) ADD public static final short FILL_AUTO = 2;
|
||||
* 2) ADD public short getFillDefault();
|
||||
* 3) AND public void setFillDefault(short fillDefault)
|
||||
* throws DOMException;
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* This interface defines the set of timing attributes that are common to all
|
||||
* timed elements.
|
||||
*/
|
||||
public interface ElementTime {
|
||||
/**
|
||||
* The desired value (as a list of times) of the begin instant of this
|
||||
* node.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public TimeList getBegin();
|
||||
public void setBegin(TimeList begin)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The list of active ends for this node.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public TimeList getEnd();
|
||||
public void setEnd(TimeList end)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The desired simple duration value of this node in seconds. Negative
|
||||
* value means "indefinite".
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
* A code representing the value of the restart attribute, as defined
|
||||
* above. Default value is <code>RESTART_ALWAYS</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
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 static final short FILL_AUTO = 2;
|
||||
|
||||
/**
|
||||
* A code representing the value of the fill attribute, as defined
|
||||
* above. Default value is <code>FILL_REMOVE</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public short getFill();
|
||||
public void setFill(short fill)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The repeatCount attribute causes the element to play repeatedly
|
||||
* (loop) for the specified number of times. A negative value repeat the
|
||||
* element indefinitely. Default value is 0 (unspecified).
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public float getRepeatCount();
|
||||
public void setRepeatCount(float repeatCount)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The repeatDur causes the element to play repeatedly (loop) for the
|
||||
* specified duration in milliseconds. Negative means "indefinite".
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public float getRepeatDur();
|
||||
public void setRepeatDur(float repeatDur)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Causes this element to begin the local timeline (subject to sync
|
||||
* constraints).
|
||||
* @return <code>true</code> if the method call was successful and the
|
||||
* element was begun. <code>false</code> if the method call failed.
|
||||
* Possible reasons for failure include: The element doesn't support
|
||||
* the <code>beginElement</code> method. (the <code>beginEvent</code>
|
||||
* attribute is not set to <code>"undefinite"</code> ) The element is
|
||||
* already active and can't be restart when it is active. (the
|
||||
* <code>restart</code> attribute is set to <code>"whenNotActive"</code>
|
||||
* ) The element is active or has been active and can't be restart.
|
||||
* (the <code>restart</code> attribute is set to <code>"never"</code> ).
|
||||
*
|
||||
*/
|
||||
public boolean beginElement();
|
||||
|
||||
/**
|
||||
* Causes this element to end the local timeline (subject to sync
|
||||
* constraints).
|
||||
* @return <code>true</code> if the method call was successful and the
|
||||
* element was endeed. <code>false</code> if method call failed.
|
||||
* Possible reasons for failure include: The element doesn't support
|
||||
* the <code>endElement</code> method. (the <code>endEvent</code>
|
||||
* attribute is not set to <code>"undefinite"</code> ) The element is
|
||||
* not active.
|
||||
*/
|
||||
public boolean endElement();
|
||||
|
||||
/**
|
||||
* Causes this element to pause the local timeline (subject to sync
|
||||
* constraints).
|
||||
*/
|
||||
public void pauseElement();
|
||||
|
||||
/**
|
||||
* Causes this element to resume a paused local timeline.
|
||||
*/
|
||||
public void resumeElement();
|
||||
|
||||
/**
|
||||
* Seeks this element to the specified point on the local timeline
|
||||
* (subject to sync constraints). If this is a timeline, this must seek
|
||||
* the entire timeline (i.e. propagate to all timeChildren).
|
||||
* @param seekTo The desired position on the local timeline in
|
||||
* milliseconds.
|
||||
*/
|
||||
public void seekElement(float seekTo);
|
||||
|
||||
public short getFillDefault();
|
||||
public void setFillDefault(short fillDefault)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
/**
|
||||
* This is a placeholder - subject to change. This represents generic
|
||||
* timelines.
|
||||
*/
|
||||
public interface ElementTimeContainer extends ElementTime {
|
||||
/**
|
||||
* A NodeList that contains all timed childrens of this node. If there are
|
||||
* no timed children, the <code>Nodelist</code> is empty. An iterator
|
||||
* is more appropriate here than a node list but it requires Traversal
|
||||
* module support.
|
||||
*/
|
||||
public NodeList getTimeChildren();
|
||||
|
||||
/**
|
||||
* Returns a list of child elements active at the specified invocation.
|
||||
* @param instant The desired position on the local timeline in
|
||||
* milliseconds.
|
||||
* @return List of timed child-elements active at instant.
|
||||
*/
|
||||
public NodeList getActiveChildrenAt(float instant);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ElementTimeControl {
|
||||
/**
|
||||
* Causes this element to begin the local timeline (subject to sync
|
||||
* constraints).
|
||||
* @return <code>true</code> if the method call was successful and the
|
||||
* element was begun. <code>false</code> if the method call failed.
|
||||
* Possible reasons for failure include: The element doesn't support
|
||||
* the <code>beginElement</code> method. (the <code>begin</code>
|
||||
* attribute is not set to <code>"indefinite"</code> ) The element is
|
||||
* already active and can't be restart when it is active. (the
|
||||
* <code>restart</code> attribute is set to <code>"whenNotActive"</code>
|
||||
* ) The element is active or has been active and can't be restart.
|
||||
* (the <code>restart</code> attribute is set to <code>"never"</code> ).
|
||||
*
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: The element was not defined with the appropriate syntax
|
||||
* to allow <code>beginElement</code> calls.
|
||||
*/
|
||||
public boolean beginElement()
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Causes this element to begin the local timeline (subject to sync
|
||||
* constraints), at the passed offset from the current time when the
|
||||
* method is called. If the offset is >= 0, the semantics are
|
||||
* equivalent to an event-base begin with the specified offset. If the
|
||||
* offset is < 0, the semantics are equivalent to beginElement(), but
|
||||
* the element active duration is evaluated as though the element had
|
||||
* begun at the passed (negative) offset from the current time when the
|
||||
* method is called.
|
||||
* @param offset The offset in seconds at which to begin the element.
|
||||
* @return <code>true</code> if the method call was successful and the
|
||||
* element was begun. <code>false</code> if the method call failed.
|
||||
* Possible reasons for failure include: The element doesn't support
|
||||
* the <code>beginElementAt</code> method. (the <code>begin</code>
|
||||
* attribute is not set to <code>"indefinite"</code> ) The element is
|
||||
* already active and can't be restart when it is active. (the
|
||||
* <code>restart</code> attribute is set to <code>"whenNotActive"</code>
|
||||
* ) The element is active or has been active and can't be restart.
|
||||
* (the <code>restart</code> attribute is set to <code>"never"</code> ).
|
||||
*
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: The element was not defined with the appropriate syntax
|
||||
* to allow <code>beginElementAt</code> calls.
|
||||
*/
|
||||
public boolean beginElementAt(float offset)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Causes this element to end the local timeline (subject to sync
|
||||
* constraints).
|
||||
* @return <code>true</code> if the method call was successful and the
|
||||
* element was ended. <code>false</code> if method call failed.
|
||||
* Possible reasons for failure include: The element doesn't support
|
||||
* the <code>endElement</code> method. (the <code>end</code> attribute
|
||||
* is not set to <code>"indefinite"</code> ) The element is not active.
|
||||
*
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: The element was not defined with the appropriate syntax
|
||||
* to allow <code>endElement</code> calls.
|
||||
*/
|
||||
public boolean endElement()
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Causes this element to end the local timeline (subject to sync
|
||||
* constraints) at the specified offset from the current time when the
|
||||
* method is called.
|
||||
* @param offset The offset in seconds at which to end the element. Must
|
||||
* be >= 0.
|
||||
* @return <code>true</code> if the method call was successful and the
|
||||
* element was ended. <code>false</code> if method call failed.
|
||||
* Possible reasons for failure include: The element doesn't support
|
||||
* the <code>endElementAt</code> method. (the <code>end</code>
|
||||
* attribute is not set to <code>"indefinite"</code> ) The element is
|
||||
* not active.
|
||||
* @exception DOMException
|
||||
* SYNTAX_ERR: The element was not defined with the appropriate syntax
|
||||
* to allow <code>endElementAt</code> calls.
|
||||
*/
|
||||
public boolean endElementAt(float offset)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* This interface support use-cases commonly associated with animation.
|
||||
* "accelerate" and "decelerate" are float values in the timing draft and
|
||||
* percentage values even in this draft if both of them represent a
|
||||
* percentage.
|
||||
*/
|
||||
public interface ElementTimeManipulation {
|
||||
/**
|
||||
* Defines the playback speed of element time. The value is specified as
|
||||
* a multiple of normal (parent time container) play speed. Legal values
|
||||
* are signed floating point values. Zero values are not allowed. The
|
||||
* default is <code>1.0</code> (no modification of speed).
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public float getSpeed();
|
||||
public void setSpeed(float speed)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The percentage value of the simple acceleration of time for the
|
||||
* element. Allowed values are from <code>0</code> to <code>100</code> .
|
||||
* Default value is <code>0</code> (no acceleration).
|
||||
* <br> The sum of the values for accelerate and decelerate must not exceed
|
||||
* 100. If it does, the deceleration value will be reduced to make the
|
||||
* sum legal.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public float getAccelerate();
|
||||
public void setAccelerate(float accelerate)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The percentage value of the simple decelerate of time for the
|
||||
* element. Allowed values are from <code>0</code> to <code>100</code> .
|
||||
* Default value is <code>0</code> (no deceleration).
|
||||
* <br> The sum of the values for accelerate and decelerate must not exceed
|
||||
* 100. If it does, the deceleration value will be reduced to make the
|
||||
* sum legal.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public float getDecelerate();
|
||||
public void setDecelerate(float decelerate)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The autoReverse attribute controls the "play forwards then backwards"
|
||||
* functionality. Default value is <code>false</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public boolean getAutoReverse();
|
||||
public void setAutoReverse(boolean autoReverse)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* This interface represents the SMIL <code>animateColor</code> element.
|
||||
*/
|
||||
public interface SMILAnimateColorElement extends SMILAnimation {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* This interface represents the SMIL <code>animate</code> element.
|
||||
*/
|
||||
public interface SMILAnimateElement extends SMILAnimation {
|
||||
}
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* This interface present the <code>animationMotion</code> element in SMIL.
|
||||
*/
|
||||
public interface SMILAnimateMotionElement extends SMILAnimateElement {
|
||||
/**
|
||||
* Specifies the curve that describes the attribute value as a function
|
||||
* of time. Check with the SVG spec for better support
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getPath();
|
||||
public void setPath(String path)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Specifies the origin of motion for the animation.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getOrigin();
|
||||
public void setOrigin(String origin)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* This interface define the set of animation extensions for SMIL. The
|
||||
* attributes will go in a XLink interface.
|
||||
*/
|
||||
public interface SMILAnimation extends SMILElement, ElementTargetAttributes, ElementTime, ElementTimeControl {
|
||||
// additiveTypes
|
||||
public static final short ADDITIVE_REPLACE = 0;
|
||||
public static final short ADDITIVE_SUM = 1;
|
||||
|
||||
/**
|
||||
* A code representing the value of the additive attribute, as defined
|
||||
* above. Default value is <code>ADDITIVE_REPLACE</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
* A code representing the value of the accumulate attribute, as defined
|
||||
* above. Default value is <code>ACCUMULATE_NONE</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
* A code representing the value of the calcMode attribute, as defined
|
||||
* above.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public short getCalcMode();
|
||||
public void setCalcMode(short calcMode)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A <code>DOMString</code> representing the value of the keySplines
|
||||
* attribute. Need an interface a point (x1,y1,x2,y2)
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getKeySplines();
|
||||
public void setKeySplines(String keySplines)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A list of the time value of the keyTimes attribute.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public TimeList getKeyTimes();
|
||||
public void setKeyTimes(TimeList keyTimes)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A <code>DOMString</code> representing the value of the values
|
||||
* attribute.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getValues();
|
||||
public void setValues(String values)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A <code>DOMString</code> representing the value of the from attribute.
|
||||
*
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getFrom();
|
||||
public void setFrom(String from)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A <code>DOMString</code> representing the value of the to attribute.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getTo();
|
||||
public void setTo(String to)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* A <code>DOMString</code> representing the value of the by attribute.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getBy();
|
||||
public void setBy(String by)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*
|
||||
* Difference to the original copy of this file:
|
||||
* 1) ADD public SMILElement getHead();
|
||||
* 2) ADD public SMILElement getBody();
|
||||
* 3) ADD public SMILLayoutElement getLayout();
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
/**
|
||||
* A SMIL document is the root of the SMIL Hierarchy and holds the entire
|
||||
* content. Beside providing access to the hierarchy, it also provides some
|
||||
* convenience methods for accessing certain sets of information from the
|
||||
* document. Cover document timing, document locking?, linking modality and
|
||||
* any other document level issues. Are there issues with nested SMIL files?
|
||||
* Is it worth talking about different document scenarios, corresponding to
|
||||
* differing profiles? E.g. Standalone SMIL, HTML integration, etc.
|
||||
*/
|
||||
public interface SMILDocument extends Document, ElementSequentialTimeContainer {
|
||||
|
||||
/**
|
||||
* Returns the element that contains the layout node of this document,
|
||||
* i.e. the <code>HEAD</code> element.
|
||||
*/
|
||||
public SMILElement getHead();
|
||||
|
||||
/**
|
||||
* Returns the element that contains the par's of the document, i.e. the
|
||||
* <code>BODY</code> element.
|
||||
*/
|
||||
public SMILElement getBody();
|
||||
|
||||
/**
|
||||
* Returns the element that contains the layout information of the presentation,
|
||||
* i.e. the <code>LAYOUT</code> element.
|
||||
*/
|
||||
public SMILLayoutElement getLayout();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
* The <code>SMILElement</code> interface is the base for all SMIL element
|
||||
* types. It follows the model of the <code>HTMLElement</code> in the HTML
|
||||
* DOM, extending the base <code>Element</code> class to denote SMIL-specific
|
||||
* elements.
|
||||
* <p> Note that the <code>SMILElement</code> interface overlaps with the
|
||||
* <code>HTMLElement</code> interface. In practice, an integrated document
|
||||
* profile that include HTML and SMIL modules will effectively implement both
|
||||
* interfaces (see also the DOM documentation discussion of Inheritance vs
|
||||
* Flattened Views of the API ). // etc. This needs attention
|
||||
*/
|
||||
public interface SMILElement extends Element {
|
||||
/**
|
||||
* The unique id.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getId();
|
||||
public void setId(String id)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*
|
||||
* Difference to the original copy of this file:
|
||||
* 1) ADD public SMILRootLayoutElement getRootLayout();
|
||||
* 2) ADD public NodeList getRegions();
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
/**
|
||||
* Declares layout type for the document. See the LAYOUT element definition .
|
||||
*
|
||||
*/
|
||||
public interface SMILLayoutElement extends SMILElement {
|
||||
/**
|
||||
* The mime type of the layout langage used in this layout element.The
|
||||
* default value of the type attribute is "text/smil-basic-layout".
|
||||
*/
|
||||
public String getType();
|
||||
|
||||
/**
|
||||
* <code>true</code> if the player can understand the mime type,
|
||||
* <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean getResolved();
|
||||
|
||||
/**
|
||||
* Returns the root layout element of this document.
|
||||
*/
|
||||
public SMILRootLayoutElement getRootLayout();
|
||||
|
||||
/**
|
||||
* Return the region elements of this document.
|
||||
*/
|
||||
public NodeList getRegions();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* Declares media content.
|
||||
*/
|
||||
public interface SMILMediaElement extends ElementTime, SMILElement {
|
||||
/**
|
||||
* See the abstract attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getAbstractAttr();
|
||||
public void setAbstractAttr(String abstractAttr)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the alt attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getAlt();
|
||||
public void setAlt(String alt)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the author attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getAuthor();
|
||||
public void setAuthor(String author)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the clipBegin attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getClipBegin();
|
||||
public void setClipBegin(String clipBegin)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the clipEnd attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getClipEnd();
|
||||
public void setClipEnd(String clipEnd)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the copyright attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getCopyright();
|
||||
public void setCopyright(String copyright)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the longdesc attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getLongdesc();
|
||||
public void setLongdesc(String longdesc)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the port attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getPort();
|
||||
public void setPort(String port)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the readIndex attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getReadIndex();
|
||||
public void setReadIndex(String readIndex)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the rtpformat attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getRtpformat();
|
||||
public void setRtpformat(String rtpformat)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the src attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getSrc();
|
||||
public void setSrc(String src)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the stripRepeat attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getStripRepeat();
|
||||
public void setStripRepeat(String stripRepeat)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the title attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getTitle();
|
||||
public void setTitle(String title)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the transport attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getTransport();
|
||||
public void setTransport(String transport)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* See the type attribute from .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getType();
|
||||
public void setType(String type)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (C) 2007-2008 Esmertec AG.
|
||||
* Copyright (C) 2007-2008 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
public interface SMILParElement extends ElementParallelTimeContainer,
|
||||
SMILElement {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* // audio, video, ...
|
||||
*/
|
||||
public interface SMILRefElement extends SMILMediaElement {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*
|
||||
* Difference to the original copy of this file:
|
||||
* 1) ADD public int getLeft();
|
||||
* 2) ADD public void setLeft(int top) throws DOMException;
|
||||
* 3) MODIFY public String getTop() to public int getTop();
|
||||
* 4) MODIFY public void setTop(String) to public void setTop(int);
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
/**
|
||||
* Controls the position, size and scaling of media object elements. See the
|
||||
* region element definition .
|
||||
*/
|
||||
public interface SMILRegionElement extends SMILElement, ElementLayout {
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public String getFit();
|
||||
public void setFit(String fit)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public int getLeft();
|
||||
public void setLeft(int top)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public int getTop();
|
||||
public void setTop(int top)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
|
||||
*/
|
||||
public int getZIndex();
|
||||
public void setZIndex(int zIndex)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* Declares rendering surface for an element. See the region attribute
|
||||
* definition .
|
||||
*/
|
||||
public interface SMILRegionInterface {
|
||||
/**
|
||||
*/
|
||||
public SMILRegionElement getRegion();
|
||||
public void setRegion(SMILRegionElement region);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2007-2008 Esmertec AG.
|
||||
* Copyright (C) 2007-2008 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
public interface SMILRegionMediaElement extends SMILMediaElement,
|
||||
SMILRegionInterface {
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* Declares layout properties for the root-layout element. See the
|
||||
* root-layout element definition .
|
||||
*/
|
||||
public interface SMILRootLayoutElement extends SMILElement, ElementLayout {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* This interface represents the set element.
|
||||
*/
|
||||
public interface SMILSetElement extends ElementTimeControl, ElementTime, ElementTargetAttributes, SMILElement {
|
||||
/**
|
||||
* Specifies the value for the attribute during the duration of this
|
||||
* element.
|
||||
*/
|
||||
public String getTo();
|
||||
public void setTo(String to);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
* Defines a block of content control. See the switch element definition .
|
||||
*/
|
||||
public interface SMILSwitchElement extends SMILElement {
|
||||
/**
|
||||
* Returns the slected element at runtime. <code>null</code> if the
|
||||
* selected element is not yet available.
|
||||
* @return The selected <code>Element</code> for thisd <code>switch</code>
|
||||
* element.
|
||||
*/
|
||||
public Element getSelectedElement();
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* Declares layout properties for the top-layout element. See the top-layout
|
||||
* element definition .
|
||||
*/
|
||||
public interface SMILTopLayoutElement extends SMILElement, ElementLayout {
|
||||
}
|
||||
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
* The <code>Time</code> interface is a datatype that represents times within
|
||||
* the timegraph. A <code>Time</code> has a type, key values to describe the
|
||||
* time, and a boolean to indicate whether the values are currently
|
||||
* unresolved. Still need to address the wallclock values.
|
||||
*/
|
||||
public interface Time {
|
||||
/**
|
||||
* A boolean indicating whether the current <code>Time</code> has been
|
||||
* fully resolved to the document schedule. Note that for this to be
|
||||
* true, the current <code>Time</code> must be defined (not indefinite),
|
||||
* the syncbase and all <code>Time</code> 's that the syncbase depends on
|
||||
* must be defined (not indefinite), and the begin <code>Time</code> of
|
||||
* all ascendent time containers of this element and all <code>Time</code>
|
||||
* elements that this depends upon must be defined (not indefinite).
|
||||
* <br> If this <code>Time</code> is based upon an event, this
|
||||
* <code>Time</code> will only be resolved once the specified event has
|
||||
* happened, subject to the constraints of the time container.
|
||||
* <br> Note that this may change from true to false when the parent time
|
||||
* container ends its simple duration (including when it repeats or
|
||||
* restarts).
|
||||
*/
|
||||
public boolean getResolved();
|
||||
|
||||
/**
|
||||
* The clock value in seconds relative to the parent time container begin.
|
||||
* This indicates the resolved time relationship to the parent time
|
||||
* container. This is only valid if resolved is true.
|
||||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
* A code representing the type of the underlying object, as defined
|
||||
* above.
|
||||
*/
|
||||
public short getTimeType();
|
||||
|
||||
/**
|
||||
* The clock value in seconds relative to the syncbase or eventbase.
|
||||
* Default value is <code>0</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this
|
||||
* readonly attribute.
|
||||
*/
|
||||
public double getOffset();
|
||||
public void setOffset(double offset)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The base element for a sync-based or event-based time.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this
|
||||
* readonly attribute.
|
||||
*/
|
||||
public Element getBaseElement();
|
||||
public void setBaseElement(Element baseElement)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* If <code>true</code> , indicates that a sync-based time is relative to
|
||||
* the begin of the baseElement. If <code>false</code> , indicates that a
|
||||
* sync-based time is relative to the active end of the baseElement.
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this
|
||||
* readonly attribute.
|
||||
*/
|
||||
public boolean getBaseBegin();
|
||||
public void setBaseBegin(boolean baseBegin)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The name of the event for an event-based time. Default value is
|
||||
* <code>null</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this
|
||||
* readonly attribute.
|
||||
*/
|
||||
public String getEvent();
|
||||
public void setEvent(String event)
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* The name of the marker from the media element, for media marker times.
|
||||
* Default value is <code>null</code> .
|
||||
* @exception DOMException
|
||||
* NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this
|
||||
* readonly attribute.
|
||||
*/
|
||||
public String getMarker();
|
||||
public void setMarker(String marker)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
import org.w3c.dom.events.Event;
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
/**
|
||||
* The <code>TimeEvent</code> interface provides specific contextual
|
||||
* information associated with Time events.
|
||||
*/
|
||||
public interface TimeEvent extends Event {
|
||||
/**
|
||||
* The <code>view</code> attribute identifies the
|
||||
* <code>AbstractView</code> from which the event was generated.
|
||||
*/
|
||||
public AbstractView getView();
|
||||
|
||||
/**
|
||||
* Specifies some detail information about the <code>Event</code> ,
|
||||
* depending on the type of event.
|
||||
*/
|
||||
public int getDetail();
|
||||
|
||||
/**
|
||||
* The <code>initTimeEvent</code> method is used to initialize the value
|
||||
* of a <code>TimeEvent</code> created through the
|
||||
* <code>DocumentEvent</code> interface. This method may only be called
|
||||
* before the <code>TimeEvent</code> has been dispatched via the
|
||||
* <code>dispatchEvent</code> method, though it may be called multiple
|
||||
* times during that phase if necessary. If called multiple times, the
|
||||
* final invocation takes precedence.
|
||||
* @param typeArg Specifies the event type.
|
||||
* @param viewArg Specifies the <code>Event</code> 's
|
||||
* <code>AbstractView</code> .
|
||||
* @param detailArg Specifies the <code>Event</code> 's detail.
|
||||
*/
|
||||
public void initTimeEvent(String typeArg,
|
||||
AbstractView viewArg,
|
||||
int detailArg);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.smil;
|
||||
|
||||
/**
|
||||
* The <code>TimeList</code> interface provides the abstraction of an ordered
|
||||
* collection of times, without defining or constraining how this collection
|
||||
* is implemented.
|
||||
* <p> The items in the <code>TimeList</code> are accessible via an integral
|
||||
* index, starting from 0.
|
||||
*/
|
||||
public interface TimeList {
|
||||
/**
|
||||
* Returns the <code>index</code> th item in the collection. If
|
||||
* <code>index</code> is greater than or equal to the number of times in
|
||||
* the list, this returns <code>null</code> .
|
||||
* @param index Index into the collection.
|
||||
* @return The time at the <code>index</code> th position in the
|
||||
* <code>TimeList</code> , or <code>null</code> if that is not a valid
|
||||
* index.
|
||||
*/
|
||||
public Time item(int index);
|
||||
|
||||
/**
|
||||
* The number of times in the list. The range of valid child time indices
|
||||
* is 0 to <code>length-1</code> inclusive.
|
||||
*/
|
||||
public int getLength();
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.views;
|
||||
|
||||
/**
|
||||
* A base interface that all views shall derive from.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>Document Object Model (DOM) Level 2 Views Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface AbstractView {
|
||||
/**
|
||||
* The source <code>DocumentView</code> of which this is an
|
||||
* <code>AbstractView</code>.
|
||||
*/
|
||||
public DocumentView getDocument();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 2000 World Wide Web Consortium,
|
||||
* (Massachusetts Institute of Technology, Institut National de
|
||||
* Recherche en Informatique et en Automatique, Keio University). All
|
||||
* Rights Reserved. This program is distributed under the W3C's Software
|
||||
* Intellectual Property License. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE.
|
||||
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
||||
*/
|
||||
|
||||
package org.w3c.dom.views;
|
||||
|
||||
/**
|
||||
* The <code>DocumentView</code> interface is implemented by
|
||||
* <code>Document</code> objects in DOM implementations supporting DOM
|
||||
* Views. It provides an attribute to retrieve the default view of a
|
||||
* document.
|
||||
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>Document Object Model (DOM) Level 2 Views Specification</a>.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public interface DocumentView {
|
||||
/**
|
||||
* The default <code>AbstractView</code> for this <code>Document</code>,
|
||||
* or <code>null</code> if none available.
|
||||
*/
|
||||
public AbstractView getDefaultView();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user