|
|||||||||||
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. |
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 |
dragByDelta(FSAObject fsaObject,
int deltaX,
int deltaY)
Drag FSAObject by specified amount. |
protected void |
dragByDelta(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 |
saveLocationInPolyLine(FSAObject object)
No comment provided by developer, please add a comment to improve documentation. |
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 |
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.MouseListener
event
- No description providedpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
event
- No description providedpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
event
- No description providedpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- No description providedprotected void dragByDelta(FSAObject fsaObject, int deltaX, int deltaY)
fsaObject
- FSAObject to be moved.deltaX
- x-amountdeltaY
- y-amountprotected void dragByDelta(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 valueprotected void setOrientation(java.awt.Component comp, java.awt.event.MouseEvent event)
setOrientation
in class ComponentMouseListener
comp
- The new orientation valueevent
- The new orientation valueprotected void saveLocationInPolyLine(FSAObject object)
object
- No description provided
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |