fi.hut.tml.xsmiles.mlfc.smil.extension
Class SMILTopLayoutElementImpl

java.lang.Object
  extended byorg.apache.xerces.dom.NodeImpl
      extended byorg.apache.xerces.dom.ChildNode
          extended byorg.apache.xerces.dom.ParentNode
              extended byorg.apache.xerces.dom.ElementImpl
                  extended byorg.apache.xerces.dom.ElementNSImpl
                      extended byfi.hut.tml.xsmiles.dom.XSmilesElementImpl
                          extended byfi.hut.tml.xsmiles.dom.VisualElementImpl
                              extended byfi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
                                  extended byfi.hut.tml.xsmiles.mlfc.smil.extension.SMILTopLayoutElementImpl
All Implemented Interfaces:
java.lang.Cloneable, CSSStyleChangeListener, org.w3c.dom.Element, ElementLayout, org.w3c.dom.events.EventListener, org.w3c.dom.events.EventTarget, FrameListener, InitializableElement, LayoutCalc, org.w3c.dom.Node, org.w3c.dom.NodeList, PseudoClassController, ResourceFetcher, java.io.Serializable, SMILElement, SMILTopLayoutElement, StylableElement, org.w3c.dom.TypeInfo, VisualElement, XSmilesLayoutReference

public class SMILTopLayoutElementImpl
extends SMILElementImpl
implements SMILTopLayoutElement, LayoutCalc, FrameListener

Declares layout properties for the top-layout element. See the top-layout element definition . Includes attributes: o + open, close

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl
XSmilesElementImpl.PseudoNodeList
 
Field Summary
 
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.smil20.SMILTopLayoutElement
CLOSE_ONREQUEST, CLOSE_WHENNOTACTIVE, OPEN_ONSTART, OPEN_WHENACTIVE
 
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
SMILTopLayoutElementImpl(org.apache.xerces.dom.DocumentImpl owner, SMILDocumentImpl smil, java.lang.String ns)
          Constructor - set the owner
 
Method Summary
 void addRegion(SMILRegionElementImpl region)
          Add region to this region.
 int calcBottom()
          Returns the top layout height.
 int calcLeft()
          Returns zero as the root-layout left coord.
 int calcRight()
          Returns the top layout width.
 int calcTop()
          Returns zero as the root-layout top coord.
 void destroy()
          Destroy the frame of this top-layout.
 void frameClosed()
          Frame closed by user or presentation.
 void frameOpened()
          Frame opened by presentation.
 java.lang.String getBackgroundColor()
           
 short getClose()
          open attribute.
 DrawingArea getDrawingArea()
          Return drawing area.
 java.lang.String getHeight()
          Height of the root-layout - can only have absolute values.
 short getOpen()
          open attribute.
 java.lang.String getWidth()
          Width of the root-layout - can only have absolute values.
 void initHead()
          Initializes this region and its associated DrawingArea.
 void removeRegion(SMILRegionElementImpl region)
          Remove region from this region.
 void setBackgroundColor(java.lang.String backgroundColor)
           
 void setClose(short close)
           
 void setHeight(int height)
           
 void setOpen(short open)
           
 void setWidth(int width)
           
 
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, setAttribute, setStatus, styleChanged, updateViews
 
Methods inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl
addBinding, addUndistributedChild, clone, clonePseudoElements, cloneSubtree, debugNode, debugNode, dispatchEventInMainThread, get, getApplyBindingSheets, getAuthorSheets, getChildNodes, getElementStatus, getOriginalClone, getPseudoClass, getResourceReferencer, getRuleNode, getStyle, getStyleAttrValue, getText, getText, getUndistributedChildNodes, getXblImplementations, hasBinding, hasStyle, initFinalFlattenedTree, initStyle, isInitedForReset, removeBinding, removeUndistributedChild, replaceNode, resetFinalFlattenedTree, resolveURI, searchElementWithId, searchElementWithId, setApplyBindingSheets, setAuthorSheets, setPseudoClass, setRuleNode, setStyle, updateStyle
 
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, setAttributeNode, setAttributeNodeNS, setAttributeNS, 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, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
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
 

Constructor Detail

SMILTopLayoutElementImpl

public SMILTopLayoutElementImpl(org.apache.xerces.dom.DocumentImpl owner,
                                SMILDocumentImpl smil,
                                java.lang.String ns)
Constructor - set the owner

Method Detail

initHead

public void initHead()
Initializes this region and its associated DrawingArea. This is only called for regions under a valid layout element.


destroy

public void destroy()
Destroy the frame of this top-layout.

Specified by:
destroy in interface SMILElement
Overrides:
destroy in class XSmilesElementImpl

getDrawingArea

public DrawingArea getDrawingArea()
Return drawing area.

Specified by:
getDrawingArea in interface LayoutCalc

getBackgroundColor

public java.lang.String getBackgroundColor()
Specified by:
getBackgroundColor in interface ElementLayout

setBackgroundColor

public void setBackgroundColor(java.lang.String backgroundColor)
                        throws org.w3c.dom.DOMException
Specified by:
setBackgroundColor in interface ElementLayout
Throws:
org.w3c.dom.DOMException

getHeight

public java.lang.String getHeight()
Height of the root-layout - can only have absolute values.

Specified by:
getHeight in interface ElementLayout
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

setHeight

public void setHeight(int height)
               throws org.w3c.dom.DOMException
Specified by:
setHeight in interface ElementLayout
Throws:
org.w3c.dom.DOMException

getWidth

public java.lang.String getWidth()
Width of the root-layout - can only have absolute values.

Specified by:
getWidth in interface ElementLayout
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

setWidth

public void setWidth(int width)
              throws org.w3c.dom.DOMException
Specified by:
setWidth in interface ElementLayout
Throws:
org.w3c.dom.DOMException

getOpen

public short getOpen()
open attribute.

Specified by:
getOpen in interface SMILTopLayoutElement
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

setOpen

public void setOpen(short open)
             throws org.w3c.dom.DOMException
Specified by:
setOpen in interface SMILTopLayoutElement
Throws:
org.w3c.dom.DOMException

getClose

public short getClose()
open attribute.

Specified by:
getClose in interface SMILTopLayoutElement
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

setClose

public void setClose(short close)
              throws org.w3c.dom.DOMException
Specified by:
setClose in interface SMILTopLayoutElement
Throws:
org.w3c.dom.DOMException

addRegion

public void addRegion(SMILRegionElementImpl region)
Add region to this region. This will cause the drawingarea to become visible.

Specified by:
addRegion in interface LayoutCalc

removeRegion

public void removeRegion(SMILRegionElementImpl region)
Remove region from this region. This may cause the drawingarea to become invisible, if this was the last region, and no medias either in the region.

Specified by:
removeRegion in interface LayoutCalc

calcTop

public int calcTop()
Returns zero as the root-layout top coord.

Specified by:
calcTop in interface LayoutCalc

calcLeft

public int calcLeft()
Returns zero as the root-layout left coord.

Specified by:
calcLeft in interface LayoutCalc

calcRight

public int calcRight()
Returns the top layout width.

Specified by:
calcRight in interface LayoutCalc

calcBottom

public int calcBottom()
Returns the top layout height.

Specified by:
calcBottom in interface LayoutCalc

frameOpened

public void frameOpened()
Frame opened by presentation.


frameClosed

public void frameClosed()
Frame closed by user or presentation.

Specified by:
frameClosed in interface FrameListener


X-Smiles 1.2