XPanelPeer.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Copyright (C) 2000, 2002, 2003 Free Software Foundation
  2. This file is part of libgcj.
  3. This software is copyrighted work licensed under the terms of the
  4. Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
  5. details. */
  6. package gnu.awt.xlib;
  7. import java.awt.*;
  8. import java.awt.peer.*;
  9. import java.awt.image.*;
  10. import gnu.gcj.xlib.WMSizeHints;
  11. import gnu.gcj.xlib.WindowAttributes;
  12. import gnu.gcj.xlib.Display;
  13. import gnu.gcj.xlib.Visual;
  14. import gnu.gcj.xlib.Screen;
  15. public class XPanelPeer extends XCanvasPeer implements PanelPeer
  16. {
  17. public XPanelPeer(Panel panel)
  18. {
  19. super(panel);
  20. }
  21. // no reason to override yet
  22. //void initWindowProperties();
  23. //gnu.gcj.xlib.Window getParentWindow();
  24. // Implementing ContainerPeer:
  25. // Default is no insets...
  26. static final Insets INSETS_0_PROTOTYPE = new Insets(0, 0, 0, 0);
  27. public Insets getInsets()
  28. {
  29. return (Insets) INSETS_0_PROTOTYPE.clone();
  30. }
  31. public Insets insets()
  32. {
  33. return getInsets();
  34. }
  35. public void beginValidate()
  36. {
  37. // NOP
  38. }
  39. public void endValidate()
  40. {
  41. // NOP
  42. }
  43. public void beginLayout () { }
  44. public void endLayout () { }
  45. public boolean isPaintPending () { return false; }
  46. }