org.vectomatic.dom.svg.impl
Class SVGPathElement

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.Node
          extended by com.google.gwt.dom.client.Element
              extended by org.vectomatic.dom.svg.impl.SVGElement
                  extended by org.vectomatic.dom.svg.impl.SVGPathElement

public class SVGPathElement
extends SVGElement

The SVGPathElement interface corresponds to the path element.


Field Summary
 
Fields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUE
 
Fields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
 
Constructor Summary
protected SVGPathElement()
           
 
Method Summary
 OMSVGPathSegArcAbs createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
          Returns a stand-alone, parentless OMSVGPathSegArcAbs object.
 OMSVGPathSegArcRel createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
          Returns a stand-alone, parentless OMSVGPathSegArcRel object.
 OMSVGPathSegClosePath createSVGPathSegClosePath()
          Returns a stand-alone, parentless OMSVGPathSegClosePath object.
 OMSVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicAbs object.
 OMSVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicRel object.
 OMSVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicSmoothAbs object.
 OMSVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicSmoothRel object.
 OMSVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticAbs object.
 OMSVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticRel object.
 OMSVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticSmoothAbs object.
 OMSVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y)
          Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticSmoothRel object.
 OMSVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x, float y)
          Returns a stand-alone, parentless OMSVGPathSegLinetoAbs object.
 OMSVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)
          Returns a stand-alone, parentless OMSVGPathSegLinetoHorizontalAbs object.
 OMSVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)
          Returns a stand-alone, parentless OMSVGPathSegLinetoHorizontalRel object.
 OMSVGPathSegLinetoRel createSVGPathSegLinetoRel(float x, float y)
          Returns a stand-alone, parentless OMSVGPathSegLinetoRel object.
 OMSVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)
          Returns a stand-alone, parentless OMSVGPathSegLinetoVerticalAbs object.
 OMSVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)
          Returns a stand-alone, parentless OMSVGPathSegLinetoVerticalRel object.
 OMSVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x, float y)
          Returns a stand-alone, parentless OMSVGPathSegMovetoAbs object.
 OMSVGPathSegMovetoRel createSVGPathSegMovetoRel(float x, float y)
          Returns a stand-alone, parentless OMSVGPathSegMovetoRel object.
 OMSVGPathSegList getAnimatedNormalizedPathSegList()
          Provides access to the current animated contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of OMSVGPathSeg types: SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z).
 OMSVGPathSegList getAnimatedPathSegList()
          Provides access to the current animated contents of the 'd' attribute in a form which matches one-for-one with SVG's syntax.
 OMSVGRect getBBox()
          Returns the tight bounding box in current user space (i.e., after application of the transform attribute, if any) on the geometry of all contained graphics elements, exclusive of stroking, clipping, masking and filter effects).
 OMSVGMatrix getCTM()
          Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the viewport coordinate system for the ISVGLocatable.getNearestViewportElement().
 OMSVGAnimatedBoolean getExternalResourcesRequired()
          Corresponds to attribute ISVGExternalResourcesRequired.getExternalResourcesRequired() on the given element.
 SVGElement getFarthestViewportElement()
          The farthest ancestor svg element.
 SVGElement getNearestViewportElement()
          The element which established the current viewport.
 OMSVGPathSegList getNormalizedPathSegList()
          Provides access to the base (i.e., static) contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of OMSVGPathSeg types: SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z).
 OMSVGAnimatedNumber getPathLength()
          Corresponds to attribute getPathLength() on the given path element.
 int getPathSegAtLength(float distance)
          Returns the index into ISVGAnimatedPathData.getPathSegList() which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.
 OMSVGPathSegList getPathSegList()
          Provides access to the base (i.e., static) contents of the 'd' attribute in a form which matches one-for-one with SVG's syntax.
 OMSVGPoint getPointAtLength(float distance)
          Returns the (x,y) coordinate in user space which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.
 OMSVGStringList getRequiredExtensions()
          Corresponds to attribute ISVGTests.getRequiredExtensions() on the given element.
 OMSVGStringList getRequiredFeatures()
          Corresponds to attribute ISVGTests.getRequiredFeatures() on the given element.
 OMSVGMatrix getScreenCTM()
          Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the parent user agent's notice of a "pixel".
 OMSVGStringList getSystemLanguage()
          Corresponds to attribute ISVGTests.getSystemLanguage() on the given element.
 float getTotalLength()
          Returns the user agent's computed value for the total length of the path using the user agent's distance-along-a-path algorithm, as a distance in the current user coordinate system.
 OMSVGAnimatedTransformList getTransform()
          Corresponds to attribute ISVGTransformable.getTransform() on the given element.
 OMSVGMatrix getTransformToElement(SVGElement element)
          Returns the transformation matrix from the user coordinate system on the current element (after application of the transform attribute, if any) to the user coordinate system on parameter element (after application of its transform attribute, if any).
 String getXmllang()
          Corresponds to attribute xml:lang on the given element.
 String getXmlspace()
          Corresponds to attribute xml:space on the given element.
 boolean hasExtension(String extension)
          Returns true if the user agent supports the given extension, specified by a URI.
 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.impl.SVGElement
