Class JSVGViewerFrame.Canvas.JSVGViewerDOMViewerController

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canEdit()
      Checks whether the DOMViewer should be allowed to edit the document.
      ElementOverlayManager createSelectionManager()
      Creates the ElementSelectionManager to manage the selection overlay on the canvas.
      org.w3c.dom.Document getDocument()
      Gets the document for the DOMViewer to show.
      void performUpdate​(java.lang.Runnable r)
      Performs the document update.
      void removeSelectionOverlay​(Overlay selectionOverlay)
      Removes the given selection overlay from the canvas.
      void selectNode​(org.w3c.dom.Node node)
      Selects the given node in the DOMViewer's document tree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSVGViewerDOMViewerController

        protected JSVGViewerDOMViewerController()
    • Method Detail

      • canEdit

        public boolean canEdit()
        Description copied from interface: DOMViewerController
        Checks whether the DOMViewer should be allowed to edit the document.
        Specified by:
        canEdit in interface DOMViewerController
        Returns:
        True for non static documents, when UpdateManager is available
      • performUpdate

        public void performUpdate​(java.lang.Runnable r)
        Description copied from interface: DOMViewerController
        Performs the document update.
        Specified by:
        performUpdate in interface DOMViewerController
        Parameters:
        r - The runnable that contains the update
      • selectNode

        public void selectNode​(org.w3c.dom.Node node)
        Description copied from interface: DOMViewerController
        Selects the given node in the DOMViewer's document tree.
        Specified by:
        selectNode in interface DOMViewerController
        Parameters:
        node - The node to select