|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jigcell.compare.ui.PanelTab
jigcell.compare.views.TransformDebugger
public class TransformDebugger
Supports debugging transform functions.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary | |
|---|---|
protected class |
TransformDebugger.AnnotationModel
Table model for a Transform Debugger annotation table. |
protected class |
TransformDebugger.DebuggerThread
Thread for executing play events. |
protected class |
TransformDebugger.TransformTreeRenderer
Renderer for the cells of the transform tree. |
protected class |
TransformDebugger.ValueModel
Table model for a Transform Debugger value table. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected TransformDebugger.AnnotationModel |
annotationModel
Tabular display of transform annotations |
protected static java.lang.String |
BUTTON_SHOWINPUT
Button text to show the input description of the currently selected transform |
protected static java.lang.String |
BUTTON_SHOWOUTPUT
Button text to show the output description of the currently selected transform |
protected javax.swing.JLabel |
classLabel
Label displaying the type of the currently selected transform |
protected static java.lang.String |
CLIENT_COMPONENTSHOWN
Client property for delayed initialization |
static java.lang.String |
CONFIG_FOREGROUNDRUNNING
Property key for the running transform foreground |
static java.lang.String |
CONFIG_FOREGROUNDSELECTED
Property key for the selected transform foreground |
static java.lang.String |
CONFIG_FOREGROUNDTRACED
Property key for the traced transform foreground |
static java.lang.String |
CONFIG_FOREGROUNDUNSELECTED
Property key for the unselected transform foreground |
protected javax.swing.JViewport |
customizer
Panel for transform customizers |
protected TransformDebugger.DebuggerThread |
debugThread
Thread for executing play events |
protected ITransform |
debugTransform
Transform being debugged |
protected IDataElement |
debugValue
Value being debugged |
static java.awt.Color |
DEFAULT_FOREGROUNDRUNNING
Default foreground color for running transforms |
static java.awt.Color |
DEFAULT_FOREGROUNDSELECTED
Default foreground color for selected transforms |
static java.awt.Color |
DEFAULT_FOREGROUNDTRACED
Default foreground color for traced transforms |
static java.awt.Color |
DEFAULT_FOREGROUNDUNSELECTED
Default foreground color for unselected transforms |
protected static double |
DEFAULT_TREESPLIT
Splitting proportion to give to the tree component |
protected static long |
DELAY_PAUSE
Milliseconds to pause after receiving a transform event |
protected static int |
DISABLE
Disable the indicated control |
protected static int |
ENABLE
Enable the indicated control |
protected static int |
IGNORE
Ignore the setting of the indicated control |
protected static java.lang.String |
LABEL_CLASS
Label for current transform class display |
protected static java.lang.String |
LABEL_NAME
Label for current transform name display |
protected static java.lang.Long |
LONG_ZERO
Zero |
protected static java.lang.String |
MENUBAR_DEFAULT
Name of default menubar |
protected MenuBuilder |
menuManager
Menu manager |
protected static java.lang.String |
NAME_CUSTOMIZERS
Name for customizers requested by this component |
protected javax.swing.JLabel |
nameLabel
Label displaying the name of the currently selected transform |
protected boolean |
preventSelectionUpdate
Prevent automatic selection updating |
protected javax.swing.tree.DefaultMutableTreeNode |
root
Root of the transform tree |
protected javax.swing.JSplitPane |
splitter
Splitter between tree and display |
protected java.lang.Runnable |
stopDebuggingRunnable
Stops debugging |
protected static java.lang.String |
TABNAME_ANNOTATION
Tab name for the transform annotation |
protected static java.lang.String |
TABNAME_TRANSFORM
Tab name for the transform editor |
protected static java.lang.String |
TABNAME_VALUE
Tabe name for the transform value |
protected static java.lang.String |
TOOLBAR_DEFAULT
Name of default toolbar |
protected java.util.Set |
traceSet
Set of elements identified as connected to the transform cursor |
protected ITransformAnnotation |
transformAnnotation
Annotation for the currently selected transform |
protected ITransform |
transformCursor
Currently selected transform |
protected java.util.Map |
transformMap
Map from transforms to tree nodes |
protected IDataElement |
transformValue
Value for the currently selected transform |
protected javax.swing.JTree |
tree
Transform tree model |
protected javax.swing.tree.DefaultTreeModel |
treeModel
Transform tree model |
protected java.lang.Runnable |
updateDisplayRunnable
Updates the display based on debug information |
protected TransformDebugger.ValueModel |
valueModel
Tabular display of transform values |
| Fields inherited from class jigcell.compare.ui.PanelTab |
|---|
compare, configMarkers, PATH_ABOUT, PATH_DESCRIPTION_ABOUT, tabName |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface jigcell.compare.ITab |
|---|
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TransformDebugger(Compare compare,
java.lang.String configMarker)
Creates a new debugger for working with transforms. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
clearSelected()
Clears the currently selected transform. |
protected void |
computeTrace(ITransform transform,
boolean forwards)
Finds a trace from the specified transform. |
IConfigEditor |
createConfigEditor()
Creates a configuration editor for this tab or null if this tab does not support graphical configuration. |
protected javax.swing.JMenu[] |
createMenus()
A list of menus for the view. |
protected javax.swing.JButton[] |
createTools()
Creates a tool list for the view. |
protected void |
createTransformTree(javax.swing.tree.DefaultMutableTreeNode root,
IDataGeneratorList transforms)
Computes the tree of transformations from a given root transform. |
protected void |
createUI()
Creates an interface for the view. |
void |
flushSelected()
Flushes the currently selected transform. |
ITransform |
getSelectedTransform()
The current object selected in the tree. |
ITransform |
getTransformCursor()
The current transform cursor. |
void |
hierarchyChanged(java.awt.event.HierarchyEvent e)
|
protected void |
initialize()
Performs any initialization work for the view. |
void |
pause()
Pauses the debugging thread. |
void |
play(long delay)
Starts executing transforms from the transform cursor. |
void |
refreshTree()
Reconstructs the transform tree. |
protected void |
setCustomizerView(ITransform transform)
Updates the customizer view for the currently selected transform. |
void |
setSelectedTransform(ITransform transform)
Sets the current object selected in the tree. |
void |
setTransformCursor(ITransform transformCursor)
Sets the current transform cursor. |
void |
showBackwards()
Computes and displays the backwards trace set. |
void |
showForwards()
Computes and displays the forwards trace set. |
void |
step()
Steps the debugging thread forwards. |
void |
stop()
Stops the debugging thread. |
protected void |
stopDebugging()
Stops the debugger. |
protected void |
updateDisplay()
Updates the display based on the current debugging state. |
protected void |
updateInterfaceControls(int clear,
int pause,
int play,
int set,
int show,
int step,
int stop)
Updates interface controls. |
protected void |
updateTransformInformation()
Updates the transform information display. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
|
| Methods inherited from class jigcell.compare.ui.PanelTab |
|---|
createAboutDialog, createAboutDialogForTab, getCompare, getConfigForView, getConfigMarkers, getHostIdentifier, getName, propertyChange, readConfiguration |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Color DEFAULT_FOREGROUNDRUNNING
public static final java.awt.Color DEFAULT_FOREGROUNDSELECTED
public static final java.awt.Color DEFAULT_FOREGROUNDTRACED
public static final java.awt.Color DEFAULT_FOREGROUNDUNSELECTED
public static final java.lang.String CONFIG_FOREGROUNDRUNNING
public static final java.lang.String CONFIG_FOREGROUNDSELECTED
public static final java.lang.String CONFIG_FOREGROUNDTRACED
public static final java.lang.String CONFIG_FOREGROUNDUNSELECTED
protected static final double DEFAULT_TREESPLIT
protected static final int DISABLE
protected static final int ENABLE
protected static final int IGNORE
protected static final long DELAY_PAUSE
protected static final java.lang.Long LONG_ZERO
protected static final java.lang.String BUTTON_SHOWINPUT
protected static final java.lang.String BUTTON_SHOWOUTPUT
protected static final java.lang.String CLIENT_COMPONENTSHOWN
protected static final java.lang.String LABEL_CLASS
protected static final java.lang.String LABEL_NAME
protected static final java.lang.String MENUBAR_DEFAULT
protected static final java.lang.String NAME_CUSTOMIZERS
protected static final java.lang.String TABNAME_TRANSFORM
protected static final java.lang.String TABNAME_VALUE
protected static final java.lang.String TABNAME_ANNOTATION
protected static final java.lang.String TOOLBAR_DEFAULT
protected TransformDebugger.AnnotationModel annotationModel
protected boolean preventSelectionUpdate
protected TransformDebugger.DebuggerThread debugThread
protected javax.swing.tree.DefaultMutableTreeNode root
protected javax.swing.tree.DefaultTreeModel treeModel
protected IDataElement debugValue
protected IDataElement transformValue
protected ITransform debugTransform
protected ITransform transformCursor
protected ITransformAnnotation transformAnnotation
protected javax.swing.JLabel classLabel
protected javax.swing.JLabel nameLabel
protected javax.swing.JSplitPane splitter
protected javax.swing.JTree tree
protected javax.swing.JViewport customizer
protected java.util.Map transformMap
protected MenuBuilder menuManager
protected final java.lang.Runnable stopDebuggingRunnable
protected final java.lang.Runnable updateDisplayRunnable
protected java.util.Set traceSet
protected TransformDebugger.ValueModel valueModel
| Constructor Detail |
|---|
public TransformDebugger(Compare compare,
java.lang.String configMarker)
compare - Comparator backend to interface withconfigMarker - Marker for retrieving configuration information from Comparator backend| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void clearSelected()
public IConfigEditor createConfigEditor()
createConfigEditor in interface ITabcreateConfigEditor in class PanelTabpublic void flushSelected()
public ITransform getSelectedTransform()
public ITransform getTransformCursor()
public void hierarchyChanged(java.awt.event.HierarchyEvent e)
hierarchyChanged in interface java.awt.event.HierarchyListenerpublic void pause()
public void play(long delay)
delay - Play step delaypublic void refreshTree()
public void setSelectedTransform(ITransform transform)
transform - Transformpublic void setTransformCursor(ITransform transformCursor)
transformCursor - Selected transformpublic void showBackwards()
public void showForwards()
public void step()
public void stop()
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged in interface javax.swing.event.TreeSelectionListener
protected void computeTrace(ITransform transform,
boolean forwards)
transform - Transformforwards - Whether to trace forwardsprotected javax.swing.JMenu[] createMenus()
createMenus in class PanelTabprotected javax.swing.JButton[] createTools()
createTools in class PanelTab
protected void createTransformTree(javax.swing.tree.DefaultMutableTreeNode root,
IDataGeneratorList transforms)
root - Tree root to attach totransforms - Child transforms of rootprotected void createUI()
createUI in class PanelTabprotected void initialize()
initialize in class PanelTabprotected void setCustomizerView(ITransform transform)
transform - Transformprotected void stopDebugging()
protected void updateDisplay()
protected void updateInterfaceControls(int clear,
int pause,
int play,
int set,
int show,
int step,
int stop)
clear - Whether to enable clear controlspause - Whether to enable pause controlsplay - Whether to enable play controlsset - Whether to enable set cursor controlsshow - Whether to enable show tree controlsstep - Whether to enable play step controlsstop - Whether to enable stop controlsprotected void updateTransformInformation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||