Interface SVGSVGContext

  • All Superinterfaces:
    SVGContext
    All Known Implementing Classes:
    SVGSVGElementBridge

    public interface SVGSVGContext
    extends SVGContext
    Context class for svg:svg elements. Eventually this interface will likely have a number of other methods but for now it will have methods to do intersection and enclosure checking.
    Version:
    $Id: SVGSVGContext.java 1808001 2017-09-11 09:51:29Z ssteiner $
    • Method Detail

      • getIntersectionList

        java.util.List getIntersectionList​(org.w3c.dom.svg.SVGRect svgRect,
                                           org.w3c.dom.Element end)
        Returns a List of all the DOM elements that intersect svgRect that are below end in the rendering order.
      • getEnclosureList

        java.util.List getEnclosureList​(org.w3c.dom.svg.SVGRect rect,
                                        org.w3c.dom.Element end)
        Returns a List of all the DOM elements that are encosed in svgRect that are below end in the rendering order.
      • checkIntersection

        boolean checkIntersection​(org.w3c.dom.Element element,
                                  org.w3c.dom.svg.SVGRect rect)
        Returns true if the given DOM element intersects svgRect.
      • checkEnclosure

        boolean checkEnclosure​(org.w3c.dom.Element element,
                               org.w3c.dom.svg.SVGRect rect)
        Returns true if the given DOM element is enclosed in the svgRect.
      • deselectAll

        void deselectAll()
        Used to inform the user agent that the text selection should be cleared.
      • suspendRedraw

        int suspendRedraw​(int max_wait_milliseconds)
        Suspends redrawing of the canvas for the given number of milliseconds.
      • unsuspendRedraw

        boolean unsuspendRedraw​(int suspend_handle_id)
        Unsuspends redrawing of the canvas.
      • unsuspendRedrawAll

        void unsuspendRedrawAll()
        Unsuspends redrawing of the canvas.
      • forceRedraw

        void forceRedraw()
        Forces an immediate redraw of the canvas.
      • pauseAnimations

        void pauseAnimations()
        Pauses animations in the document.
      • unpauseAnimations

        void unpauseAnimations()
        Unpauses animations in the document.
      • animationsPaused

        boolean animationsPaused()
        Returns whether animations are currently paused.
      • getCurrentTime

        float getCurrentTime()
        Returns the current document time.
      • setCurrentTime

        void setCurrentTime​(float t)
        Sets the current document time.