sub_arctic.lib
Class debug_interactor_applet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--sub_arctic.lib.interactor_applet
                                |
                                +--sub_arctic.lib.debug_interactor_applet
Direct Known Subclasses:
component_flow_test, constraint_patterns, debug_top_test, ext_test, flow_test, hello_world_anim, hello_world_debug, image_cutter, line_test, listbox_test, misc_test, nav_test, nav_test2, overkill_test, panner_test, point_test, range_slider_test, shade_test, shadow_drag_test, style_test, style_test3, style_test4, style_test5, style_test6, style_test7, style_test8, switch_lens_test, sync_test1, tab_test, test_text_bug2, text_extract_test, uist_style_demo, wb_test

public class debug_interactor_applet
extends interactor_applet

This is subclass of interactor applet that inserts a debugging lens above its normal subtree (using a debug_lens_top_level object with a fake_top_level child). This object can be temporarily substituted for a normal interactor_applet for debugging purposes. By default, the debug_lens_top_level object will activate/deactivate its lens when a mouse button is pressed while holding down both the control and meta keys (but this can be changed).

See Also:
Serialized Form

Field Summary
protected  fake_top_level _fake_top
          The fake top_level object object that is placed below the real root and passed to the user's build_ui() routine.
 
Fields inherited from class sub_arctic.lib.interactor_applet
_top_interactor, last_evt_was_move, last_move_evt_x, last_move_evt_y
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
debug_interactor_applet()
          Construct a new debug_interactor_applet.
 
Method Summary
 void do_init()
          Override do_init to pass the fake top_level object to the user's build_ui() routine instead of the real one.
 void make_top_level()
          This function is called to create and install a top_level interactor in this applet.
 
Methods inherited from class sub_arctic.lib.interactor_applet
build_ui, destroy, init, isFocusTraversable, paint, post_build_ui, pre_build_ui, processEvent, remove_top_interactor, set_top_interactor, setBounds, top_interactor, update
 
Methods inherited from class java.applet.Applet
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_fake_top

protected fake_top_level _fake_top
The fake top_level object object that is placed below the real root and passed to the user's build_ui() routine. This is initialized when we establish the top level interactor in make_top_level().
Constructor Detail

debug_interactor_applet

public debug_interactor_applet()
Construct a new debug_interactor_applet.
Method Detail

make_top_level

public void make_top_level()
This function is called to create and install a top_level interactor in this applet. In this case we install a debug_lens_top_level with a fake_top_level under it. This fake_top_level is what eventually gets passed into build_ui() (via init()). Note: this routine sets the top level object created to be invisible so we don't try to draw it before the UI is built. This is reset to visible after post_build_ui() is called in do_init().
Overrides:
make_top_level in class interactor_applet

do_init

public void do_init()
Override do_init to pass the fake top_level object to the user's build_ui() routine instead of the real one.
Overrides:
do_init in class interactor_applet