|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.event.MouseInputAdapter
de.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener
de.uni_paderborn.fujaba.fsa.listener.DragMouseListener
Standard mouselistener for Components displaying DiagramItems
Handles dragging and selecting of Objects as well as putting selected Objects on top of others
| Field Summary | |
protected boolean |
dragging
No comment provided by developer, please add a comment to improve documentation. |
private java.awt.Point |
lastPoint
Inner attribute for calculating a mouse move. |
private static DragMouseListener |
singleton
No comment provided by developer, please add a comment to improve documentation. |
| Fields inherited from class de.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener |
DISTANCE, EAST, INNER, lastComponent, NORTH, SOUTH, UNKNOWN, WEST |
| Constructor Summary | |
protected |
DragMouseListener()
The default constructor is empty. |
| Method Summary | |
protected void |
drag(javax.swing.JComponent comp,
int deltaX,
int deltaY)
No comment provided by developer, please add a comment to improve documentation. |
static DragMouseListener |
get()
No comment provided by developer, please add a comment to improve documentation. |
void |
mouseClicked(java.awt.event.MouseEvent event)
Overwrites the mouseClicked method of ComponentMouseListener. |
void |
mouseDragged(java.awt.event.MouseEvent event)
Overwrites the mouseClicked method of ComponentMouseListener. |
void |
mousePressed(java.awt.event.MouseEvent event)
Overwrites the mousePressed method of ComponentMouseListener. |
void |
mouseReleased(java.awt.event.MouseEvent event)
Overwrites the mouseReleased method of ComponentMouseListener. |
protected void |
setDragging(boolean drag)
If drag is true move all selected components to the drag layer. |
protected void |
setOrientation(java.awt.Component comp,
java.awt.event.MouseEvent event)
Sets the orientation attribute of the DragMouseListener object |
| Methods inherited from class de.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener |
getOrientation, setOrientation |
| Methods inherited from class javax.swing.event.MouseInputAdapter |
mouseEntered, mouseExited, mouseMoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static DragMouseListener singleton
private java.awt.Point lastPoint
protected boolean dragging
| Constructor Detail |
protected DragMouseListener()
| Method Detail |
public static DragMouseListener get()
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenerevent - No description providedpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed in interface java.awt.event.MouseListenerevent - No description providedpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased in interface java.awt.event.MouseListenerevent - No description providedpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged in interface java.awt.event.MouseMotionListenerevent - No description provided
protected void drag(javax.swing.JComponent comp,
int deltaX,
int deltaY)
comp - No description provideddeltaX - No description provideddeltaY - No description providedprotected void setDragging(boolean drag)
drag - The new dragging value
protected void setOrientation(java.awt.Component comp,
java.awt.event.MouseEvent event)
setOrientation in class ComponentMouseListenercomp - The new orientation valueevent - The new orientation value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||