|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.argouml.ui.NavigatorPane
The upper-left pane of the main Argo/UML window, shows a tree view of the UML model.
The model can be viewed from different tree "Perspectives".
The public interface of this class provides the following:
Perspectives are now built here. $Id: NavigatorPane.java,v 1.48 2003/07/18 17:06:00 d00mst Exp $
Field Summary | |
static int |
_clicksInNavPane
for collecting user statistics |
protected javax.swing.JComboBox |
_combo
selects the perspective |
protected NavPerspective |
_curPerspective
the current perspective |
static int |
_navPerspectivesChanged
for collecting user statistics |
protected java.util.Vector |
_perspectives
vector of TreeModels, that are the perspectives |
protected java.lang.Object |
_root
tree root object |
protected Toolbar |
_toolbar
toolbar for history navigation and perspectives config dialog |
protected DisplayTextTree |
_tree
the java.swing.JTree component |
protected Category |
cat
|
static int |
MAX_HISTORY
|
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 org.argouml.application.api.QuadrantPanel |
Q_BOTTOM, Q_BOTTOM_LEFT, Q_BOTTOM_RIGHT, Q_LEFT, Q_RIGHT, Q_TOP, Q_TOP_LEFT, Q_TOP_RIGHT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
NavigatorPane(boolean doSplash)
Constructs a new navigator panel. |
Method Summary | |
void |
addPerspective(NavPerspective np)
|
java.util.Vector |
buildPerspectives()
the perspectives to be chosen in the combobox are built here. |
void |
forceUpdate()
Notification from Argo that the model has changed and the Tree view needs updating. |
void |
forceUpdate(java.lang.Object changed)
Countpart to forceUpdate() that only updates viewable rows, instead of rebuilding the whole tree; a vast improvement in performance. |
NavPerspective |
getCurPerspective()
needs documenting |
java.awt.Dimension |
getMinimumSize()
needs documenting |
java.util.Vector |
getPerspectives()
needs documenting |
int |
getQuadrant()
QuadrantPanel implementation |
java.lang.Object |
getRoot()
needs documenting |
java.lang.Object |
getSelectedObject()
selection accessor - to be moved into some selection manager when used by ActionAddPackage and ActionSetSourcePath then change to private for use by the NavigatorKeyListener, below. |
java.lang.Object[] |
getSelectedObjects()
Gets all selected objects (for multiselect) |
DisplayTextTree |
getTree()
used as a selection accessor - to be removed. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
called when the user selects a perspective from the perspective combo. |
void |
listRoleItemSet(MElementEvent e)
If a element changes, this will be catched by this method and reflected in the tree. |
void |
navDown()
history method - to be moved into some HistoryManager that is linked to the not-yet-done SelectionManager ?? |
void |
navUp()
history method - to be moved into some HistoryManager that is linked to the not-yet-done SelectionManager ?? |
void |
propertyChange(java.beans.PropertyChangeEvent pce)
Listen for configuration changes that could require repaint of the navigator pane, calls forceUpdate(), Listens for changes of the project fired by projectmanager. |
void |
propertySet(MElementEvent e)
If a element changes, this will be catched by this method and reflected in the tree. |
void |
recovered(MElementEvent e)
If a element changes, this will be catched by this method and reflected in the tree. |
void |
removed(MElementEvent e)
If a element changes, this will be catched by this method and reflected in the tree. |
void |
removePerspective(NavPerspective np)
method for navconfig dialog to remove a perspective. |
void |
roleAdded(MElementEvent e)
If a element changes, this will be catched by this method and reflected in the tree. |
void |
roleRemoved(MElementEvent e)
If a element changes, this will be catched by this method and reflected in the tree. |
void |
setCurPerspective(NavPerspective per)
needs documenting |
void |
setRoot(java.lang.Object r)
needs documenting |
void |
setSelection(java.lang.Object level1,
java.lang.Object level2)
selection mutator - to be moved into some selection manager. |
protected void |
updateTree()
helper method to: - itemStateChanged(), - setPerspectives(Vector pers) |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
protected transient Category cat
public static final int MAX_HISTORY
public static int _clicksInNavPane
public static int _navPerspectivesChanged
protected DisplayTextTree _tree
protected Toolbar _toolbar
protected javax.swing.JComboBox _combo
protected NavPerspective _curPerspective
protected java.util.Vector _perspectives
protected java.lang.Object _root
Constructor Detail |
public NavigatorPane(boolean doSplash)
This panel consists of a Combobox to select a navigation perspective, a JTree to display the UML model, some history (back and forward arrows) buttons that are currently disabled, and a configuration dialog to tailor the perspectives (but this is not saved).
Method Detail |
public void setRoot(java.lang.Object r)
public java.lang.Object getRoot()
public java.util.Vector getPerspectives()
public NavPerspective getCurPerspective()
public void setCurPerspective(NavPerspective per)
public java.lang.Object getSelectedObject()
then change to private for use by the NavigatorKeyListener, below.
public java.lang.Object[] getSelectedObjects()
public void forceUpdate()
ActionRemoveFromModel
,
ActionAddDiagram
,
PropPanelGeneralization
,
UMLReflectionListModel
public void forceUpdate(java.lang.Object changed)
UmlModelListener
public void setSelection(java.lang.Object level1, java.lang.Object level2)
called from main()
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void navDown()
public void navUp()
protected void updateTree()
public int getQuadrant()
getQuadrant
in interface QuadrantPanel
public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
public DisplayTextTree getTree()
public java.util.Vector buildPerspectives()
public void removePerspective(NavPerspective np)
public void addPerspective(NavPerspective np)
public void listRoleItemSet(MElementEvent e)
ru.novosoft.uml.MElementListener#listRoleItemSet(ru.novosoft.uml.MElementEvent)
public void propertySet(MElementEvent e)
ru.novosoft.uml.MElementListener#propertySet(ru.novosoft.uml.MElementEvent)
public void recovered(MElementEvent e)
ru.novosoft.uml.MElementListener#recovered(ru.novosoft.uml.MElementEvent)
public void removed(MElementEvent e)
ru.novosoft.uml.MElementListener#removed(ru.novosoft.uml.MElementEvent)
public void roleAdded(MElementEvent e)
ru.novosoft.uml.MElementListener#roleAdded(ru.novosoft.uml.MElementEvent)
public void roleRemoved(MElementEvent e)
ru.novosoft.uml.MElementListener#roleRemoved(ru.novosoft.uml.MElementEvent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030919) | ArgoUML Project Home | ArgoUML Cookbook |