public class VariableInspector extends JDialog
| Modifier and Type | Class and Description |
|---|---|
protected class |
VariableInspector.ExpansionHandler
Handler for expanding and collapsing tree nodes.
|
class |
VariableInspector.LocalHidesThisFilter
A
VariableInspector.VariableNodeFilter that either rejects this-fields if hidden by
a local, or prefixes its name with "this." |
class |
VariableInspector.P5BuiltinsFilter
A
VariableInspector.VariableNodeFilter that accepts Processing built-in variable
names. |
class |
VariableInspector.ThisFilter
A
VariableInspector.VariableNodeFilter that rejects implicit this references. |
protected class |
VariableInspector.ValueCellEditor
Editor for the value column.
|
protected class |
VariableInspector.ValueCellRenderer
Renderer for the value column.
|
static interface |
VariableInspector.VariableNodeFilter |
protected class |
VariableInspector.VariableRowModel
Model for a Outline Row (excluding the tree column).
|
JDialog.AccessibleJDialogDialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected DefaultMutableTreeNode |
builtins |
protected List<DefaultMutableTreeNode> |
callStack |
protected List<VariableNode> |
declaredThisFields |
protected JavaEditor |
editor |
protected List<TreePath> |
expandedNodes |
protected List<VariableNode> |
locals |
protected org.netbeans.swing.outline.OutlineModel |
model |
protected DefaultMutableTreeNode |
rootNode |
protected List<VariableNode> |
thisFields |
protected org.netbeans.swing.outline.Outline |
tree |
protected DefaultTreeModel |
treeModel |
accessibleContext, rootPane, rootPaneCheckingEnabledDEFAULT_MODALITY_TYPEBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
VariableInspector(JavaEditor editor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAllNodes(DefaultMutableTreeNode root,
List<? extends MutableTreeNode> nodes) |
protected List<VariableNode> |
filterNodes(List<VariableNode> nodes,
VariableInspector.VariableNodeFilter filter)
Filter a list of nodes using a
VariableInspector.VariableNodeFilter. |
void |
lock()
Lock the inspector window.
|
void |
rebuild()
Rebuild the outline tree from current data.
|
void |
reset()
Reset the inspector windows data.
|
protected TreePath |
synthesizePath(TreePath path)
Re-build a
TreePath from a previous path using equals-checks
starting at the root node. |
void |
unlock()
Unlock the inspector window.
|
void |
updateCallStack(List<DefaultMutableTreeNode> nodes,
String title)
Update call stack data.
|
void |
updateDeclaredThisFields(List<VariableNode> nodes,
String title)
Update declared (non-inherited) this-fields data.
|
void |
updateLocals(List<VariableNode> nodes,
String title)
Update locals data.
|
void |
updateThisFields(List<VariableNode> nodes,
String title)
Update this-fields data.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected DefaultMutableTreeNode rootNode
protected DefaultMutableTreeNode builtins
protected DefaultTreeModel treeModel
protected org.netbeans.swing.outline.Outline tree
protected org.netbeans.swing.outline.OutlineModel model
protected List<DefaultMutableTreeNode> callStack
protected List<VariableNode> locals
protected List<VariableNode> thisFields
protected List<VariableNode> declaredThisFields
protected JavaEditor editor
public VariableInspector(JavaEditor editor)
public void unlock()
public void lock()
public void reset()
public void updateCallStack(List<DefaultMutableTreeNode> nodes, String title)
nodes - a list of nodes that represent the call stack.title - the title to be used when labeling or otherwise grouping
call stack data.public void updateLocals(List<VariableNode> nodes, String title)
nodes - a list of VariableNode to be shown as local
variables in the inspector.title - the title to be used when labeling or otherwise grouping
locals data.public void updateThisFields(List<VariableNode> nodes, String title)
nodes - a list of VariableNodes to be shown as this-fields
in the inspector.title - the title to be used when labeling or otherwise grouping
this-fields data.public void updateDeclaredThisFields(List<VariableNode> nodes, String title)
nodes - a list of VariableNodes to be shown as declared
this-fields in the inspector.title - the title to be used when labeling or otherwise grouping
declared this-fields data.public void rebuild()
updateCallStack(java.util.List<javax.swing.tree.DefaultMutableTreeNode>, java.lang.String), updateLocals(java.util.List<processing.mode.java.debug.VariableNode>, java.lang.String), updateThisFields(java.util.List<processing.mode.java.debug.VariableNode>, java.lang.String)
and updateDeclaredThisFields(java.util.List<processing.mode.java.debug.VariableNode>, java.lang.String)protected TreePath synthesizePath(TreePath path)
TreePath from a previous path using equals-checks
starting at the root node. This is used to use paths from previous trees
for use on the current tree.path - the path to synthesize.protected List<VariableNode> filterNodes(List<VariableNode> nodes, VariableInspector.VariableNodeFilter filter)
VariableInspector.VariableNodeFilter.nodes - the list of nodes to filter.filter - the filter to be used.protected void addAllNodes(DefaultMutableTreeNode root, List<? extends MutableTreeNode> nodes)
Copyright © 2001–2017 Processing Foundation. All rights reserved.