1. /*
  2. * @(#)ContainerPeer.java 1.20 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.peer;
  8. import java.awt.*;
  9. /**
  10. * The peer interfaces are intended only for use in porting
  11. * the AWT. They are not intended for use by application
  12. * developers, and developers should not implement peers
  13. * nor invoke any of the peer methods directly on the peer
  14. * instances.
  15. */
  16. public interface ContainerPeer extends ComponentPeer {
  17. Insets getInsets();
  18. void beginValidate();
  19. void endValidate();
  20. void beginLayout();
  21. void endLayout();
  22. boolean isPaintPending();
  23. /**
  24. * Cancels a pending paint on the specified region of the
  25. * Component.
  26. */
  27. void cancelPendingPaint(int x, int y, int w, int h);
  28. /**
  29. * Restacks native windows - children of this native window - according to Java container order
  30. * @since 1.5
  31. */
  32. void restack();
  33. /**
  34. * Indicates availabiltity of restacking operation in this container.
  35. * @return Returns true if restack is supported, false otherwise
  36. * @since 1.5
  37. */
  38. boolean isRestackSupported();
  39. /**
  40. * DEPRECATED: Replaced by getInsets().
  41. */
  42. Insets insets();
  43. }