protected class JSVGViewerFrame.Canvas.JSVGViewerDOMViewerController extends java.lang.Object implements DOMViewerController
Modifier | Constructor and Description |
---|---|
protected |
JSVGViewerDOMViewerController() |
Modifier and Type | Method and 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.
|
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(Node node)
Selects the given node in the DOMViewer's document tree.
|
public boolean canEdit()
DOMViewerController
canEdit
in interface DOMViewerController
public ElementOverlayManager createSelectionManager()
DOMViewerController
createSelectionManager
in interface DOMViewerController
public Document getDocument()
DOMViewerController
getDocument
in interface DOMViewerController
public void performUpdate(java.lang.Runnable r)
DOMViewerController
performUpdate
in interface DOMViewerController
r
- The runnable that contains the updatepublic void removeSelectionOverlay(Overlay selectionOverlay)
DOMViewerController
removeSelectionOverlay
in interface DOMViewerController
selectionOverlay
- The given selection overlaypublic void selectNode(Node node)
DOMViewerController
selectNode
in interface DOMViewerController
node
- The node to selectCopyright © 2022 Apache Software Foundation. All Rights Reserved.