Interface DOMViewerController
- All Known Implementing Classes:
JSVGViewerFrame.Canvas.JSVGViewerDOMViewerController
public interface DOMViewerController
Provides the information needed for the DOMViewer to show and edit the
document.
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit()Checks whether the DOMViewer should be allowed to edit the document.Creates the ElementSelectionManager to manage the selection overlay on the canvas.Gets the document for the DOMViewer to show.voidPerforms the document update.voidremoveSelectionOverlay(Overlay selectionOverlay) Removes the given selection overlay from the canvas.voidselectNode(Node node) Selects the given node in the DOMViewer's document tree.
-
Method Details
-
performUpdate
Performs the document update.- Parameters:
r- The runnable that contains the update
-
createSelectionManager
ElementOverlayManager createSelectionManager()Creates the ElementSelectionManager to manage the selection overlay on the canvas.- Returns:
- ElementSelectionManager
-
removeSelectionOverlay
Removes the given selection overlay from the canvas.- Parameters:
selectionOverlay- The given selection overlay
-
getDocument
-
selectNode
Selects the given node in the DOMViewer's document tree.- Parameters:
node- The node to select
-
canEdit
boolean canEdit()Checks whether the DOMViewer should be allowed to edit the document.- Returns:
- True for non static documents, when UpdateManager is available
-