@DOMObjectAttribute @DOMNameAttribute(name="SVGPathElement") public class SVGPathElement extends SVGGeometryElement implements ISVGAnimatedPathData
The SVGPathElement interface corresponds to the ‘path’ element.
SVGGeometryElement
,
ISVGAnimatedPathData
Node.Flags
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged
Constructor and Description |
---|
SVGPathElement(com.aspose.html.dom.DOMName name,
Document doc)
Initializes a new instance of the
SVGElement class. |
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.
|
SVGPathSegArcRel |
createSVGPathSegArcRel(float x,
float y,
float r1,
float r2,
float angle,
boolean largeArcFlag,
boolean sweepFlag)
Returns a stand-alone, parentless SVGPathSegArcRel object.
|
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.
|
SVGPathSegCurvetoCubicRel |
createSVGPathSegCurvetoCubicRel(float x,
float y,
float x1,
float y1,
float x2,
float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object.
|
SVGPathSegCurvetoCubicSmoothAbs |
createSVGPathSegCurvetoCubicSmoothAbs(float x,
float y,
float x2,
float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.
|
SVGPathSegCurvetoCubicSmoothRel |
createSVGPathSegCurvetoCubicSmoothRel(float x,
float y,
float x2,
float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.
|
SVGPathSegCurvetoQuadraticAbs |
createSVGPathSegCurvetoQuadraticAbs(float x,
float y,
float x1,
float y1)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.
|
SVGPathSegCurvetoQuadraticRel |
createSVGPathSegCurvetoQuadraticRel(float x,
float y,
float x1,
float y1)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.
|
SVGPathSegCurvetoQuadraticSmoothAbs |
createSVGPathSegCurvetoQuadraticSmoothAbs(float x,
float y)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.
|
SVGPathSegCurvetoQuadraticSmoothRel |
createSVGPathSegCurvetoQuadraticSmoothRel(float x,
float y)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.
|
SVGPathSegLinetoAbs |
createSVGPathSegLinetoAbs(float x,
float y)
Returns a stand-alone, parentless SVGPathSegLinetoAbs object.
|
SVGPathSegLinetoHorizontalAbs |
createSVGPathSegLinetoHorizontalAbs(float x)
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.
|
SVGPathSegLinetoHorizontalRel |
createSVGPathSegLinetoHorizontalRel(float x)
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object.
|
SVGPathSegLinetoRel |
createSVGPathSegLinetoRel(float x,
float y)
Returns a stand-alone, parentless SVGPathSegLinetoRel object.
|
SVGPathSegLinetoVerticalAbs |
createSVGPathSegLinetoVerticalAbs(float y)
Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object.
|
SVGPathSegLinetoVerticalRel |
createSVGPathSegLinetoVerticalRel(float y)
Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object.
|
SVGPathSegMovetoAbs |
createSVGPathSegMovetoAbs(float x,
float y)
Returns a stand-alone, parentless SVGPathSegMovetoAbs object.
|
SVGPathSegMovetoRel |
createSVGPathSegMovetoRel(float x,
float y)
Returns a stand-alone, parentless SVGPathSegMovetoRel object.
|
SVGPathSegList |
equivalentPath() |
SVGPathSegList |
getAnimatedPathSegList()
Provides access to the current animated contents of the ‘d’ attribute in a form which matches one-for-one with SVG's syntax.
|
long |
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()
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.
|
getPathLength, getPointAtLength, getTotalLength, isPointInFill, isPointInStroke
getBBox, getCTM, getFarthestViewportElement, getNearestViewportElement, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSystemLanguage, getTransform
addSVGAttributeBinding, blur, focus, getClassName_SVGElement_New, getId_SVGElement_New, getOwnerSVGElement, getStyle, getSVGAttributeBindings, getSVGContext, getTabIndex, getViewportElement, isReadOnly, isRendered, setId_SVGElement_New, setTabIndex
attachShadow, equals, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassName, getComputedStyle, getComputedStyle, getData, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getLocalName, getNamespaceURI, getNextElementSibling, getNodeName, getNodeType, getOuterHTML, getPrefix, getPreviousElementSibling, getSchemaTypeInfo, getShadowRoot, getStyleContainer, getTag, getTagName, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setData, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setOuterHTML, setTextContent
adoptNode, appendChild, cloneNode, deepClone, getBaseURI, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRegisteredObservers, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setNodeValue, setParentNode, setPrefix, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public SVGPathElement(com.aspose.html.dom.DOMName name, Document doc)
Initializes a new instance of the SVGElement
class.
name
- The element name.doc
- The document.public SVGPathSegList 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 pathSegList will have two entries: a SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.
Value: The path segment list.getPathSegList
in interface ISVGAnimatedPathData
public SVGPathSegList 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 pathSegList.
Value: The animated path segment list.getAnimatedPathSegList
in interface ISVGAnimatedPathData
@DOMNameAttribute(name="getPathSegAtLength") public long 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.
distance
- The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.@DOMNameAttribute(name="createSVGPathSegClosePath") public SVGPathSegClosePath createSVGPathSegClosePath()
Returns a stand-alone, parentless SVGPathSegClosePath object.
@DOMNameAttribute(name="createSVGPathSegMovetoAbs") public SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(float x, float y)
Returns a stand-alone, parentless SVGPathSegMovetoAbs 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.@DOMNameAttribute(name="createSVGPathSegMovetoRel") public SVGPathSegMovetoRel createSVGPathSegMovetoRel(float x, float y)
Returns a stand-alone, parentless SVGPathSegMovetoRel 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.@DOMNameAttribute(name="createSVGPathSegLinetoAbs") public SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(float x, float y)
Returns a stand-alone, parentless SVGPathSegLinetoAbs 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.@DOMNameAttribute(name="createSVGPathSegLinetoRel") public SVGPathSegLinetoRel createSVGPathSegLinetoRel(float x, float y)
Returns a stand-alone, parentless SVGPathSegLinetoRel 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.@DOMNameAttribute(name="createSVGPathSegCurvetoCubicAbs") public SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicAbs 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.@DOMNameAttribute(name="createSVGPathSegCurvetoCubicRel") public SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel 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.@DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticAbs") public SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs 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.@DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticRel") public SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel 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.@DOMNameAttribute(name="createSVGPathSegArcAbs") public SVGPathSegArcAbs createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
Returns a stand-alone, parentless SVGPathSegArcAbs 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.@DOMNameAttribute(name="createSVGPathSegArcRel") public SVGPathSegArcRel createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag)
Returns a stand-alone, parentless SVGPathSegArcRel 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.@DOMNameAttribute(name="createSVGPathSegLinetoHorizontalAbs") public SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(float x)
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.
x
- The absolute X coordinate for the end point of this path segment.@DOMNameAttribute(name="createSVGPathSegLinetoHorizontalRel") public SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(float x)
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object.
x
- The relative X coordinate for the end point of this path segment.@DOMNameAttribute(name="createSVGPathSegLinetoVerticalAbs") public SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(float y)
Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object.
y
- The absolute Y coordinate for the end point of this path segment.@DOMNameAttribute(name="createSVGPathSegLinetoVerticalRel") public SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(float y)
Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object.
y
- The relative Y coordinate for the end point of this path segment.@DOMNameAttribute(name="createSVGPathSegCurvetoCubicSmoothAbs") public SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs 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.@DOMNameAttribute(name="createSVGPathSegCurvetoCubicSmoothRel") public SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel 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.@DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticSmoothAbs") public SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs 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.@DOMNameAttribute(name="createSVGPathSegCurvetoQuadraticSmoothRel") public SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel 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.public SVGPathSegList equivalentPath()
equivalentPath
in class SVGGeometryElement