org.vectomatic.dom.svg
Class OMSVGGradientElement

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.OMSVGGradientElement
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, ISVGExternalResourcesRequired, ISVGStylable, ISVGUnitTypes, ISVGURIReference
Direct Known Subclasses:
OMSVGLinearGradientElement, OMSVGRadialGradientElement

public abstract class OMSVGGradientElement
extends OMSVGElement
implements ISVGURIReference, ISVGExternalResourcesRequired, ISVGStylable, ISVGUnitTypes

The OMSVGGradientElement interface is a base interface used by OMSVGLinearGradientElement and OMSVGRadialGradientElement.


Field Summary
static short SVG_SPREADMETHOD_PAD
          Corresponds to value 'pad'.
static short SVG_SPREADMETHOD_REFLECT
          Corresponds to value 'reflect'.
static short SVG_SPREADMETHOD_REPEAT
          Corresponds to value 'repeat'.
static short SVG_SPREADMETHOD_UNKNOWN
          The type is not one of predefined types.
 
Fields inherited from class org.vectomatic.dom.svg.OMNode
eventBus, ot
 
Fields inherited from interface org.vectomatic.dom.svg.itf.ISVGUnitTypes
SVG_UNIT_TYPE_OBJECTBOUNDINGBOX, SVG_UNIT_TYPE_UNKNOWN, SVG_UNIT_TYPE_USERSPACEONUSE
 
Constructor Summary
protected OMSVGGradientElement(SVGGradientElement ot)
           
 
Method Summary
 OMSVGAnimatedBoolean getExternalResourcesRequired()
          Corresponds to attribute ISVGExternalResourcesRequired.getExternalResourcesRequired() on the given element.
 OMSVGAnimatedTransformList getGradientTransform()
          Corresponds to attribute 'gradientTransform' on the given element.
 OMSVGAnimatedEnumeration getGradientUnits()
          Corresponds to attribute 'gradientUnits' on the given element.
 OMSVGAnimatedString getHref()
          Corresponds to attribute 'xlink:href' on the given element.
 OMSVGAnimatedEnumeration getSpreadMethod()
          Corresponds to attribute 'spreadMethod' 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
 
Methods inherited from interface org.vectomatic.dom.svg.itf.ISVGStylable
addClassNameBaseVal, getClassName, getStyle, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal
 

Field Detail

SVG_SPREADMETHOD_UNKNOWN

public static final short SVG_SPREADMETHOD_UNKNOWN
The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

See Also:
Constant Field Values

SVG_SPREADMETHOD_PAD

public static final short SVG_SPREADMETHOD_PAD
Corresponds to value 'pad'.

See Also:
Constant Field Values

SVG_SPREADMETHOD_REFLECT

public static final short SVG_SPREADMETHOD_REFLECT
Corresponds to value 'reflect'.

See Also:
Constant Field Values

SVG_SPREADMETHOD_REPEAT

public static final short SVG_SPREADMETHOD_REPEAT
Corresponds to value 'repeat'.

See Also:
Constant Field Values
Constructor Detail

OMSVGGradientElement

protected OMSVGGradientElement(SVGGradientElement ot)
Method Detail

getGradientUnits

public final OMSVGAnimatedEnumeration getGradientUnits()
Corresponds to attribute 'gradientUnits' on the given element. Takes one of the constants defined in ISVGUnitTypes.


getGradientTransform

public final OMSVGAnimatedTransformList getGradientTransform()
Corresponds to attribute 'gradientTransform' on the given element.


getSpreadMethod

public final OMSVGAnimatedEnumeration getSpreadMethod()
Corresponds to attribute 'spreadMethod' on the given element. One of the Spread Method Types defined on this interface.


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

getHref

public final OMSVGAnimatedString getHref()
Corresponds to attribute 'xlink:href' on the given element.

Specified by:
getHref in interface ISVGURIReference


Copyright © 2012. All Rights Reserved.