getClassName_, getMarkup, getOwnerSVGElement, getViewportElement, getXmlbase, setXmlbase
 
Methods inherited from class com.google.gwt.dom.client.Element
addClassName, as, as, blur, dispatchEvent, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getAttribute, getClassName, getClientHeight, getClientWidth, getDir, getDraggable, getElementsByTagName, getFirstChildElement, getId, getInnerHTML, getInnerText, getLang, getNextSiblingElement, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getPreviousSiblingElement, getPropertyBoolean, getPropertyDouble, getPropertyInt, getPropertyJSO, getPropertyObject, getPropertyString, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getString, getStyle, getTabIndex, getTagName, getTitle, hasAttribute, hasTagName, is, is, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle
 
Methods inherited from class com.google.gwt.dom.client.Node
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeChild, removeFromParent, replaceChild, setNodeValue
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SVGPathElement

protected SVGPathElement()
Method Detail

getPathLength

public final OMSVGAnimatedNumber getPathLength()
Corresponds to attribute getPathLength() on the given path element.


getTotalLength

public final float getTotalLength()
Returns the user agent's computed value for the total length of the path using the user agent's distance-along-a-path algorithm, as a distance in the current user coordinate system.

Returns:
The total length of the path.

getPointAtLength

public final OMSVGPoint getPointAtLength(float distance)
Returns the (x,y) coordinate in user space which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.

Parameters:
distance - The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.
Returns:
The returned point in user space.

getPathSegAtLength

public final int getPathSegAtLength(float distance)
Returns the index into ISVGAnimatedPathData.getPathSegList() which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.

Parameters:
distance - The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.
Returns:
The index of the path segment, where the first path segment is number 0.

createSVGPathSegClosePath

public final OMSVGPathSegClosePath createSVGPathSegClosePath()
Returns a stand-alone, parentless OMSVGPathSegClosePath object.

Returns:
A stand-alone, parentless OMSVGPathSegClosePath object.

createSVGPathSegMovetoAbs

public final OMSVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x,
                                                             float y)
Returns a stand-alone, parentless OMSVGPathSegMovetoAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegMovetoAbs object.

createSVGPathSegMovetoRel

public final OMSVGPathSegMovetoRel createSVGPathSegMovetoRel(float x,
                                                             float y)
Returns a stand-alone, parentless OMSVGPathSegMovetoRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegMovetoRel object.

createSVGPathSegLinetoAbs

public final OMSVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x,
                                                             float y)
Returns a stand-alone, parentless OMSVGPathSegLinetoAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegLinetoAbs object.

createSVGPathSegLinetoRel

public final OMSVGPathSegLinetoRel createSVGPathSegLinetoRel(float x,
                                                             float y)
Returns a stand-alone, parentless OMSVGPathSegLinetoRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegLinetoRel object.

createSVGPathSegCurvetoCubicAbs

public final OMSVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x,
                                                                         float y,
                                                                         float x1,
                                                                         float y1,
                                                                         float x2,
                                                                         float y2)
Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
x1 - The absolute X coordinate for the first control point.
y1 - The absolute Y coordinate for the first control point.
x2 - The absolute X coordinate for the second control point.
y2 - The absolute Y coordinate for the second control point.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoCubicAbs object.

createSVGPathSegCurvetoCubicRel

public final OMSVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x,
                                                                         float y,
                                                                         float x1,
                                                                         float y1,
                                                                         float x2,
                                                                         float y2)
Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
x1 - The relative X coordinate for the first control point.
y1 - The relative Y coordinate for the first control point.
x2 - The relative X coordinate for the second control point.
y2 - The relative Y coordinate for the second control point.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoCubicRel object.

