org.vectomatic.dom.svg
Class OMSVGMarkerElement

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.OMSVGMarkerElement
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, ISVGContainerElement, ISVGExternalResourcesRequired, ISVGFitToViewBox, ISVGLangSpace, ISVGStylable

@TagName(value="marker")
public class OMSVGMarkerElement
extends OMSVGElement
implements ISVGLangSpace, ISVGExternalResourcesRequired, ISVGStylable, ISVGFitToViewBox, ISVGContainerElement

The OMSVGMarkerElement interface corresponds to the marker element.


Field Summary
static short SVG_MARKER_ORIENT_ANGLE
          Attribute orient has an angle value.
static short SVG_MARKER_ORIENT_AUTO
          Attribute orient has value 'auto'.
static short SVG_MARKER_ORIENT_UNKNOWN
          The marker orientation is not one of predefined types.
static short SVG_MARKERUNITS_STROKEWIDTH
          The value of attribute getMarkerUnits() is 'strokeWidth'.
static short SVG_MARKERUNITS_UNKNOWN
          The marker unit type is not one of predefined types.
static short SVG_MARKERUNITS_USERSPACEONUSE
          The value of attribute getMarkerUnits() is 'userSpaceOnUse'.
 
Fields inherited from class org.vectomatic.dom.svg.OMNode
eventBus, ot
 
Constructor Summary
  OMSVGMarkerElement()
           
protected OMSVGMarkerElement(SVGMarkerElement ot)
           
 
Method Summary
 OMSVGAnimatedBoolean getExternalResourcesRequired()
          Corresponds to attribute ISVGExternalResourcesRequired.getExternalResourcesRequired() on the given element.
 OMSVGAnimatedLength getMarkerHeight()
          Corresponds to attribute getMarkerHeight() on the given marker element.
 OMSVGAnimatedEnumeration getMarkerUnits()
          Corresponds to attribute getMarkerUnits() on the given marker element.
 OMSVGAnimatedLength getMarkerWidth()
          Corresponds to attribute getMarkerWidth() on the given marker element.
 OMSVGAnimatedAngle getOrientAngle()
          Corresponds to attribute orient on the given marker element.
 OMSVGAnimatedEnumeration getOrientType()
          Corresponds to attribute orient on the given marker element.
 OMSVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
          Corresponds to attribute ISVGFitToViewBox.getPreserveAspectRatio() on the given element.
 OMSVGAnimatedLength getRefX()
          Corresponds to attribute getRefX() on the given marker element.
 OMSVGAnimatedLength getRefY()
          Corresponds to attribute getRefY() on the given marker element.
 OMSVGAnimatedRect getViewBox()
          Corresponds to attribute ISVGFitToViewBox.getViewBox() on the given element.
 String getXmllang()
          Corresponds to attribute xml:lang on the given element.
 String getXmlspace()
          Corresponds to attribute xml:space on the given element.
 void setOrientToAngle(OMSVGAngle angle)
          Sets the value of attribute orient to the given angle.
 void setOrientToAuto()
          Sets the value of attribute orient to 'auto'.
 void setXmllang(String value)
          Corresponds to attribute xml:lang on the given element.
 void setXmlspace(String value)
          Corresponds to attribute xml:space 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_MARKERUNITS_UNKNOWN

public static final short SVG_MARKERUNITS_UNKNOWN
The marker unit 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_MARKERUNITS_USERSPACEONUSE

public static final short SVG_MARKERUNITS_USERSPACEONUSE
The value of attribute getMarkerUnits() is 'userSpaceOnUse'.

See Also:
Constant Field Values

SVG_MARKERUNITS_STROKEWIDTH

public static final short SVG_MARKERUNITS_STROKEWIDTH
The value of attribute getMarkerUnits() is 'strokeWidth'.

See Also:
Constant Field Values

SVG_MARKER_ORIENT_UNKNOWN

public static final short SVG_MARKER_ORIENT_UNKNOWN
The marker orientation 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_MARKER_ORIENT_AUTO

public static final short SVG_MARKER_ORIENT_AUTO
Attribute orient has value 'auto'.

See Also:
Constant Field Values

SVG_MARKER_ORIENT_ANGLE

public static final short SVG_MARKER_ORIENT_ANGLE
Attribute orient has an angle value.

See Also:
Constant Field Values
Constructor Detail

OMSVGMarkerElement

public OMSVGMarkerElement()

OMSVGMarkerElement

protected OMSVGMarkerElement(SVGMarkerElement ot)
Method Detail

getRefX

public final OMSVGAnimatedLength getRefX()
Corresponds to attribute getRefX() on the given marker element.


getRefY

public final OMSVGAnimatedLength getRefY()
Corresponds to attribute getRefY() on the given marker element.


getMarkerUnits

public final OMSVGAnimatedEnumeration getMarkerUnits()
Corresponds to attribute getMarkerUnits() on the given marker element. One of the Marker Unit Types defined on this interface.


getMarkerWidth

public final OMSVGAnimatedLength getMarkerWidth()
Corresponds to attribute getMarkerWidth() on the given marker element.


getMarkerHeight

public final OMSVGAnimatedLength getMarkerHeight()
Corresponds to attribute getMarkerHeight() on the given marker element.


getOrientType

public final OMSVGAnimatedEnumeration getOrientType()
Corresponds to attribute orient on the given marker element. One of the Marker Orientation Types defined on this interface.


getOrientAngle

public final OMSVGAnimatedAngle getOrientAngle()
Corresponds to attribute orient on the given marker element. If getMarkerUnits() is SVG_MARKER_ORIENT_ANGLE, the angle value for attribute orient; otherwise, it will be set to zero.


setOrientToAuto

public final void setOrientToAuto()
                           throws com.google.gwt.core.client.JavaScriptException
Sets the value of attribute orient to 'auto'.

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

setOrientToAngle

public final void setOrientToAngle(OMSVGAngle angle)
                            throws com.google.gwt.core.client.JavaScriptException
Sets the value of attribute orient to the given angle.

Parameters:
angle - The angle value to use for attribute orient.
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

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

getXmllang

public final String getXmllang()
Corresponds to attribute xml:lang on the given element.

Specified by:
getXmllang in interface ISVGLangSpace

setXmllang

public final void setXmllang(String value)
                      throws com.google.gwt.core.client.JavaScriptException
Corresponds to attribute xml:lang on the given element.

Specified by:
setXmllang in interface ISVGLangSpace
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

getXmlspace

public final String getXmlspace()
Corresponds to attribute xml:space on the given element.

Specified by:
getXmlspace in interface ISVGLangSpace

setXmlspace

public final void setXmlspace(String value)
                       throws com.google.gwt.core.client.JavaScriptException
Corresponds to attribute xml:space on the given element.

Specified by:
setXmlspace in interface ISVGLangSpace
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.