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