org.apache.batik.apps.svgbrowser

Interface DOMViewerController

public interface DOMViewerController

Provides the information needed for the DOMViewer to show and edit the document.
Method Summary
booleancanEdit()
Checks whether the DOMViewer should be allowed to edit the document.
ElementOverlayManagercreateSelectionManager()
Creates the ElementSelectionManager to manage the selection overlay on the canvas.
DocumentgetDocument()
Gets the document for the DOMViewer to show.
voidperformUpdate(Runnable r)
Performs 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.

Method Detail

canEdit

public boolean canEdit()
Checks whether the DOMViewer should be allowed to edit the document.

Returns: True for non static documents, when UpdateManager is available

createSelectionManager

public ElementOverlayManager createSelectionManager()
Creates the ElementSelectionManager to manage the selection overlay on the canvas.

Returns: ElementSelectionManager

getDocument

public Document getDocument()
Gets the document for the DOMViewer to show.

Returns: the document

performUpdate

public void performUpdate(Runnable r)
Performs the document update.

Parameters: r The runnable that contains the update

removeSelectionOverlay

public void removeSelectionOverlay(Overlay selectionOverlay)
Removes the given selection overlay from the canvas.

Parameters: selectionOverlay The given selection overlay

selectNode

public void selectNode(Node node)
Selects the given node in the DOMViewer's document tree.

Parameters: node The node to select

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.