uci.uml.ui
Class ToDoPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--uci.uml.ui.ToDoPane

public class ToDoPane
extends JPanel
implements ItemListener, TreeSelectionListener, MouseListener, ToDoListListener

The lower-left pane of the main Argo/UML window. This ane shows a list or tree of all the "to do" items that the designer should condsider.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
static int _clicksInToDoPane
           
protected  JComboBox _combo
           
protected  JLabel _countLabel
           
protected  ToDoPerspective _curPerspective
           
static int _dblClicksInToDoPane
           
protected  char _dir
           
protected  boolean _flat
           
protected  JToggleButton _flatButton
           
protected  Action _flatView
           
protected  Object _lastSel
           
protected  int _oldSize
           
protected  ProjectBrowser _pb
           
protected  Vector _perspectives
           
protected  ToDoList _root
           
static int _toDoPerspectivesChanged
           
protected  ToolBar _toolbar
           
protected  JTree _tree
           
static Color ALARM_COLOR
           
static int ALARM_THRESHOLD
           
static int HEIGHT
           
static int INITIAL_HEIGHT
           
static int INITIAL_WIDTH
           
static Color WARN_COLOR
           
static int WARN_THRESHOLD
           
static int WIDTH
           
 
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
 
Constructor Summary
ToDoPane()
           
 
Method Summary
 ToDoPerspective getCurPerspective()
           
 Dimension getMinimumSize()
           
 Vector getPerspectives()
           
 Dimension getPreferredSize()
           
 ToDoList getRoot()
           
 Object getSelectedObject()
           
 boolean isFlat()
           
 void itemStateChanged(ItemEvent e)
          called when the user selects a perspective from the perspective combo.
 void mouseClicked(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void myDoubleClick(int row, TreePath path)
          called when the user clicks once on an item in the tree.
 void mySingleClick(int row, TreePath path)
          called when the user clicks once on an item in the tree.
 void selectItem(ToDoItem item)
           
 void setCurPerspective(TreeModel per)
           
 void setFlat(boolean b)
           
 void setPerspectives(Vector pers)
           
 void setRoot(ToDoList r)
           
 void toDoItemsAdded(ToDoListEvent tde)
           
 void toDoItemsChanged(ToDoListEvent tde)
           
 void toDoItemsRemoved(ToDoListEvent tde)
           
 void toDoListChanged(ToDoListEvent tde)
           
 void toggleFlat()
           
 void updateCountLabel()
           
protected  void updateTree()
           
 void valueChanged(TreeSelectionEvent e)
          called when the user selects an item in the tree, by clicking or otherwise.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WIDTH

public static int WIDTH

HEIGHT

public static int HEIGHT

INITIAL_WIDTH

public static int INITIAL_WIDTH

INITIAL_HEIGHT

public static int INITIAL_HEIGHT

WARN_THRESHOLD

public static int WARN_THRESHOLD

ALARM_THRESHOLD

public static int ALARM_THRESHOLD

WARN_COLOR

public static Color WARN_COLOR

ALARM_COLOR

public static Color ALARM_COLOR

_pb

protected ProjectBrowser _pb

_perspectives

protected Vector _perspectives

_toolbar

protected ToolBar _toolbar

_combo

protected JComboBox _combo

_root

protected ToDoList _root

_flatView

protected Action _flatView

_flatButton

protected JToggleButton _flatButton

_countLabel

protected JLabel _countLabel

_curPerspective

protected ToDoPerspective _curPerspective

_tree

protected JTree _tree

_flat

protected boolean _flat

_lastSel

protected Object _lastSel

_oldSize

protected int _oldSize

_dir

protected char _dir

_clicksInToDoPane

public static int _clicksInToDoPane

_dblClicksInToDoPane

public static int _dblClicksInToDoPane

_toDoPerspectivesChanged

public static int _toDoPerspectivesChanged
Constructor Detail

ToDoPane

public ToDoPane()
Method Detail

setRoot

public void setRoot(ToDoList r)

getRoot

public ToDoList getRoot()

getPerspectives

public Vector getPerspectives()

setPerspectives

public void setPerspectives(Vector pers)

getCurPerspective

public ToDoPerspective getCurPerspective()

setCurPerspective

public void setCurPerspective(TreeModel per)

getSelectedObject

public Object getSelectedObject()

selectItem

public void selectItem(ToDoItem item)

isFlat

public boolean isFlat()

setFlat

public void setFlat(boolean b)

toggleFlat

public void toggleFlat()

getPreferredSize

public Dimension getPreferredSize()
Overrides:
getPreferredSize in class JComponent

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent

itemStateChanged

public void itemStateChanged(ItemEvent e)
called when the user selects a perspective from the perspective combo.
Specified by:
itemStateChanged in interface ItemListener

valueChanged

public void valueChanged(TreeSelectionEvent e)
called when the user selects an item in the tree, by clicking or otherwise.
Specified by:
valueChanged in interface TreeSelectionListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mySingleClick

public void mySingleClick(int row,
                          TreePath path)
called when the user clicks once on an item in the tree.

myDoubleClick

public void myDoubleClick(int row,
                          TreePath path)
called when the user clicks once on an item in the tree.

toDoItemsChanged

public void toDoItemsChanged(ToDoListEvent tde)
Specified by:
toDoItemsChanged in interface ToDoListListener

toDoItemsAdded

public void toDoItemsAdded(ToDoListEvent tde)
Specified by:
toDoItemsAdded in interface ToDoListListener

toDoItemsRemoved

public void toDoItemsRemoved(ToDoListEvent tde)
Specified by:
toDoItemsRemoved in interface ToDoListListener

toDoListChanged

public void toDoListChanged(ToDoListEvent tde)
Specified by:
toDoListChanged in interface ToDoListListener

updateCountLabel

public void updateCountLabel()

updateTree

protected void updateTree()