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 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.
-
Constructor Details
-
JSVGViewerDOMViewerController
protected JSVGViewerDOMViewerController()
-
-
Method Details
-
canEdit
public boolean canEdit()Description copied from interface:DOMViewerControllerChecks whether the DOMViewer should be allowed to edit the document.- Specified by:
canEditin interfaceDOMViewerController- Returns:
- True for non static documents, when UpdateManager is available
-
createSelectionManager
Description copied from interface:DOMViewerControllerCreates the ElementSelectionManager to manage the selection overlay on the canvas.- Specified by:
createSelectionManagerin interfaceDOMViewerController- Returns:
- ElementSelectionManager
-
getDocument
Description copied from interface:DOMViewerControllerGets the document for the DOMViewer to show.- Specified by:
getDocumentin interfaceDOMViewerController- Returns:
- the document
-
performUpdate
Description copied from interface:DOMViewerControllerPerforms the document update.- Specified by:
performUpdatein interfaceDOMViewerController- Parameters:
r- The runnable that contains the update
-
removeSelectionOverlay
Description copied from interface:DOMViewerControllerRemoves the given selection overlay from the canvas.- Specified by:
removeSelectionOverlayin interfaceDOMViewerController- Parameters:
selectionOverlay- The given selection overlay
-
selectNode
Description copied from interface:DOMViewerControllerSelects the given node in the DOMViewer's document tree.- Specified by:
selectNodein interfaceDOMViewerController- Parameters:
node- The node to select
-