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 protectedJSVGViewerDOMViewerController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEdit()Checks whether the DOMViewer should be allowed to edit the document.ElementOverlayManagercreateSelectionManager()Creates the ElementSelectionManager to manage the selection overlay on the canvas.org.w3c.dom.DocumentgetDocument()Gets the document for the DOMViewer to show.voidperformUpdate(java.lang.Runnable r)Performs the document update.voidremoveSelectionOverlay(Overlay selectionOverlay)Removes the given selection overlay from the canvas.voidselectNode(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: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
public ElementOverlayManager createSelectionManager()
Description copied from interface:DOMViewerControllerCreates the ElementSelectionManager to manage the selection overlay on the canvas.- Specified by:
createSelectionManagerin interfaceDOMViewerController- Returns:
- ElementSelectionManager
-
getDocument
public org.w3c.dom.Document getDocument()
Description copied from interface:DOMViewerControllerGets the document for the DOMViewer to show.- Specified by:
getDocumentin interfaceDOMViewerController- Returns:
- the document
-
performUpdate
public void performUpdate(java.lang.Runnable r)
Description copied from interface:DOMViewerControllerPerforms the document update.- Specified by:
performUpdatein interfaceDOMViewerController- Parameters:
r- The runnable that contains the update
-
removeSelectionOverlay
public void removeSelectionOverlay(Overlay selectionOverlay)
Description copied from interface:DOMViewerControllerRemoves the given selection overlay from the canvas.- Specified by:
removeSelectionOverlayin interfaceDOMViewerController- Parameters:
selectionOverlay- The given selection overlay
-
selectNode
public void selectNode(org.w3c.dom.Node node)
Description copied from interface:DOMViewerControllerSelects the given node in the DOMViewer's document tree.- Specified by:
selectNodein interfaceDOMViewerController- Parameters:
node- The node to select
-
-