createSVGPathSegCurvetoQuadraticAbs

public final OMSVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x,
                                                                                 float y,
                                                                                 float x1,
                                                                                 float y1)
Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
x1 - The absolute X coordinate for the first control point.
y1 - The absolute Y coordinate for the first control point.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoQuadraticAbs object.

createSVGPathSegCurvetoQuadraticRel

public final OMSVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x,
                                                                                 float y,
                                                                                 float x1,
                                                                                 float y1)
Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
x1 - The relative X coordinate for the first control point.
y1 - The relative Y coordinate for the first control point.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoQuadraticRel object.

createSVGPathSegArcAbs

public final OMSVGPathSegArcAbs createSVGPathSegArcAbs(float x,
                                                       float y,
                                                       float r1,
                                                       float r2,
                                                       float angle,
                                                       boolean largeArcFlag,
                                                       boolean sweepFlag)
Returns a stand-alone, parentless OMSVGPathSegArcAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
r1 - The x-axis radius for the ellipse (i.e., r1).
r2 - The y-axis radius for the ellipse (i.e., r2).
angle - The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
largeArcFlag - The value of the large-arc-flag parameter.
sweepFlag - The value of the large-arc-flag parameter.
Returns:
A stand-alone, parentless OMSVGPathSegArcAbs object.

createSVGPathSegArcRel

public final OMSVGPathSegArcRel createSVGPathSegArcRel(float x,
                                                       float y,
                                                       float r1,
                                                       float r2,
                                                       float angle,
                                                       boolean largeArcFlag,
                                                       boolean sweepFlag)
Returns a stand-alone, parentless OMSVGPathSegArcRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
r1 - The x-axis radius for the ellipse (i.e., r1).
r2 - The y-axis radius for the ellipse (i.e., r2).
angle - The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
largeArcFlag - The value of the large-arc-flag parameter.
sweepFlag - The value of the large-arc-flag parameter.
Returns:
A stand-alone, parentless OMSVGPathSegArcRel object.

createSVGPathSegLinetoHorizontalAbs

public final OMSVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)
Returns a stand-alone, parentless OMSVGPathSegLinetoHorizontalAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegLinetoHorizontalAbs object.

createSVGPathSegLinetoHorizontalRel

public final OMSVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)
Returns a stand-alone, parentless OMSVGPathSegLinetoHorizontalRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegLinetoHorizontalRel object.

createSVGPathSegLinetoVerticalAbs

public final OMSVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)
Returns a stand-alone, parentless OMSVGPathSegLinetoVerticalAbs object.

Parameters:
y - The absolute Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegLinetoVerticalAbs object.

createSVGPathSegLinetoVerticalRel

public final OMSVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)
Returns a stand-alone, parentless OMSVGPathSegLinetoVerticalRel object.

Parameters:
y - The relative Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegLinetoVerticalRel object.

createSVGPathSegCurvetoCubicSmoothAbs

public final OMSVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x,
                                                                                     float y,
                                                                                     float x2,
                                                                                     float y2)
Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicSmoothAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
x2 - The absolute X coordinate for the second control point.
y2 - The absolute Y coordinate for the second control point.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoCubicSmoothAbs object.

createSVGPathSegCurvetoCubicSmoothRel

public final OMSVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x,
                                                                                     float y,
                                                                                     float x2,
                                                                                     float y2)
Returns a stand-alone, parentless OMSVGPathSegCurvetoCubicSmoothRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
x2 - The relative X coordinate for the second control point.
y2 - The relative Y coordinate for the second control point.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoCubicSmoothRel object.

createSVGPathSegCurvetoQuadraticSmoothAbs

public final OMSVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x,
                                                                                             float y)
Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticSmoothAbs object.

Parameters:
x - The absolute X coordinate for the end point of this path segment.
y - The absolute Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoQuadraticSmoothAbs object.

createSVGPathSegCurvetoQuadraticSmoothRel

public final OMSVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x,
                                                                                             float y)
Returns a stand-alone, parentless OMSVGPathSegCurvetoQuadraticSmoothRel object.

Parameters:
x - The relative X coordinate for the end point of this path segment.
y - The relative Y coordinate for the end point of this path segment.
Returns:
A stand-alone, parentless OMSVGPathSegCurvetoQuadraticSmoothRel object.

getPathSegList

