Package gov.nih.mipav.view
Class ViewMenuBuilder.MenuDragOp
- java.lang.Object
-
- gov.nih.mipav.view.ViewMenuBuilder.MenuDragOp
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.MenuDragMouseListener
- Enclosing class:
- ViewMenuBuilder
private class ViewMenuBuilder.MenuDragOp extends java.lang.Object implements javax.swing.event.MenuDragMouseListener
Class for listening to dragging events within a menu.- Author:
- senseneyj
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ViewMenuBuilder.MenuDragOp.MenuMouse
Class for listening to mouse events after a candidate menu is being dragged.
-
Field Summary
Fields Modifier and Type Field Description private boolean
draggingGlobal
private int
insideCount
private ViewMenuBuilder.MenuDragOp.MenuMouse
menu
-
Constructor Summary
Constructors Modifier Constructor Description private
MenuDragOp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.swing.JMenuItem
getComponent(javax.swing.JComponent comp, int index)
private int
getCount(javax.swing.JComponent comp)
void
menuDragMouseDragged(javax.swing.event.MenuDragMouseEvent e)
void
menuDragMouseEntered(javax.swing.event.MenuDragMouseEvent e)
void
menuDragMouseExited(javax.swing.event.MenuDragMouseEvent e)
void
menuDragMouseReleased(javax.swing.event.MenuDragMouseEvent e)
private java.awt.Component
testComponent(javax.swing.JComponent comp, int index)
-
-
-
Field Detail
-
insideCount
private int insideCount
-
draggingGlobal
private boolean draggingGlobal
-
menu
private ViewMenuBuilder.MenuDragOp.MenuMouse menu
-
-
Method Detail
-
menuDragMouseDragged
public void menuDragMouseDragged(javax.swing.event.MenuDragMouseEvent e)
- Specified by:
menuDragMouseDragged
in interfacejavax.swing.event.MenuDragMouseListener
-
menuDragMouseEntered
public void menuDragMouseEntered(javax.swing.event.MenuDragMouseEvent e)
- Specified by:
menuDragMouseEntered
in interfacejavax.swing.event.MenuDragMouseListener
-
menuDragMouseExited
public void menuDragMouseExited(javax.swing.event.MenuDragMouseEvent e)
- Specified by:
menuDragMouseExited
in interfacejavax.swing.event.MenuDragMouseListener
-
menuDragMouseReleased
public void menuDragMouseReleased(javax.swing.event.MenuDragMouseEvent e)
- Specified by:
menuDragMouseReleased
in interfacejavax.swing.event.MenuDragMouseListener
-
getCount
private int getCount(javax.swing.JComponent comp)
-
getComponent
private javax.swing.JMenuItem getComponent(javax.swing.JComponent comp, int index)
-
testComponent
private java.awt.Component testComponent(javax.swing.JComponent comp, int index)
-
-