|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
fi.hut.tml.xsmiles.dom.XSmilesElementImpl
fi.hut.tml.xsmiles.dom.VisualElementImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.SMILRegionElementImpl
Controls the position, size and scaling of media object elements. See the region element definition . MediaElements should register themselves to their regions. Otherwise, media elements will not get refreshed if the region attributes change. This implements AnimationService, thus allows animation of some attributes.
| Nested Class Summary |
| Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
XSmilesElementImpl.PseudoNodeList |
| Field Summary | |
static short |
SHOWBACKGROUND_ALWAYS
|
static short |
SHOWBACKGROUND_WHENACTIVE
|
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl |
smilDoc |
| Fields inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
views |
| Fields inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
DESTROYED, elementStatus, INITIALIZED, INITIALIZING, setPseudoClasses, style, UNINITIALIZED, xblpropname |
| Fields inherited from class org.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI |
| Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
| Fields inherited from class org.apache.xerces.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
| Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, UNNORMALIZED |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
SMILRegionElementImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String ns)
Constructor with owner doc |
|
| Method Summary | |
void |
addLink(LinkHandler link)
Add media to this region. |
void |
addMedia(MediaHandler media)
Add media to this region. |
void |
addRegion(SMILRegionElementImpl region)
Add region to this region. |
int |
calcBottom()
Calculate the bottom border, relative to the given root-layout/region (in case of %). |
int |
calcLeft()
Calculate the left border, relative to the given root-layout/region (in case of %). |
int |
calcRight()
Calculate the right border, relative to the given root-layout/region (in case of %). |
int |
calcTop()
Calculate the top border, relative to the given root-layout/region (in case of %). |
float |
convertStringToUnitless(java.lang.String attr,
java.lang.String value)
Convert String attribute to an float value |
java.lang.String |
convertUnitlessToString(java.lang.String attr,
float value)
|
void |
destroy()
Release resources. |
java.lang.String |
getAnimAttribute(java.lang.String attr)
This method returns the animation value of the attribute, and if not available, returns the DOM value. |
java.lang.String |
getBackgroundColor()
|
java.lang.String |
getBottom()
bottom |
DrawingArea |
getDrawingArea()
Return drawing area. |
java.lang.String |
getFit()
|
java.lang.String |
getHeight()
|
java.lang.String |
getLeft()
left |
java.lang.String |
getRegionName()
regionName |
java.lang.String |
getRight()
right |
short |
getShowBackground()
showBackground |
java.lang.String |
getSoundLevel()
soundLevel |
java.lang.String |
getTop()
top |
java.lang.String |
getWidth()
|
int |
getZIndex()
|
void |
initHead()
Initializes this region and its associated DrawingArea. |
void |
initHeadAndAddTo(SMILRegionElementImpl parentReg,
DrawingArea parentDrawingArea,
boolean block,
org.w3c.dom.Element origElem)
CSS: Initializes this region and its associated DrawingArea. |
void |
refreshAnimation()
Refresh element with all the animation values. |
void |
removeAnimAttribute(java.lang.String attr)
The anim attribute value removed with this method allows the DOM attribute value be visible. |
void |
removeMedia(MediaHandler media)
Remove media or link from this region. |
void |
removeRegion(SMILRegionElementImpl region)
Remove region from this region. |
void |
setAnimAttribute(java.lang.String attr,
java.lang.String value)
The attribute value set with this method should take precedence over the DOM attribute value. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
|
void |
setAttributeNS(java.lang.String ns,
java.lang.String name,
java.lang.String value)
|
void |
setBackgroundColor(java.lang.String backgroundColor)
|
void |
setBottom(java.lang.String bottom)
|
void |
setFit(java.lang.String fit)
|
void |
setHeight(int height)
|
void |
setHeight(java.lang.String h)
Prosentual height |
void |
setLeft(java.lang.String left)
|
void |
setRegionName(java.lang.String regionName)
|
void |
setRight(java.lang.String right)
|
void |
setShowBackground(short showBackground)
|
void |
setSoundLevel(java.lang.String soundLevel)
|
void |
setTop(java.lang.String top)
|
void |
setWidth(int width)
|
void |
setWidth(java.lang.String w)
Prosentual width |
void |
setZIndex(int zIndex)
|
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl |
dispatch, getAlt, getClassName, getId, getLongdesc, getOwnerDoc, getSMILDoc, getTitle, setAlt, setClassName, setId, setLongdesc, setTitle |
| Methods inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
addView, belongsToTree, getViews, handleEvent, init, insertBefore, isCurrentlyVisible, isFocusPoint, isPseudoClass, isVisibleByCSSProperties, notifyPseudoRemoved, removeAllViews, removeAttribute, removeChild, replaceChild, setStatus, styleChanged, updateViews |
| Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, setPrefix, setType, setValues |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttributeNode, removeAttributeNS, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.smil20.SMILElement |
getAlt, getClassName, getId, getLongdesc, getTitle, init, setAlt, setClassName, setId, setLongdesc, setTitle |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttributeNodeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.VisualElement |
getStyle |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.PseudoClassController |
getPseudoClass, setPseudoClass |
| Field Detail |
public static final short SHOWBACKGROUND_ALWAYS
public static final short SHOWBACKGROUND_WHENACTIVE
| Constructor Detail |
public SMILRegionElementImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String ns)
| Method Detail |
public void setAnimAttribute(java.lang.String attr,
java.lang.String value)
setAnimAttribute in interface AnimationServiceattr - Attribute to be animatedvalue - Animation value to be setpublic java.lang.String getAnimAttribute(java.lang.String attr)
getAnimAttribute in interface AnimationServicepublic void removeAnimAttribute(java.lang.String attr)
removeAnimAttribute in interface AnimationServiceattr - Attribute to be animated (animation removed)public void refreshAnimation()
refreshAnimation in interface AnimationService
public float convertStringToUnitless(java.lang.String attr,
java.lang.String value)
AnimationService
convertStringToUnitless in interface AnimationService
public java.lang.String convertUnitlessToString(java.lang.String attr,
float value)
convertUnitlessToString in interface AnimationServicepublic void initHead()
public void initHeadAndAddTo(SMILRegionElementImpl parentReg,
DrawingArea parentDrawingArea,
boolean block,
org.w3c.dom.Element origElem)
parentReg - Parent Region (or null for root-layout)block - Init the container to be block (=true) or inline (=false) containerpublic void destroy()
destroy in interface SMILElementdestroy in class XSmilesElementImplpublic DrawingArea getDrawingArea()
getDrawingArea in interface LayoutCalcpublic void addRegion(SMILRegionElementImpl region)
addRegion in interface LayoutCalcpublic void removeRegion(SMILRegionElementImpl region)
removeRegion in interface LayoutCalcpublic void addMedia(MediaHandler media)
public void addLink(LinkHandler link)
public void removeMedia(MediaHandler media)
public void setAttribute(java.lang.String name,
java.lang.String value)
setAttribute in interface org.w3c.dom.ElementsetAttribute in class VisualElementImpl
public void setAttributeNS(java.lang.String ns,
java.lang.String name,
java.lang.String value)
setAttributeNS in interface org.w3c.dom.Element
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
throws org.w3c.dom.DOMException
setAttributeNode in interface org.w3c.dom.Elementorg.w3c.dom.DOMExceptionpublic int calcLeft()
calcLeft in interface LayoutCalcpublic int calcRight()
calcRight in interface LayoutCalcpublic int calcTop()
calcTop in interface LayoutCalcpublic int calcBottom()
calcBottom in interface LayoutCalcpublic java.lang.String getFit()
getFit in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setFit(java.lang.String fit)
throws org.w3c.dom.DOMException
setFit in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getTop()
getTop in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setTop(java.lang.String top)
throws org.w3c.dom.DOMException
setTop in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getBottom()
getBottom in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setBottom(java.lang.String bottom)
throws org.w3c.dom.DOMException
setBottom in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getLeft()
getLeft in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setLeft(java.lang.String left)
throws org.w3c.dom.DOMException
setLeft in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getRight()
getRight in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setRight(java.lang.String right)
throws org.w3c.dom.DOMException
setRight in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic int getZIndex()
getZIndex in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setZIndex(int zIndex)
throws org.w3c.dom.DOMException
setZIndex in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic short getShowBackground()
getShowBackground in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setShowBackground(short showBackground)
throws org.w3c.dom.DOMException
setShowBackground in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getSoundLevel()
getSoundLevel in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setSoundLevel(java.lang.String soundLevel)
throws org.w3c.dom.DOMException
setSoundLevel in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getRegionName()
getRegionName in interface SMILRegionElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setRegionName(java.lang.String regionName)
throws org.w3c.dom.DOMException
setRegionName in interface SMILRegionElementorg.w3c.dom.DOMExceptionpublic java.lang.String getBackgroundColor()
getBackgroundColor in interface ElementLayout
public void setBackgroundColor(java.lang.String backgroundColor)
throws org.w3c.dom.DOMException
setBackgroundColor in interface ElementLayoutorg.w3c.dom.DOMExceptionpublic java.lang.String getHeight()
getHeight in interface ElementLayoutorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setHeight(int height)
throws org.w3c.dom.DOMException
setHeight in interface ElementLayoutorg.w3c.dom.DOMException
public void setHeight(java.lang.String h)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setWidth(java.lang.String w)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic java.lang.String getWidth()
getWidth in interface ElementLayoutorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setWidth(int width)
throws org.w3c.dom.DOMException
setWidth in interface ElementLayoutorg.w3c.dom.DOMException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||