Package org.apache.batik.apps.svgbrowser
Class JSVGViewerFrame.Canvas.JSVGViewerDOMViewerController
- java.lang.Object
-
- org.apache.batik.apps.svgbrowser.JSVGViewerFrame.Canvas.JSVGViewerDOMViewerController
-
- All Implemented Interfaces:
DOMViewerController
- Enclosing class:
- JSVGViewerFrame.Canvas
protected class JSVGViewerFrame.Canvas.JSVGViewerDOMViewerController extends java.lang.Object implements DOMViewerController
JSVGViewerFrame DOMViewerController implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
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.
-
-
-
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 interfaceDOMViewerController
- Returns:
- True for non static documents, when UpdateManager is available
-
createSelectionManager
public ElementOverlayManager createSelectionManager()
Description copied from interface:DOMViewerController
Creates the ElementSelectionManager to manage the selection overlay on the canvas.- Specified by:
createSelectionManager
in interfaceDOMViewerController
- Returns:
- ElementSelectionManager
-
getDocument
public org.w3c.dom.Document getDocument()
Description copied from interface:DOMViewerController
Gets the document for the DOMViewer to show.- Specified by:
getDocument
in interfaceDOMViewerController
- Returns:
- the document
-
performUpdate
public void performUpdate(java.lang.Runnable r)
Description copied from interface:DOMViewerController
Performs the document update.- Specified by:
performUpdate
in interfaceDOMViewerController
- Parameters:
r
- The runnable that contains the update
-
removeSelectionOverlay
public void removeSelectionOverlay(Overlay selectionOverlay)
Description copied from interface:DOMViewerController
Removes the given selection overlay from the canvas.- Specified by:
removeSelectionOverlay
in interfaceDOMViewerController
- Parameters:
selectionOverlay
- The given selection overlay
-
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 interfaceDOMViewerController
- Parameters:
node
- The node to select
-
-