Class SVGSVGElementImpl
- All Implemented Interfaces:
EventTarget
,HTMLElement
,Element
,InnerHTML
,ModelNode
,Node
,NonDocumentTypeChildNode
,ParentNode
,Drawable
,SVGElement
,SVGExternalResourcesRequired
,SVGFitToViewBox
,SVGLangSpace
,SVGLocatable
,SVGStylable
,SVGSVGElement
,SVGTests
,SVGZoomAndPan
SVGSVGElementImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.Node
ATTRIBUTE_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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Fields inherited from interface org.loboevolution.svg.SVGZoomAndPan
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
animationsPaused.boolean
checkEnclosure
(SVGElement element, SVGRect rect) checkEnclosure.boolean
checkIntersection
(SVGElement element, SVGRect rect) checkIntersection.createShape
(AffineTransform transform) createShape.createSVGAngle.createSVGLength.createSVGMatrix.createSVGNumber.createSVGPoint.createSVGRect.createSVGTransform.createSVGTransformFromMatrix.void
deselectAll.void
draw
(Graphics2D graphics) draw.void
forceRedraw.getBBox()
getBBox.int
getClientHeight.getClientWidth.float
getCurrentScale.float
getCurrentTime.getEnclosureList
(SVGRect rect, SVGElement referenceElement) getEnclosureList.getHeight.getIntersectionList
(SVGRect rect, SVGElement referenceElement) getIntersectionList.getOffsetWidth.float
getPixelUnitToMillimeterX.float
getPixelUnitToMillimeterY.getPreserveAspectRatio.float
getScreenPixelToMillimeterX.float
getScreenPixelToMillimeterY.boolean
getUseCurrentView.getViewBox.getViewport.getWidth()
getWidth.getX()
getX.getY()
getY.short
getZoomAndPan.void
pauseAnimations.void
setCurrentScale
(float currentScale) setCurrentScale.void
setCurrentTime
(float seconds) setCurrentTime.void
setUseCurrentView
(boolean useCurrentView) setUseCurrentView.void
setZoomAndPan
(short zoomAndPan) setZoomAndPan.int
suspendRedraw
(int max_wait_milliseconds) suspendRedraw.toString()
void
unpauseAnimations.void
unsuspendRedraw
(int suspend_handle_id) unsuspendRedraw.void
unsuspendRedrawAll.Methods inherited from class org.loboevolution.svg.dom.SVGLocatableImpl
getCTM, getFarthestViewportElement, getNearestViewportElement, getScreenCTM, getTransformToElement
Methods inherited from class org.loboevolution.svg.dom.SVGStylableImpl
child, drawStyle, getClippingPath, getClipRule, getDisplay, getFillPaint, getFont, getFontAscent, getFontDescent, getFontElement, getFontFace, getFontSize, getFontUnitsPerEm, getHorizAdvX, getOpacity, getStopColor, getStopOpacity, getStroke, getStrokeDashArray, getStrokeLineCap, getStrokeLinejoin, getStrokelPaint, getStrokeMiterlimit, getStrokeWidth, getTextAnchor, getVisibility
Methods inherited from class org.loboevolution.svg.dom.SVGElementImpl
getExternalResourcesRequired, getOwnerSVGElement, getRequiredExtensions, getRequiredFeatures, getSystemLanguage, getViewportElement, getXMLlang, getXMLspace, hasExtension, setOwnerSVGElement, setXMLlang, setXMLspace
Methods inherited from class org.loboevolution.svg.dom.SVGElementWrapper
addEventListener, addEventListener, appendChild, appendChildrenToCollectionImpl, click, cloneNode, cloneNode, closest, compareDocumentPosition, contains, dispatchEvent, dispatchEvent, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAccessKey, getAccessKeyLabel, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAutocapitalize, getBaseURI, getBoundingClientRect, getChildElementCount, getChildNodes, getChildren, getClassList, getClassName, getClientLeft, getClientRects, getClientTop, getContentEditable, getCurrentStyle, getDir, getDocumentItem, getDocumentNode, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getFirstElementChild, getFullURL, getId, getInnerHTML, getInnerText, getLang, getLastChild, getLastElementChild, getLocalName, getNamespaceURI, getNextElementSibling, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOuterHTML, getOwnerDocument, getParentElement, getParentModelNode, getParentNode, getPrefix, getPreviousElementSibling, getPreviousSibling, getPreviousTo, getRenderState, getRootNode, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getStyle, getTagName, getTextContent, getTitle, getUserData, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, insertBefore, isDefaultNamespace, isDraggable, isEqualNode, isEqualOrDescendentOf, isHidden, isIsConnected, isSameNode, isSpellcheck, isSupported, isTranslate, lookupNamespaceURI, lookupPrefix, matches, normalize, prepend, prependChild, querySelector, querySelectorAll, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeEventListener, removeEventListener, replaceChild, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAutocapitalize, setClassName, setContentEditable, setDir, setDocumentItem, setDraggable, setHidden, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setInnerText, setLang, setNamespaceURI, setNodeValue, setOuterHTML, setOwnerDocument, setOwnerDocument, setParentImpl, setPointerCapture, setPrefix, setScrollLeft, setScrollTop, setSlot, setSpellcheck, setTextContent, setTitle, setTranslate, setUserData, toggleAttribute, toggleAttribute, visit, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientLeft, getClientRects, getClientTop, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttribute
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTML
Methods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warn
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visit
Methods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
Methods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
Methods inherited from interface org.loboevolution.svg.SVGElement
getId, getOwnerSVGElement, getViewportElement, setId, setOwnerSVGElement
Methods inherited from interface org.loboevolution.svg.SVGExternalResourcesRequired
getExternalResourcesRequired
Methods inherited from interface org.loboevolution.svg.SVGLangSpace
getXMLlang, getXMLspace, setXMLlang, setXMLspace
Methods inherited from interface org.loboevolution.svg.SVGLocatable
getCTM, getFarthestViewportElement, getNearestViewportElement, getScreenCTM, getTransformToElement
Methods inherited from interface org.loboevolution.svg.SVGStylable
getStyle
Methods inherited from interface org.loboevolution.svg.SVGSVGElement
getCurrentTranslate, getCurrentView
Methods inherited from interface org.loboevolution.svg.SVGTests
getRequiredExtensions, getRequiredFeatures, getSystemLanguage, hasExtension
-
Constructor Details
-
SVGSVGElementImpl
Constructor for SVGSVGElementImpl.
- Parameters:
element
- aHTMLElement
object.
-
-
Method Details
-
getBBox
Description copied from interface:SVGLocatable
getBBox.
- Specified by:
getBBox
in interfaceSVGLocatable
- Returns:
- a
SVGRect
object.
-
getViewBox
getViewBox.
- Specified by:
getViewBox
in interfaceSVGFitToViewBox
- Returns:
- a
SVGAnimatedRect
object.
-
getPreserveAspectRatio
getPreserveAspectRatio.
- Specified by:
getPreserveAspectRatio
in interfaceSVGFitToViewBox
- Returns:
- a
SVGAnimatedPreserveAspectRatio
object.
-
getZoomAndPan
public short getZoomAndPan()getZoomAndPan.
- Specified by:
getZoomAndPan
in interfaceSVGZoomAndPan
- Returns:
- a short.
-
setZoomAndPan
public void setZoomAndPan(short zoomAndPan) setZoomAndPan.
- Specified by:
setZoomAndPan
in interfaceSVGZoomAndPan
- Parameters:
zoomAndPan
- a short.
-
getX
getX.
- Specified by:
getX
in interfaceSVGSVGElement
- Returns:
- a
SVGAnimatedLength
object.
-
getY
getY.
- Specified by:
getY
in interfaceSVGSVGElement
- Returns:
- a
SVGAnimatedLength
object.
-
getWidth
getWidth.
- Specified by:
getWidth
in interfaceSVGSVGElement
- Returns:
- a
SVGAnimatedLength
object.
-
getHeight
getHeight.
- Specified by:
getHeight
in interfaceSVGSVGElement
- Returns:
- a
SVGAnimatedLength
object.
-
getViewport
getViewport.
- Specified by:
getViewport
in interfaceSVGSVGElement
- Returns:
- a
SVGRect
object.
-
getPixelUnitToMillimeterX
public float getPixelUnitToMillimeterX()getPixelUnitToMillimeterX.
- Specified by:
getPixelUnitToMillimeterX
in interfaceSVGSVGElement
- Returns:
- a float.
-
getPixelUnitToMillimeterY
public float getPixelUnitToMillimeterY()getPixelUnitToMillimeterY.
- Specified by:
getPixelUnitToMillimeterY
in interfaceSVGSVGElement
- Returns:
- a float.
-
getScreenPixelToMillimeterX
public float getScreenPixelToMillimeterX()getScreenPixelToMillimeterX.
- Specified by:
getScreenPixelToMillimeterX
in interfaceSVGSVGElement
- Returns:
- a float.
-
getScreenPixelToMillimeterY
public float getScreenPixelToMillimeterY()getScreenPixelToMillimeterY.
- Specified by:
getScreenPixelToMillimeterY
in interfaceSVGSVGElement
- Returns:
- a float.
-
getUseCurrentView
public boolean getUseCurrentView()getUseCurrentView.
- Specified by:
getUseCurrentView
in interfaceSVGSVGElement
- Returns:
- a boolean.
-
setUseCurrentView
public void setUseCurrentView(boolean useCurrentView) setUseCurrentView.
- Specified by:
setUseCurrentView
in interfaceSVGSVGElement
- Parameters:
useCurrentView
- a boolean.
-
getCurrentScale
public float getCurrentScale()getCurrentScale.
- Specified by:
getCurrentScale
in interfaceSVGSVGElement
- Returns:
- a float.
-
setCurrentScale
public void setCurrentScale(float currentScale) setCurrentScale.
- Specified by:
setCurrentScale
in interfaceSVGSVGElement
- Parameters:
currentScale
- a float.
-
suspendRedraw
public int suspendRedraw(int max_wait_milliseconds) suspendRedraw.
- Specified by:
suspendRedraw
in interfaceSVGSVGElement
- Parameters:
max_wait_milliseconds
- aInteger
object.- Returns:
- a
Integer
object.
-
unsuspendRedraw
public void unsuspendRedraw(int suspend_handle_id) unsuspendRedraw.
- Specified by:
unsuspendRedraw
in interfaceSVGSVGElement
- Parameters:
suspend_handle_id
- aInteger
object.
-
unsuspendRedrawAll
public void unsuspendRedrawAll()unsuspendRedrawAll.
- Specified by:
unsuspendRedrawAll
in interfaceSVGSVGElement
-
forceRedraw
public void forceRedraw()forceRedraw.
- Specified by:
forceRedraw
in interfaceSVGSVGElement
-
pauseAnimations
public void pauseAnimations()pauseAnimations.
- Specified by:
pauseAnimations
in interfaceSVGSVGElement
-
unpauseAnimations
public void unpauseAnimations()unpauseAnimations.
- Specified by:
unpauseAnimations
in interfaceSVGSVGElement
-
animationsPaused
public boolean animationsPaused()animationsPaused.
- Specified by:
animationsPaused
in interfaceSVGSVGElement
- Returns:
- a boolean.
-
getCurrentTime
public float getCurrentTime()getCurrentTime.
- Specified by:
getCurrentTime
in interfaceSVGSVGElement
- Returns:
- a float.
-
setCurrentTime
public void setCurrentTime(float seconds) setCurrentTime.
- Specified by:
setCurrentTime
in interfaceSVGSVGElement
- Parameters:
seconds
- a float.
-
getIntersectionList
getIntersectionList.
- Specified by:
getIntersectionList
in interfaceSVGSVGElement
- Parameters:
rect
- aSVGRect
object.referenceElement
- aSVGElement
object.- Returns:
- a
NodeList
object.
-
getEnclosureList
getEnclosureList.
- Specified by:
getEnclosureList
in interfaceSVGSVGElement
- Parameters:
rect
- aSVGRect
object.referenceElement
- aSVGElement
object.- Returns:
- a
NodeList
object.
-
checkIntersection
checkIntersection.
- Specified by:
checkIntersection
in interfaceSVGSVGElement
- Parameters:
element
- aSVGElement
object.rect
- aSVGRect
object.- Returns:
- a boolean.
-
checkEnclosure
checkEnclosure.
- Specified by:
checkEnclosure
in interfaceSVGSVGElement
- Parameters:
element
- aSVGElement
object.rect
- aSVGRect
object.- Returns:
- a boolean.
-
deselectAll
public void deselectAll()deselectAll.
- Specified by:
deselectAll
in interfaceSVGSVGElement
-
createSVGLength
createSVGLength.
- Specified by:
createSVGLength
in interfaceSVGSVGElement
- Returns:
- a
SVGLength
object.
-
createSVGAngle
createSVGAngle.
- Specified by:
createSVGAngle
in interfaceSVGSVGElement
- Returns:
- a
SVGAngle
object.
-
createSVGPoint
createSVGPoint.
- Specified by:
createSVGPoint
in interfaceSVGSVGElement
- Returns:
- a
SVGPoint
object.
-
createSVGMatrix
createSVGMatrix.
- Specified by:
createSVGMatrix
in interfaceSVGSVGElement
- Returns:
- a
SVGMatrix
object.
-
createSVGNumber
createSVGNumber.
- Specified by:
createSVGNumber
in interfaceSVGSVGElement
- Returns:
- a
SVGNumber
object.
-
createSVGRect
createSVGRect.
- Specified by:
createSVGRect
in interfaceSVGSVGElement
- Returns:
- a
SVGRect
object.
-
createSVGTransform
createSVGTransform.
- Specified by:
createSVGTransform
in interfaceSVGSVGElement
- Returns:
- a
SVGTransform
object.
-
createSVGTransformFromMatrix
createSVGTransformFromMatrix.
- Specified by:
createSVGTransformFromMatrix
in interfaceSVGSVGElement
- Parameters:
matrix
- aSVGMatrix
object.- Returns:
- a
SVGTransform
object.
-
draw
draw.
- Specified by:
draw
in interfaceDrawable
- Parameters:
graphics
- aGraphics2D
object.
-
createShape
createShape.
- Specified by:
createShape
in interfaceDrawable
- Parameters:
transform
- aAffineTransform
object.- Returns:
- a
Shape
object.
-
getClientHeight
public int getClientHeight()Description copied from interface:Element
getClientHeight.
- Specified by:
getClientHeight
in interfaceElement
- Overrides:
getClientHeight
in classSVGElementWrapper
- Returns:
- a
Integer
object.
-
getClientWidth
Description copied from interface:Element
getClientWidth.
- Specified by:
getClientWidth
in interfaceElement
- Overrides:
getClientWidth
in classSVGElementWrapper
- Returns:
- a
Integer
object.
-
getOffsetWidth
Description copied from interface:HTMLElement
getOffsetWidth.
- Specified by:
getOffsetWidth
in interfaceHTMLElement
- Overrides:
getOffsetWidth
in classSVGElementWrapper
- Returns:
- a
Integer
object.
-
toString
-