@DOMObjectAttribute @DOMNameAttribute(name="SVGGeometryElement") public class SVGGeometryElement extends SVGGraphicsElement
Interface SVGGeometryElement represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked. This includes paths and the basic shapes.
SVGGraphicsElementNode.FlagsATTRIBUTE_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, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODEEventMapPropertyChanged, PropertyChangedDelegate| Constructor and Description |
|---|
SVGGeometryElement(com.aspose.html.dom.DOMName name,
Document doc)
Initializes a new instance of the
SVGGeometryElement class. |
| Modifier and Type | Method and Description |
|---|---|
SVGPathSegList |
equivalentPath() |
SVGAnimatedNumber |
getPathLength()
Corresponds to attribute pathLength on the given element.
|
SVGPoint |
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.
|
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.
|
boolean |
isPointInFill(SVGPoint point)
Determine whether a given point is within the fill shape of an element.
|
boolean |
isPointInStroke(SVGPoint point)
Determine whether a given point is within the stroke shape of an element.
|
getBBox, getCTM, getFarthestViewportElement, getNearestViewportElement, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSystemLanguage, getTransformaddSVGAttributeBinding, blur, focus, getClassName_SVGElement_New, getId_SVGElement_New, getOwnerSVGElement, getStyle, getSVGAttributeBindings, getSVGContext, getTabIndex, getViewportElement, isReadOnly, isRendered, setId_SVGElement_New, setTabIndexattachShadow, dispose, 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, setTextContentadoptNode, appendChild, cloneNode, deepClone, finalize, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRegisteredObservers, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setNodeValue, setParentNode, setPrefix, toStringaddEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListenerfireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBindingpublic SVGGeometryElement(com.aspose.html.dom.DOMName name,
Document doc)
Initializes a new instance of the SVGGeometryElement class.
name - The element name.doc - The document.@DOMNameAttribute(name="pathLength") public SVGAnimatedNumber getPathLength()
Corresponds to attribute pathLength on the given element.
Value: The attribute pathLength on the given element.@DOMNameAttribute(name="getTotalLength") public 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.
@DOMNameAttribute(name="getPointAtLength") public SVGPoint 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.
distance - The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.@DOMNameAttribute(name="isPointInFill") public boolean isPointInFill(SVGPoint point)
Determine whether a given point is within the fill shape of an element.
point - Tested point.True if point is within the fill shape, false otherwise.@DOMNameAttribute(name="isPointInStroke") public boolean isPointInStroke(SVGPoint point)
Determine whether a given point is within the stroke shape of an element.
point - Tested point.True if point is within the stroke shape, false otherwise.public SVGPathSegList equivalentPath()