@TagName(value="path") public class OMSVGPathElement extends OMSVGElement implements HasGraphicalHandlers, ISVGTests, ISVGLangSpace, ISVGExternalResourcesRequired, ISVGStylable, ISVGTransformable, ISVGAnimatedPathData, ISVGGraphicsElement
OMSVGPathElement
interface corresponds
to the path element.Modifier | Constructor and Description |
---|---|
|
OMSVGPathElement() |
protected |
OMSVGPathElement(SVGPathElement ot) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addActivateHandler(ActivateHandler handler)
Adds a
ActivateHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragHandler(com.google.gwt.event.dom.client.DragHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDropHandler(com.google.gwt.event.dom.client.DropHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addFocusInHandler(FocusInHandler handler)
Adds a
FocusInHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addFocusOutHandler(FocusOutHandler handler)
Adds a
FocusOutHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler) |
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. |
OMSVGElement |
getFarthestViewportElement()
The farthest ancestor svg element.
|
OMSVGElement |
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(OMSVGElement 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. |
addClassNameBaseVal, getClassName, getMarkup, getOwnerSVGElement, getStyle, getViewportElement, getXmlbase, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal, setId, setXmlbase
getAttribute, getAttributeNode, getAttributeNS, getAttributes, getElement, getElementsByTagName, getElementsByTagNameNS, getId, getTagName, hasAttribute, hasAttributeNS, removeAttribute, setAttribute, setAttributeNode, setAttributeNS
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addClassNameBaseVal, getClassName, getStyle, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal
public OMSVGPathElement()
protected OMSVGPathElement(SVGPathElement ot)
public final OMSVGAnimatedNumber getPathLength()
getPathLength()
on the given path element.public final float getTotalLength()
public final OMSVGPoint getPointAtLength(float distance)
distance
- The distance along the path, relative to the start of
the path, as a distance in the current user coordinate system.public final int getPathSegAtLength(float distance)
ISVGAnimatedPathData.getPathSegList()
which is distance units along the path, utilizing the user agent's
distance-along-a-path algorithm.distance
- The distance along the path, relative to the start of
the path, as a distance in the current user coordinate system.public final OMSVGPathSegClosePath createSVGPathSegClosePath()
OMSVGPathSegClosePath
object.OMSVGPathSegClosePath
object.public final OMSVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x, float y)
OMSVGPathSegMovetoAbs
object.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.OMSVGPathSegMovetoAbs
object.public final OMSVGPathSegMovetoRel createSVGPathSegMovetoRel(float x, float y)
OMSVGPathSegMovetoRel
object.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.OMSVGPathSegMovetoRel
object.public final OMSVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x, float y)
OMSVGPathSegLinetoAbs
object.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.OMSVGPathSegLinetoAbs
object.public final OMSVGPathSegLinetoRel createSVGPathSegLinetoRel(float x, float y)
OMSVGPathSegLinetoRel
object.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.OMSVGPathSegLinetoRel
object.public final OMSVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)
OMSVGPathSegCurvetoCubicAbs
object.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.OMSVGPathSegCurvetoCubicAbs
object.public final OMSVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)
OMSVGPathSegCurvetoCubicRel
object.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.OMSVGPathSegCurvetoCubicRel
object.public final OMSVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)
OMSVGPathSegCurvetoQuadraticAbs
object.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.OMSVGPathSegCurvetoQuadraticAbs
object.public final OMSVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)
OMSVGPathSegCurvetoQuadraticRel
object.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.OMSVGPathSegCurvetoQuadraticRel
object.public final OMSVGPathSegArcAbs createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
OMSVGPathSegArcAbs
object.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.OMSVGPathSegArcAbs
object.public final OMSVGPathSegArcRel createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
OMSVGPathSegArcRel
object.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.OMSVGPathSegArcRel
object.public final OMSVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)
OMSVGPathSegLinetoHorizontalAbs
object.x
- The absolute X coordinate for the end point of this path segment.OMSVGPathSegLinetoHorizontalAbs
object.public final OMSVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)
OMSVGPathSegLinetoHorizontalRel
object.x
- The relative X coordinate for the end point of this path segment.OMSVGPathSegLinetoHorizontalRel
object.public final OMSVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)
OMSVGPathSegLinetoVerticalAbs
object.y
- The absolute Y coordinate for the end point of this path segment.OMSVGPathSegLinetoVerticalAbs
object.public final OMSVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)
OMSVGPathSegLinetoVerticalRel
object.y
- The relative Y coordinate for the end point of this path segment.OMSVGPathSegLinetoVerticalRel
object.public final OMSVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)
OMSVGPathSegCurvetoCubicSmoothAbs
object.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.OMSVGPathSegCurvetoCubicSmoothAbs
object.public final OMSVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)
OMSVGPathSegCurvetoCubicSmoothRel
object.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.OMSVGPathSegCurvetoCubicSmoothRel
object.public final OMSVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y)
OMSVGPathSegCurvetoQuadraticSmoothAbs
object.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.OMSVGPathSegCurvetoQuadraticSmoothAbs
object.public final OMSVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y)
OMSVGPathSegCurvetoQuadraticSmoothRel
object.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.OMSVGPathSegCurvetoQuadraticSmoothRel
object.public final OMSVGPathSegList getPathSegList()
ISVGAnimatedPathData.getPathSegList()
will have two entries: a SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.getPathSegList
in interface ISVGAnimatedPathData
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).
getNormalizedPathSegList
in interface ISVGAnimatedPathData
public final OMSVGPathSegList getAnimatedPathSegList()
ISVGAnimatedPathData.getPathSegList()
.getAnimatedPathSegList
in interface ISVGAnimatedPathData
public final OMSVGPathSegList getAnimatedNormalizedPathSegList()
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()
.getAnimatedNormalizedPathSegList
in interface ISVGAnimatedPathData
public final OMSVGAnimatedBoolean getExternalResourcesRequired()
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()
.getExternalResourcesRequired
in interface ISVGExternalResourcesRequired
public final String getXmllang()
xml:lang
on the given element.getXmllang
in interface ISVGLangSpace
public final void setXmllang(String value) throws com.google.gwt.core.client.JavaScriptException
xml:lang
on the given element.setXmllang
in interface ISVGLangSpace
DOMException(NO_MODIFICATION_ALLOWED_ERR)
- Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptException
public final String getXmlspace()
xml:space
on the given element.getXmlspace
in interface ISVGLangSpace
public final void setXmlspace(String value) throws com.google.gwt.core.client.JavaScriptException
xml:space
on the given element.setXmlspace
in interface ISVGLangSpace
DOMException(NO_MODIFICATION_ALLOWED_ERR)
- Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptException
public final OMSVGElement getNearestViewportElement()
getNearestViewportElement
in interface ISVGLocatable
public final OMSVGElement getFarthestViewportElement()
getFarthestViewportElement
in interface ISVGLocatable
public final OMSVGRect getBBox()
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.getBBox
in interface ISVGLocatable
OMSVGRect
object that defines
the bounding box.public final OMSVGMatrix getCTM()
transform
attribute, if any) to the viewport
coordinate system for the ISVGLocatable.getNearestViewportElement()
.getCTM
in interface ISVGLocatable
OMSVGMatrix
object that defines
the CTM.public final OMSVGMatrix getScreenCTM()
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.getScreenCTM
in interface ISVGLocatable
OMSVGMatrix
object that defines
the given transformation matrix.public final OMSVGMatrix getTransformToElement(OMSVGElement element) throws com.google.gwt.core.client.JavaScriptException
transform
attribute,
if any) to the user coordinate system on parameter element (after
application of its transform
attribute, if any).getTransformToElement
in interface ISVGLocatable
element
- The target element.OMSVGMatrix
object that defines
the transformation.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
public final OMSVGStringList getRequiredFeatures()
ISVGTests.getRequiredFeatures()
on the given element.getRequiredFeatures
in interface ISVGTests
public final OMSVGStringList getRequiredExtensions()
ISVGTests.getRequiredExtensions()
on the given element.getRequiredExtensions
in interface ISVGTests
public final OMSVGStringList getSystemLanguage()
ISVGTests.getSystemLanguage()
on the given element.getSystemLanguage
in interface ISVGTests
public final boolean hasExtension(String extension)
hasExtension
in interface ISVGTests
extension
- The name of the extension, expressed as a URI.public final OMSVGAnimatedTransformList getTransform()
ISVGTransformable.getTransform()
on the given element.getTransform
in interface ISVGTransformable
public final com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler
in interface com.google.gwt.event.dom.client.HasClickHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler)
addDragEndHandler
in interface com.google.gwt.event.dom.client.HasDragEndHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler)
addDragEnterHandler
in interface com.google.gwt.event.dom.client.HasDragEnterHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragHandler(com.google.gwt.event.dom.client.DragHandler handler)
addDragHandler
in interface com.google.gwt.event.dom.client.HasDragHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler)
addDragLeaveHandler
in interface com.google.gwt.event.dom.client.HasDragLeaveHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler)
addDragOverHandler
in interface com.google.gwt.event.dom.client.HasDragOverHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler)
addDragStartHandler
in interface com.google.gwt.event.dom.client.HasDragStartHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDropHandler(com.google.gwt.event.dom.client.DropHandler handler)
addDropHandler
in interface com.google.gwt.event.dom.client.HasDropHandlers
public final com.google.gwt.event.shared.HandlerRegistration addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler)
addLoadHandler
in interface com.google.gwt.event.dom.client.HasLoadHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
addMouseDownHandler
in interface com.google.gwt.event.dom.client.HasMouseDownHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
addMouseMoveHandler
in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
addMouseOutHandler
in interface com.google.gwt.event.dom.client.HasMouseOutHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
addMouseOverHandler
in interface com.google.gwt.event.dom.client.HasMouseOverHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
addMouseUpHandler
in interface com.google.gwt.event.dom.client.HasMouseUpHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler)
addTouchCancelHandler
in interface com.google.gwt.event.dom.client.HasTouchCancelHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler)
addTouchEndHandler
in interface com.google.gwt.event.dom.client.HasTouchEndHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler)
addTouchMoveHandler
in interface com.google.gwt.event.dom.client.HasTouchMoveHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler)
addTouchStartHandler
in interface com.google.gwt.event.dom.client.HasTouchStartHandlers
public final com.google.gwt.event.shared.HandlerRegistration addActivateHandler(ActivateHandler handler)
HasActivateHandlers
ActivateHandler
handler.addActivateHandler
in interface HasActivateHandlers
handler
- the activate handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addFocusInHandler(FocusInHandler handler)
HasFocusInHandlers
FocusInHandler
handler.addFocusInHandler
in interface HasFocusInHandlers
handler
- the focusin handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addFocusOutHandler(FocusOutHandler handler)
HasFocusOutHandlers
FocusOutHandler
handler.addFocusOutHandler
in interface HasFocusOutHandlers
handler
- the focusout handlerHandlerRegistration
used to remove this handlerCopyright © 2018. All Rights Reserved.