Class SvgElement

Direct Known Subclasses:
SvgGradient, SvgGradientStop, SvgGraphic, SvgStyle

public abstract class SvgElement
extends java.lang.Object
An svg document is an xml document. As such, all contained xml elements are also svg elements. SvgElement is the base abstract class for all svg elements in an SvgDocument.
  • Constructor Summary

    Constructor Description
    SvgElement​(SvgContainer container, java.lang.String id)  
  • Method Summary

    Modifier and Type Method Description
    (package private) static java.util.List<SvgElement> getAncestry​(SvgElement element)  
    (package private) SvgContainer getContainer()  
    (package private) SvgElement getElement​(java.lang.String id)  
    (package private) SvgFragment getFragment()  
    java.lang.String getId()
    Return the id of this SvgElement, if it exists.
    (package private) float[] getViewport()  
    (package private) void setContainer​(SvgContainer container)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait