com.imagero.gui.flowin.util
Class GridDragHandler

java.lang.Object
  extended byjavax.swing.event.MouseInputAdapter
      extended bycom.imagero.gui.flowin.util.GridDragHandler
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class GridDragHandler
extends javax.swing.event.MouseInputAdapter


Constructor Summary
GridDragHandler(java.awt.Component master, java.awt.Container slave, boolean ignoreBorder)
          easy dragging of components.
 
Method Summary
 GridChecker getChecker()
           
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void setChecker(GridChecker checker)
           
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridDragHandler

public GridDragHandler(java.awt.Component master,
                       java.awt.Container slave,
                       boolean ignoreBorder)
easy dragging of components. note that control and slave can be the same component.

Parameters:
master - control Component (like titleBar)
slave - Container to move
ignoreBorder - in case master and slave is the same Component and ResizeHandler is also used then Component's border area should be ignored by DragHandler
Method Detail

getChecker

public GridChecker getChecker()

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseMotionListener
Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.


mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when a mouse button has been pressed on a component.


mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when a mouse button has been released on a component.


setChecker

public void setChecker(GridChecker checker)