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 Object
implements DOMViewerController
JSVGViewerFrame DOMViewerController implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canEdit()
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.void
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.
-
Constructor Details
-
JSVGViewerDOMViewerController
protected JSVGViewerDOMViewerController()
-
-
Method Details
-
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
Description copied from interface:DOMViewerController
Creates the ElementSelectionManager to manage the selection overlay on the canvas.- Specified by:
createSelectionManager
in interfaceDOMViewerController
- Returns:
- ElementSelectionManager
-
getDocument
Description copied from interface:DOMViewerController
Gets the document for the DOMViewer to show.- Specified by:
getDocument
in interfaceDOMViewerController
- Returns:
- the document
-
performUpdate
Description copied from interface:DOMViewerController
Performs the document update.- Specified by:
performUpdate
in interfaceDOMViewerController
- Parameters:
r
- The runnable that contains the update
-
removeSelectionOverlay
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
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
-