1. /*
  2. * @(#)DragSourceContextPeer.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.dnd.peer;
  8. import java.awt.event.InputEvent;
  9. import java.awt.Component;
  10. import java.awt.Cursor;
  11. import java.awt.Image;
  12. import java.awt.Point;
  13. import java.awt.Rectangle;
  14. import java.awt.datatransfer.Transferable;
  15. import java.awt.dnd.DragSource;
  16. import java.awt.dnd.DragGestureEvent;
  17. import java.awt.dnd.DragSourceContext;
  18. import java.awt.dnd.DragSourceListener;
  19. import java.awt.dnd.InvalidDnDOperationException;
  20. /**
  21. * <p>
  22. * This interface is supplied by the underlying window system platform to
  23. * expose the behaviors of the Drag and Drop system to an originator of
  24. * the same
  25. * </p>
  26. *
  27. * @version 1.9
  28. * @since JDK1.2
  29. *
  30. */
  31. public interface DragSourceContextPeer {
  32. /**
  33. * start a drag
  34. */
  35. void startDrag(DragSourceContext dsc, Cursor c, Image dragImage, Point imageOffset) throws InvalidDnDOperationException;
  36. /**
  37. * return the current drag cursor
  38. */
  39. Cursor getCursor();
  40. /**
  41. * set the current drag cursor
  42. */
  43. void setCursor(Cursor c) throws InvalidDnDOperationException;
  44. /**
  45. * notify the peer that the Transferables DataFlavors have changed
  46. */
  47. void transferablesFlavorsChanged();
  48. }