
public interface SVGPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable
SVGPathElement interface corresponds to the <path>
element.ALLOW_KEYBOARD_INPUTATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Modifier and Type | Method and Description |
|---|---|
SVGPathSegArcAbs |
createSVGPathSegArcAbs(float x,
float y,
float r1,
float r2,
float angle,
boolean largeArcFlag,
boolean sweepFlag)
Returns a stand-alone, parentless
SVGPathSegArcAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. float r1The x-axis radius for the ellipse. float r2 The y-axis radius for the ellipse. float angle The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system. boolean largeArcFlag The value of the large-arc-flag parameter. boolean sweepFlag The value of the large-arc-flag parameter. |
SVGPathSegArcRel |
createSVGPathSegArcRel(float x,
float y,
float r1,
float r2,
float angle,
boolean largeArcFlag,
boolean sweepFlag)
Returns a stand-alone, parentless
SVGPathSegArcRel
object.Parameters: float xThe relative X coordinate for the end point of this path segment. float y The relative Y coordinate for the end point of this path segment. float r1The x-axis radius for the ellipse. float r2 The y-axis radius for the ellipse. float angle The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system. boolean largeArcFlag The value of the large-arc-flag parameter. boolean sweepFlag The value of the large-arc-flag parameter. |
SVGPathSegClosePath |
createSVGPathSegClosePath()
Returns a stand-alone, parentless
SVGPathSegClosePath
object. |
SVGPathSegCurvetoCubicAbs |
createSVGPathSegCurvetoCubicAbs(float x,
float y,
float x1,
float y1,
float x2,
float y2)
Returns a stand-alone, parentless
SVGPathSegCurvetoCubicAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. float x1The absolute X coordinate for the first control point. float y1The absolute Y coordinate for the first control point. float x2The absolute X coordinate for the second control point. float y2The absolute Y coordinate for the second control point. |
SVGPathSegCurvetoCubicRel |
createSVGPathSegCurvetoCubicRel(float x,
float y,
float x1,
float y1,
float x2,
float y2)
Returns a stand-alone, parentless
SVGPathSegCurvetoCubicRel
object.Parameters: float xThe relative X coordinate for the end point of this path segment. float y The relative Y coordinate for the end point of this path segment. float x1The relative X coordinate for the first control point. float y1The relative Y coordinate for the first control point. float x2The relative X coordinate for the second control point. float y2The relative Y coordinate for the second control point. |
SVGPathSegCurvetoCubicSmoothAbs |
createSVGPathSegCurvetoCubicSmoothAbs(float x,
float y,
float x2,
float y2)
Returns a stand-alone, parentless
SVGPathSegCurvetoCubicSmoothAbs
object.Parameters float x The absolute X coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. float x2 The absolute X coordinate for the second control point. float y2 The absolute Y coordinate for the second control point. |
SVGPathSegCurvetoCubicSmoothRel |
createSVGPathSegCurvetoCubicSmoothRel(float x,
float y,
float x2,
float y2)
Returns a stand-alone, parentless
SVGPathSegCurvetoCubicSmoothRel
object.Parameters float x The absolute X coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. float x2 The absolute X coordinate for the second control point. float y2 The absolute Y coordinate for the second control point. |
SVGPathSegCurvetoQuadraticAbs |
createSVGPathSegCurvetoQuadraticAbs(float x,
float y,
float x1,
float y1)
Returns a stand-alone, parentless
SVGPathSegCurvetoQuadraticAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float y The absolute Y coordinate for the end point of this path segment. float x1The absolute X coordinate for the first control point. float y1The absolute Y coordinate for the first control point. |
SVGPathSegCurvetoQuadraticRel |
createSVGPathSegCurvetoQuadraticRel(float x,
float y,
float x1,
float y1)
Returns a stand-alone, parentless
SVGPathSegCurvetoQuadraticRel
object.Parameters: float xThe relative X coordinate for the end point of this path segment. float y The relative Y coordinate for the end point of this path segment. float x1The relative X coordinate for the first control point. float y1The relative Y coordinate for the first control point. |
SVGPathSegCurvetoQuadraticSmoothAbs |
createSVGPathSegCurvetoQuadraticSmoothAbs(float x,
float y)
Returns a stand-alone, parentless
SVGPathSegCurvetoQuadraticSmoothAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float yThe absolute Y coordinate for the end point of this path segment. |
SVGPathSegCurvetoQuadraticSmoothRel |
createSVGPathSegCurvetoQuadraticSmoothRel(float x,
float y)
Returns a stand-alone, parentless
SVGPathSegCurvetoQuadraticSmoothRel
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float yThe absolute Y coordinate for the end point of this path segment. |
SVGPathSegLinetoAbs |
createSVGPathSegLinetoAbs(float x,
float y)
Returns a stand-alone, parentless
SVGPathSegLinetoAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float yThe absolute Y coordinate for the end point of this path segment. |
SVGPathSegLinetoHorizontalAbs |
createSVGPathSegLinetoHorizontalAbs(float x)
Returns a stand-alone, parentless
SVGPathSegLinetoHorizontalAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. |
SVGPathSegLinetoHorizontalRel |
createSVGPathSegLinetoHorizontalRel(float x)
Returns a stand-alone, parentless
SVGPathSegLinetoHorizontalRel
object.Parameters: float xThe relative X coordinate for the end point of this path segment. |
SVGPathSegLinetoRel |
createSVGPathSegLinetoRel(float x,
float y)
Returns a stand-alone, parentless
SVGPathSegLinetoRel
object.Parameters: float xThe relative X coordinate for the end point of this path segment. float yThe relative Y coordinate for the end point of this path segment. |
SVGPathSegLinetoVerticalAbs |
createSVGPathSegLinetoVerticalAbs(float y)
Returns a stand-alone, parentless
SVGPathSegLinetoVerticalAbs
object.Parameters: float yThe absolute Y coordinate for the end point of this path segment. |
SVGPathSegLinetoVerticalRel |
createSVGPathSegLinetoVerticalRel(float y)
Returns a stand-alone, parentless
SVGPathSegLinetoVerticalRel
object.Parameters: float yThe relative Y coordinate for the end point of this path segment. |
SVGPathSegMovetoAbs |
createSVGPathSegMovetoAbs(float x,
float y)
Returns a stand-alone, parentless
SVGPathSegMovetoAbs
object.Parameters: float xThe absolute X coordinate for the end point of this path segment. float yThe absolute Y coordinate for the end point of this path segment. |
SVGPathSegMovetoRel |
createSVGPathSegMovetoRel(float x,
float y)
Returns a stand-alone, parentless
SVGPathSegMovetoRel
object.Parameters: float xThe relative X coordinate for the end point of this path segment. float yThe relative Y coordinate for the end point of this path segment. |
SVGPathSegList |
getAnimatedNormalizedPathSegList() |
SVGPathSegList |
getAnimatedPathSegList() |
SVGPathSegList |
getNormalizedPathSegList() |
SVGAnimatedNumber |
getPathLength()
Corresponds to attribute
pathLength on the given <path>
element. |
int |
getPathSegAtLength(float distance)
Returns the index into
pathSegList which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm. |
SVGPathSegList |
getPathSegList() |
SVGPoint |
getPointAtLength(float distance)
Returns the (x,y) coordinate in user space which is distance units along the path, utilizing the browser's distance-along-a-path algorithm.
|
float |
getTotalLength()
Returns the computed value for the total length of the path using the browser's distance-along-a-path algorithm, as a distance in the current user coordinate system.
|
getId, getOwnerSVGElement, getViewportElement, getXmlbase, setId, setXmlbaseblur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreenaddEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContentgetRequiredExtensions, getRequiredFeatures, getSystemLanguage, hasExtensiongetXmllang, getXmlspace, setXmllang, setXmlspacegetExternalResourcesRequiredgetAnimatedClassName, getPresentationAttribute, getSvgStylegetAnimatedTransformgetBBox, getCTM, getFarthestViewportElement, getNearestViewportElement, getScreenCTM, getTransformToElementSVGPathSegList getAnimatedNormalizedPathSegList()
SVGPathSegList getAnimatedPathSegList()
SVGPathSegList getNormalizedPathSegList()
SVGAnimatedNumber getPathLength()
pathLength on the given <path>
element.SVGPathSegList getPathSegList()
SVGPathSegArcAbs createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
SVGPathSegArcAbs
object.float xfloat y float r1float r2 float angle boolean largeArcFlag boolean sweepFlag SVGPathSegArcRel createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
SVGPathSegArcRel
object.float xfloat y float r1float r2 float angle boolean largeArcFlag boolean sweepFlag SVGPathSegClosePath createSVGPathSegClosePath()
SVGPathSegClosePath
object.SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)
SVGPathSegCurvetoCubicAbs
object.float xfloat y float x1float y1float x2float y2SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)
SVGPathSegCurvetoCubicRel
object.float xfloat y float x1float y1float x2float y2SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)
SVGPathSegCurvetoCubicSmoothAbs
object.float x float y float x2 float y2 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)
SVGPathSegCurvetoCubicSmoothRel
object.float x float y float x2 float y2 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)
SVGPathSegCurvetoQuadraticAbs
object.float xfloat y float x1float y1SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)
SVGPathSegCurvetoQuadraticRel
object.float xfloat y float x1float y1SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y)
SVGPathSegCurvetoQuadraticSmoothAbs
object.float xfloat ySVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y)
SVGPathSegCurvetoQuadraticSmoothRel
object.float xfloat ySVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x, float y)
SVGPathSegLinetoAbs
object.float xfloat ySVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)
SVGPathSegLinetoHorizontalAbs
object.float xSVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)
SVGPathSegLinetoHorizontalRel
object.float xSVGPathSegLinetoRel createSVGPathSegLinetoRel(float x, float y)
SVGPathSegLinetoRel
object.float xfloat ySVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)
SVGPathSegLinetoVerticalAbs
object.float ySVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)
SVGPathSegLinetoVerticalRel
object.float ySVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x, float y)
SVGPathSegMovetoAbs
object.float xfloat ySVGPathSegMovetoRel createSVGPathSegMovetoRel(float x, float y)
SVGPathSegMovetoRel
object.float xfloat yint getPathSegAtLength(float distance)
pathSegList which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.SVGPoint getPointAtLength(float distance)
float getTotalLength()
Copyright © 2016. All rights reserved.