Methods Summary |
---|
public boolean | beginElement()
return mSeqTimeContainer.beginElement();
|
public org.w3c.dom.Element | createElement(java.lang.String tagName)
// Find the appropriate class for this element
tagName = tagName.toLowerCase();
if (tagName.equals("text") ||
tagName.equals("img") ||
tagName.equals("video")) {
return new SmilRegionMediaElementImpl(this, tagName);
} else if (tagName.equals("audio")) {
return new SmilMediaElementImpl(this, tagName);
} else if (tagName.equals("layout")) {
return new SmilLayoutElementImpl(this, tagName);
} else if (tagName.equals("root-layout")) {
return new SmilRootLayoutElementImpl(this, tagName);
} else if (tagName.equals("region")) {
return new SmilRegionElementImpl(this, tagName);
} else if (tagName.equals("ref")) {
return new SmilRefElementImpl(this, tagName);
} else if (tagName.equals("par")) {
return new SmilParElementImpl(this, tagName);
} else {
// This includes also the structural nodes SMIL,
// HEAD, BODY, for which no specific types are defined.
return new SmilElementImpl(this, tagName);
}
|
public org.w3c.dom.events.Event | createEvent(java.lang.String eventType)
if ("Event".equals(eventType)) {
return new EventImpl();
} else {
throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
"Not supported interface");
}
|
public boolean | endElement()
return mSeqTimeContainer.endElement();
|
public org.w3c.dom.NodeList | getActiveChildrenAt(float instant)
return mSeqTimeContainer.getActiveChildrenAt(instant);
|
public org.w3c.dom.smil.TimeList | getBegin()
return mSeqTimeContainer.getBegin();
|
public org.w3c.dom.smil.SMILElement | getBody()
Node rootElement = getDocumentElement();
Node headElement = getHead();
Node bodyElement = headElement.getNextSibling();
if (bodyElement == null || !(bodyElement instanceof SMILElement)) {
// The body doesn't exist. Create a new one.
bodyElement = createElement("body");
rootElement.appendChild(bodyElement);
}
// Initialize the real sequential time container, which is body.
mSeqTimeContainer = new ElementSequentialTimeContainerImpl((SMILElement) bodyElement) {
public NodeList getTimeChildren() {
return getBody().getElementsByTagName("par");
}
public boolean beginElement() {
Event startEvent = createEvent("Event");
startEvent.initEvent(SMIL_DOCUMENT_START_EVENT, false, false);
dispatchEvent(startEvent);
return true;
}
public boolean endElement() {
Event endEvent = createEvent("Event");
endEvent.initEvent(SMIL_DOCUMENT_END_EVENT, false, false);
dispatchEvent(endEvent);
return true;
}
public void pauseElement() {
// TODO Auto-generated method stub
}
public void resumeElement() {
// TODO Auto-generated method stub
}
public void seekElement(float seekTo) {
// TODO Auto-generated method stub
}
ElementTime getParentElementTime() {
return null;
}
};
return (SMILElement) bodyElement;
|
public org.w3c.dom.smil.SMILElement | getDocumentElement()
Node rootElement = getFirstChild();
if (rootElement == null || !(rootElement instanceof SMILElement)) {
// The root doesn't exist. Create a new one.
rootElement = createElement("smil");
appendChild(rootElement);
}
return (SMILElement) rootElement;
|
public float | getDur()
return mSeqTimeContainer.getDur();
|
public org.w3c.dom.smil.TimeList | getEnd()
return mSeqTimeContainer.getEnd();
|
public short | getFill()
return mSeqTimeContainer.getFill();
|
public short | getFillDefault()
return mSeqTimeContainer.getFillDefault();
|
public org.w3c.dom.smil.SMILElement | getHead()
Node rootElement = getDocumentElement();
Node headElement = rootElement.getFirstChild();
if (headElement == null || !(headElement instanceof SMILElement)) {
// The head doesn't exist. Create a new one.
headElement = createElement("head");
rootElement.appendChild(headElement);
}
return (SMILElement) headElement;
|
public org.w3c.dom.smil.SMILLayoutElement | getLayout()
Node headElement = getHead();
Node layoutElement = null;
// Find the layout element under <code>HEAD</code>
layoutElement = headElement.getFirstChild();
while ((layoutElement != null) && !(layoutElement instanceof SMILLayoutElement)) {
layoutElement = layoutElement.getNextSibling();
}
if (layoutElement == null) {
// The layout doesn't exist. Create a default one.
layoutElement = new SmilLayoutElementImpl(this, "layout");
headElement.appendChild(layoutElement);
}
return (SMILLayoutElement) layoutElement;
|
public float | getRepeatCount()
return mSeqTimeContainer.getRepeatCount();
|
public float | getRepeatDur()
return mSeqTimeContainer.getRepeatDur();
|
public short | getRestart()
return mSeqTimeContainer.getRestart();
|
public org.w3c.dom.NodeList | getTimeChildren()
return mSeqTimeContainer.getTimeChildren();
|
public void | pauseElement()
mSeqTimeContainer.pauseElement();
|
public void | resumeElement()
mSeqTimeContainer.resumeElement();
|
public void | seekElement(float seekTo)
mSeqTimeContainer.seekElement(seekTo);
|
public void | setBegin(org.w3c.dom.smil.TimeList begin)
mSeqTimeContainer.setBegin(begin);
|
public void | setDur(float dur)
mSeqTimeContainer.setDur(dur);
|
public void | setEnd(org.w3c.dom.smil.TimeList end)
mSeqTimeContainer.setEnd(end);
|
public void | setFill(short fill)
mSeqTimeContainer.setFill(fill);
|
public void | setFillDefault(short fillDefault)
mSeqTimeContainer.setFillDefault(fillDefault);
|
public void | setRepeatCount(float repeatCount)
mSeqTimeContainer.setRepeatCount(repeatCount);
|
public void | setRepeatDur(float repeatDur)
mSeqTimeContainer.setRepeatDur(repeatDur);
|
public void | setRestart(short restart)
mSeqTimeContainer.setRestart(restart);
|