Package org.eclipse.nebula.cwt.svg
Class SvgElement
java.lang.Object
org.eclipse.nebula.cwt.svg.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
Constructors 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)
-
Constructor Details
-
SvgElement
SvgElement(SvgContainer container, java.lang.String id)
-
-
Method Details
-
getAncestry
-
getContainer
-
getElement
-
getFragment
SvgFragment getFragment() -
getId
public final java.lang.String getId()Return the id of this SvgElement, if it exists.- Returns:
- the id of the element if it exists, null otherwise.
-
getViewport
float[] getViewport() -
setContainer
-