|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.apache.batik.apps.svgbrowser.DOMViewer
public class DOMViewer
The components of this class are used to view a DOM tree.
Nested Class Summary | |
---|---|
protected class |
DOMViewer.CapturingClickButtonAction
The action associated with the 'Capturing-click' toggle button of the viewer panel. |
protected class |
DOMViewer.CloseButtonAction
The action associated with the 'Close' button of the viewer panel |
protected static class |
DOMViewer.ContentNodeInfo
To store the node information for an xbl:content node's selected content. |
protected class |
DOMViewer.DOMViewerDOMDocumentTreeController
DOMDocumentTreeController implementation. |
protected class |
DOMViewer.DOMViewerElementOverlayController
ElementOverlayController implementation. |
protected class |
DOMViewer.DOMViewerNodePickerController
NodePickerController implementation. |
protected static class |
DOMViewer.NodeInfo
To store the nodes informations |
protected class |
DOMViewer.OverlayButtonAction
The action associated with the 'overlay' toggle button of the viewer panel. |
class |
DOMViewer.Panel
The panel that contains the viewer. |
protected class |
DOMViewer.RedoButtonAction
The action associated with the 'Redo' dropdown button of the viewer panel |
protected static class |
DOMViewer.ShadowNodeInfo
To store the node information for a shadow tree. |
protected class |
DOMViewer.UndoButtonAction
The action associated with the 'Undo' dropdown button of the viewer panel |
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected static ResourceBundle |
bundle
The resource bundle |
protected ButtonFactory |
buttonFactory
The button factory. |
protected boolean |
canEdit
Whether the DOMViewer can be used for editing the document. |
protected DOMViewerController |
domViewerController
The DOMViewer controller. |
protected ElementOverlayManager |
elementOverlayManager
Manages the element selection on the canvas. |
protected HistoryBrowserInterface |
historyBrowserInterface
The history browsing manager. |
protected boolean |
isCapturingClickEnabled
Whether "capturing click" tool is enabled. |
protected boolean |
isElementOverlayEnabled
Whether painting the overlay on the canvas is enabled. |
protected Map |
listeners
The map that contains the listeners |
protected JToggleButton |
overlayButton
The button for enabling and disabling the overlay. |
protected DOMViewer.Panel |
panel
The panel. |
protected static String |
RESOURCE
The resource file name |
protected static ResourceManager |
resources
The resource manager |
protected boolean |
showWhitespace
Whether to show text nodes that contain only whitespace in the tree. |
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DOMViewer(DOMViewerController controller)
Creates a new DOMViewer panel. |
Method Summary | |
---|---|
boolean |
canEdit()
Whether the document can be edited using the DOMViewer. |
Action |
getAction(String key)
Returns the action associated with the given string or null on error |
void |
resetHistory()
Resets the history. |
void |
selectNode(Node node)
Selects and scrolls to the given node in the document tree. |
void |
setDocument(Document doc)
Sets the document to display. |
void |
setDocument(Document doc,
ViewCSS view)
Sets the document to display and its ViewCSS. |
void |
setEditable(boolean canEdit)
Enables / disables the DOMViewer to be used to edit the documents. |
void |
setShowWhitespace(boolean state)
Sets whether to show text nodes that contain only whitespace in the tree. |
protected void |
toggleOverlay()
Toggles the element highlighting overlay. |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
protected static final String RESOURCE
protected static ResourceBundle bundle
protected static ResourceManager resources
protected Map listeners
protected ButtonFactory buttonFactory
protected DOMViewer.Panel panel
protected boolean showWhitespace
protected boolean isCapturingClickEnabled
protected DOMViewerController domViewerController
protected ElementOverlayManager elementOverlayManager
protected boolean isElementOverlayEnabled
protected HistoryBrowserInterface historyBrowserInterface
protected boolean canEdit
protected JToggleButton overlayButton
Constructor Detail |
---|
public DOMViewer(DOMViewerController controller)
Method Detail |
---|
public void setShowWhitespace(boolean state)
public void setDocument(Document doc)
public void setDocument(Document doc, ViewCSS view)
public boolean canEdit()
public void setEditable(boolean canEdit)
canEdit
- True - The DOMViewer can be used to edit the documentspublic void selectNode(Node node)
node
- The node to be selectedpublic void resetHistory()
public Action getAction(String key) throws MissingListenerException
getAction
in interface ActionMap
key
- the key mapped with the action to get
MissingListenerException
- if the action is not foundprotected void toggleOverlay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |