Class BasicGraphUI.GraphDropTargetListener

  • All Implemented Interfaces:
    java.awt.dnd.DropTargetListener, java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.plaf.UIResource
    Enclosing class:
    BasicGraphUI

    public class BasicGraphUI.GraphDropTargetListener
    extends BasicGraphDropTargetListener
    implements java.io.Serializable
    Graph Drop Target Listener
    See Also:
    Serialized Form
    • Constructor Detail

      • GraphDropTargetListener

        public GraphDropTargetListener()
    • Method Detail

      • saveComponentState

        protected void saveComponentState​(javax.swing.JComponent comp)
        called to save the state of a component in case it needs to be restored because a drop is not performed.
        Overrides:
        saveComponentState in class BasicGraphDropTargetListener
      • restoreComponentState

        protected void restoreComponentState​(javax.swing.JComponent comp)
        called to restore the state of a component because a drop was not performed.
        Overrides:
        restoreComponentState in class BasicGraphDropTargetListener
      • updateInsertionLocation

        protected void updateInsertionLocation​(javax.swing.JComponent comp,
                                               java.awt.Point p)
        called to set the insertion location to match the current mouse pointer coordinates.
        Overrides:
        updateInsertionLocation in class BasicGraphDropTargetListener
      • dragEnter

        public void dragEnter​(java.awt.dnd.DropTargetDragEvent e)
        Specified by:
        dragEnter in interface java.awt.dnd.DropTargetListener
        Overrides:
        dragEnter in class BasicGraphDropTargetListener
      • dropActionChanged

        public void dropActionChanged​(java.awt.dnd.DropTargetDragEvent e)
        Specified by:
        dropActionChanged in interface java.awt.dnd.DropTargetListener
        Overrides:
        dropActionChanged in class BasicGraphDropTargetListener