public final OMSVGPathSegList getPathSegList()
Provides access to the base (i.e., static) contents of the 'd' attribute in a form which matches one-for-one with SVG's syntax. Thus, if the 'd' attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then ISVGAnimatedPathData.getPathSegList() will have two entries: a SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.


getNormalizedPathSegList

public final OMSVGPathSegList getNormalizedPathSegList()

Provides access to the base (i.e., static) contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of OMSVGPathSeg types: SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z). Thus, if the 'd' attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then pathSegList will have one SVG_PATHSEG_MOVETO_ABS entry followed by a series of SVG_PATHSEG_LINETO_ABS entries which approximate the arc. This alternate representation is available to provide a simpler interface to developers who would benefit from a more limited set of commands.

The only valid OMSVGPathSeg types are SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z).


getAnimatedPathSegList

public final OMSVGPathSegList getAnimatedPathSegList()
Provides access to the current animated contents of the 'd' attribute in a form which matches one-for-one with SVG's syntax. If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, contains the same value as ISVGAnimatedPathData.getPathSegList().


getAnimatedNormalizedPathSegList

public final OMSVGPathSegList getAnimatedNormalizedPathSegList()
Provides access to the current animated contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of OMSVGPathSeg types: SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z). If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, contains the same value as ISVGAnimatedPathData.getNormalizedPathSegList().


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().


getXmllang

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


setXmllang

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

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.


setXmlspace

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

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

getNearestViewportElement

public final SVGElement getNearestViewportElement()
The element which established the current viewport. Often, the nearest ancestor svg element. Null if the current element is the outermost svg element.


getFarthestViewportElement

public final SVGElement getFarthestViewportElement()
The farthest ancestor svg element. Null if the current element is the outermost svg element.


getBBox

public final OMSVGRect getBBox()
Returns the tight bounding box in current user space (i.e., after application of the transform attribute, if any) on the geometry of all contained graphics elements, exclusive of stroking, clipping, masking and filter effects). Note that getBBox must return the actual bounding box at the time the method was called, even in case the element has not yet been rendered.

Returns:
An OMSVGRect object that defines the bounding box.

getCTM

public final OMSVGMatrix getCTM()
Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the viewport coordinate system for the ISVGLocatable.getNearestViewportElement().

Returns:
An OMSVGMatrix object that defines the CTM.

getScreenCTM

public final OMSVGMatrix getScreenCTM()
Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the parent user agent's notice of a "pixel". For display devices, ideally this represents a physical screen pixel. For other devices or environments where physical pixel sizes are not known, then an algorithm similar to the CSS2 definition of a "pixel" can be used instead. Note that null is returned if this element is not hooked into the document tree. This method would have been more aptly named as getClientCTM, but the name getScreenCTM is kept for historical reasons.

Returns:
An OMSVGMatrix object that defines the given transformation matrix.

getTransformToElement

public final OMSVGMatrix getTransformToElement(SVGElement element)
                                        throws com.google.gwt.core.client.JavaScriptException
Returns the transformation matrix from the user coordinate system on the current element (after application of the transform attribute, if any) to the user coordinate system on parameter element (after application of its transform attribute, if any).

Parameters:
element - The target element.
Returns:
An OMSVGMatrix object that defines the transformation.
Throws:
SVGException(SVG_MATRIX_NOT_INVERTABLE) - Raised if the currently defined transformation matrices make it impossible to compute the given matrix (e.g., because one of the transformations is singular).
com.google.gwt.core.client.JavaScriptException

getRequiredFeatures

public final OMSVGStringList getRequiredFeatures()
Corresponds to attribute ISVGTests.getRequiredFeatures() on the given element.


getRequiredExtensions

public final OMSVGStringList getRequiredExtensions()
Corresponds to attribute ISVGTests.getRequiredExtensions() on the given element.


getSystemLanguage

public final OMSVGStringList getSystemLanguage()
Corresponds to attribute ISVGTests.getSystemLanguage() on the given element.


hasExtension

public final boolean hasExtension(String extension)
Returns true if the user agent supports the given extension, specified by a URI.

Parameters:
extension - The name of the extension, expressed as a URI.
Returns:
True or false, depending on whether the given extension is supported.

getTransform

public final OMSVGAnimatedTransformList getTransform()
Corresponds to attribute ISVGTransformable.getTransform() on the given element.



Copyright © 2012. All Rights Reserved.