Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
MatrixTree.MenuHandler Class Reference
Inheritance diagram for MatrixTree.MenuHandler:

Public Member Functions

 MenuHandler ()
 
void mouseClicked (MouseEvent evt)
 

Protected Member Functions

JPopupMenu getMenuForVoidSpace ()
 
TreePath[] getSelectionPathsForLocation (int x, int y)
 
JPopupMenu getMenuForSingleSelection ()
 
JPopupMenu getMenuForMultipleSelection ()
 
JMenuItem[] getAncillaryMenuItems ()
 

Detailed Description

Class that handles the menus through right clicking. If there is a multiple selection and a right click occurs, a separate method is invokes to show a menu to the context of the selection nodes. If a multiple selection is inplace, and a single node outside the selection is selected, the multiple section is lost in place for the node right clicked on.

Author
Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Definition at line 1464 of file MatrixTree.java.

Constructor & Destructor Documentation

MenuHandler ( )
inline

Constructs menu handler

Returns
the menu handler

Definition at line 1472 of file MatrixTree.java.

Member Function Documentation

JMenuItem [] getAncillaryMenuItems ( )
inlineprotected

Returns the ancillery items that will be displayed below the main menu items separated by JMenu.Separator

Returns
the ancillery menu items

Definition at line 1658 of file MatrixTree.java.

JPopupMenu getMenuForMultipleSelection ( )
inlineprotected

Returns the popup menu for a multiple selection.

Returns
the popup menu for a multiple selection.

Definition at line 1617 of file MatrixTree.java.

JPopupMenu getMenuForSingleSelection ( )
inlineprotected

Returns a popup menu for a single selection

Returns
a popup menu for a single selection

Definition at line 1561 of file MatrixTree.java.

JPopupMenu getMenuForVoidSpace ( )
inlineprotected

Returns a popup menu when the mouse is clicked in void space outside any tree components

Returns
the popup menu for a click in void space

Definition at line 1513 of file MatrixTree.java.

TreePath [] getSelectionPathsForLocation ( int  x,
int  y 
)
inlineprotected

Returns the selection path for a click that occured at the specifed x and y co-ordinate

Parameters
xthe x co-ordinate of the click
ythe y co-ordinate of the click

Definition at line 1524 of file MatrixTree.java.

void mouseClicked ( MouseEvent  evt)
inline

Event listener method that is called when the mouse is clicked

Parameters
evtthe MouseEvent

Definition at line 1480 of file MatrixTree.java.


The documentation for this class was generated from the following file: