org.vectomatic.dom.svg
Class OMSVGViewElement

java.lang.Object
  extended by org.vectomatic.dom.svg.OMNode
      extended by org.vectomatic.dom.svg.OMElement
          extended by org.vectomatic.dom.svg.OMSVGElement
              extended by org.vectomatic.dom.svg.OMSVGViewElement
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, ISVGExternalResourcesRequired, ISVGFitToViewBox, ISVGZoomAndPan

@TagName(value="view")
public class OMSVGViewElement
extends OMSVGElement
implements ISVGExternalResourcesRequired, ISVGFitToViewBox, ISVGZoomAndPan

The OMSVGAElement interface corresponds to the view element.


Field Summary
 
Fields inherited from class org.vectomatic.dom.svg.OMNode
eventBus, ot
 
Fields inherited from interface org.vectomatic.dom.svg.itf.ISVGZoomAndPan
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
 
Constructor Summary
  OMSVGViewElement()
           
protected OMSVGViewElement(SVGViewElement ot)
           
 
Method Summary
 OMSVGAnimatedBoolean getExternalResourcesRequired()
          Corresponds to attribute ISVGExternalResourcesRequired.getExternalResourcesRequired() on the given element.
 OMSVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
          Corresponds to attribute ISVGFitToViewBox.getPreserveAspectRatio() on the given element.
 OMSVGAnimatedRect getViewBox()
          Corresponds to attribute ISVGFitToViewBox.getViewBox() on the given element.
 OMSVGStringList getViewTarget()
          Corresponds to attribute getViewTarget() on the given view element.
 short getZoomAndPan()
          Corresponds to attribute ISVGZoomAndPan.getZoomAndPan() on the given element.
 void setZoomAndPan(short value)
          Corresponds to attribute ISVGZoomAndPan.getZoomAndPan() on the given element.
 
Methods inherited from class org.vectomatic.dom.svg.OMSVGElement
addClassNameBaseVal, getClassName, getMarkup, getOwnerSVGElement, getStyle, getViewportElement, getXmlbase, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal, setId, setXmlbase
 
Methods inherited from class org.vectomatic.dom.svg.OMElement
getAttribute, getAttributeNode, getAttributeNS, getAttributes, getElement, getElementsByTagName, getElementsByTagNameNS, getId, getTagName, hasAttribute, hasAttributeNS, removeAttribute, setAttribute, setAttributeNode, setAttributeNS
 
Methods inherited from class org.vectomatic.dom.svg.OMNode
addDomHandler, addHandler, appendChild, cleanup, cloneNode, convert, convertList, dispatch, fireEvent, getChildNodes, getEventBus, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OMSVGViewElement

public OMSVGViewElement()

OMSVGViewElement

protected OMSVGViewElement(SVGViewElement ot)
Method Detail

getViewTarget

public final OMSVGStringList getViewTarget()
Corresponds to attribute getViewTarget() on the given view element. A list of DOMString values which contain the names listed in the getViewTarget() attribute. Each of the DOMString values can be associated with the corresponding element using the getElementById() method call.


getExternalResourcesRequired

public final OMSVGAnimatedBoolean getExternalResourcesRequired()
Corresponds to attribute ISVGExternalResourcesRequired.getExternalResourcesRequired() on the given element. Note that the SVG DOM defines the attribute ISVGExternalResourcesRequired.getExternalResourcesRequired() as being of type OMSVGAnimatedBoolean, whereas the SVG language definition says that ISVGExternalResourcesRequired.getExternalResourcesRequired() is not animated. Because the SVG language definition states that ISVGExternalResourcesRequired.getExternalResourcesRequired() cannot be animated, the OMSVGAnimatedBoolean.getAnimVal() will always be the same as the OMSVGAnimatedBoolean.getBaseVal().

Specified by:
getExternalResourcesRequired in interface ISVGExternalResourcesRequired

getViewBox

public final OMSVGAnimatedRect getViewBox()
Corresponds to attribute ISVGFitToViewBox.getViewBox() on the given element.

Specified by:
getViewBox in interface ISVGFitToViewBox

getPreserveAspectRatio

public final OMSVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
Corresponds to attribute ISVGFitToViewBox.getPreserveAspectRatio() on the given element.

Specified by:
getPreserveAspectRatio in interface ISVGFitToViewBox

getZoomAndPan

public final short getZoomAndPan()
Corresponds to attribute ISVGZoomAndPan.getZoomAndPan() on the given element. The value must be one of the SVG_ZOOMANDPAN_ constants defined on this interface.

Specified by:
getZoomAndPan in interface ISVGZoomAndPan

setZoomAndPan

public final void setZoomAndPan(short value)
                         throws com.google.gwt.core.client.JavaScriptException
Corresponds to attribute ISVGZoomAndPan.getZoomAndPan() on the given element. The value must be one of the SVG_ZOOMANDPAN_ constants defined on this interface.

Specified by:
setZoomAndPan in interface ISVGZoomAndPan
Throws:
DOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt to change the value of a read only attribute.
com.google.gwt.core.client.JavaScriptException


Copyright © 2012. All Rights Reserved.