Class SVGRoot

  • All Implemented Interfaces:
    java.io.Serializable

    public class SVGRoot
    extends Group
    The root element of an SVG tree.
    See Also:
    Serialized Form
    • Constructor Detail

      • SVGRoot

        public SVGRoot()
        Creates a new instance of SVGRoot
    • Method Detail

      • getTagName

        public java.lang.String getTagName()
        Overrides:
        getTagName in class Group
      • build

        public void build()
                   throws SVGException
        Description copied from class: SVGElement
        Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.
        Overrides:
        build in class RenderableElement
        Throws:
        SVGException
      • contains

        private boolean contains​(java.lang.String text,
                                 java.lang.String find)
      • prepareViewport

        protected void prepareViewport()
      • pick

        public void pick​(java.awt.geom.Rectangle2D pickArea,
                         java.awt.geom.AffineTransform ltw,
                         boolean boundingBox,
                         java.util.List<java.util.List<SVGElement>> retVec)
                  throws SVGException
        Overrides:
        pick in class Group
        Throws:
        SVGException
      • getShape

        public java.awt.Shape getShape()
        Description copied from class: Group
        Retrieves the cached bounding box of this group
        Overrides:
        getShape in class Group
      • getDeviceWidth

        public float getDeviceWidth()
      • getDeviceHeight

        public float getDeviceHeight()
      • getDeviceRect

        public java.awt.geom.Rectangle2D getDeviceRect​(java.awt.geom.Rectangle2D rect)
      • updateTime

        public boolean updateTime​(double curTime)
                           throws SVGException
        Updates all attributes in this diagram associated with a time event. Ie, all attributes with track information.
        Overrides:
        updateTime in class Group
        Returns:
        - true if this node has changed state as a result of the time update
        Throws:
        SVGException
      • getStyleSheet

        public StyleSheet getStyleSheet()
        Returns:
        the styleSheet
      • setStyleSheet

        public void setStyleSheet​(StyleSheet styleSheet)
        Parameters:
        styleSheet - the styleSheet to set