FileDocCategorySizeDatePackage
SmilRegionMediaElementImpl.javaAPI DocAndroid 1.5 API1830Wed May 06 22:42:46 BST 2009com.android.mms.dom.smil

SmilRegionMediaElementImpl

public class SmilRegionMediaElementImpl extends SmilMediaElementImpl implements org.w3c.dom.smil.SMILRegionMediaElement

Fields Summary
private org.w3c.dom.smil.SMILRegionElement
mRegion
Constructors Summary
SmilRegionMediaElementImpl(SmilDocumentImpl owner, String tagName)

        super(owner, tagName);
    
Methods Summary
public org.w3c.dom.smil.SMILRegionElementgetRegion()

        if (mRegion == null) {
            SMILDocument doc = (SMILDocument)this.getOwnerDocument();
            NodeList regions = doc.getLayout().getElementsByTagName("region");
            SMILRegionElement region = null;
            for (int i = 0; i < regions.getLength(); i++) {
                region = (SMILRegionElement)regions.item(i);
                if (region.getId().equals(this.getAttribute("region"))) {
                    mRegion = region;
                }
            }
        }
        return mRegion;
    
public voidsetRegion(org.w3c.dom.smil.SMILRegionElement region)

        this.setAttribute("region", region.getId());
        mRegion = region;