Documentation of 'org.jhotdraw.draw.tool.DnDTracker' Java class
DnDTracker
org.jhotdraw.draw.tool

Class DnDTracker

  • All Implemented Interfaces:
    java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, DragTracker, Tool


    public class DnDTracker
    extends AbstractTool
    implements DragTracker
    This is a tracker which supports drag and drop of figures between drawing views and any other component or application which support drag and drop.

    DnDTracker can be used stand-alone or instead of DragTracker in the SelectionTool or the DelegationSelectionTool.

    To get a drag image using drag and drop, the drawing needs to provide an image output format.

    Drag and Drop is about information moving, not images or objects. Its about moving a figure to another application and that application understanding both its shape, color, attributes, and everything about it - not necessarily how it looks.

    See Also:
    Serialized Form
    • Constructor Detail

      • DnDTracker

        public DnDTracker()
      • DnDTracker

        public DnDTracker(Figure figure)
    • Method Detail

      • mouseMoved

        public void mouseMoved(java.awt.event.MouseEvent evt)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseMoved in class AbstractTool
      • mousePressed

        public void mousePressed(java.awt.event.MouseEvent evt)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class AbstractTool
      • mouseDragged

        public void mouseDragged(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
      • mouseReleased

        public void mouseReleased(java.awt.event.MouseEvent evt)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class AbstractTool

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.