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