Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes
rene.gui.Panel3D Class Reference

Panel3D extends the Panel class with a 3D look. More...

Inheritance diagram for rene.gui.Panel3D:
Inheritance graph
[legend]
Collaboration diagram for rene.gui.Panel3D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Panel3D (Component c)
 Adds the component to the panel.
 Panel3D (Component c, Color background)
void paint (Graphics g)
void addLayoutComponent (String arg0, Component arg1)
void removeLayoutComponent (Component arg0)
Dimension preferredLayoutSize (Container arg0)
Dimension minimumLayoutSize (Container arg0)
void layoutContainer (Container arg0)

Package Attributes

Component C

Detailed Description

Panel3D extends the Panel class with a 3D look.

Definition at line 15 of file Panel3D.java.


Constructor & Destructor Documentation

rene.gui.Panel3D.Panel3D ( Component  c) [inline]

Adds the component to the panel.

This component is resized to leave 5 pixel on each side.

Definition at line 22 of file Panel3D.java.

       {      C=c;
              setLayout(this);
              add(C);
              setBackground(C.getBackground());
       }
rene.gui.Panel3D.Panel3D ( Component  c,
Color  background 
) [inline]

Definition at line 29 of file Panel3D.java.

       {      C=c;
              setLayout(this);
              add(C);
              setBackground(background);
       }

Member Function Documentation

void rene.gui.Panel3D.addLayoutComponent ( String  arg0,
Component  arg1 
) [inline]

Definition at line 43 of file Panel3D.java.

       {      C=arg1;
       }
void rene.gui.Panel3D.layoutContainer ( Container  arg0) [inline]

Definition at line 63 of file Panel3D.java.

       {      if (C==null) return;
              C.setLocation(5,5);
              C.setSize(getSize().width-10,getSize().height-10);
       }
Dimension rene.gui.Panel3D.minimumLayoutSize ( Container  arg0) [inline]

Definition at line 57 of file Panel3D.java.

       {      if (C!=null) return new Dimension(
                     C.getMinimumSize().width+10,C.getMinimumSize().height+10);
              return new Dimension(10,10);
       }
void rene.gui.Panel3D.paint ( Graphics  g) [inline]

Definition at line 36 of file Panel3D.java.

       {      g.setColor(getBackground());
              if (getSize().width>0 && getSize().height>0)
                     g.fill3DRect(0,0,getSize().width,getSize().height,true);
              // C.repaint(); // probably not necessary, but Mac OSX bug ?!?
       }
Dimension rene.gui.Panel3D.preferredLayoutSize ( Container  arg0) [inline]

Definition at line 51 of file Panel3D.java.

       {      if (C!=null) return new Dimension(
                     C.getPreferredSize().width+10,C.getPreferredSize().height+10);
              return new Dimension(10,10);
       }
void rene.gui.Panel3D.removeLayoutComponent ( Component  arg0) [inline]

Definition at line 47 of file Panel3D.java.

       {      C=null;
       }

Member Data Documentation

Component rene.gui.Panel3D.C [package]

Definition at line 17 of file Panel3D.java.


The documentation for this class was generated from the following file: