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
| 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 |
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
ToDoPane
public ToDoPane()
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()