Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Package Attributes
rene.gui.IconBarPanel Class Reference
Inheritance diagram for rene.gui.IconBarPanel:
Inheritance graph
[legend]
Collaboration diagram for rene.gui.IconBarPanel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IconBarPanel (Component c1, Component c2)
void doLayout ()
Dimension getPreferredSize ()
void setInsets (int x, int y)
void paint (Graphics g)

Static Public Member Functions

static void main (String[] args)

Package Attributes

Component C1
Component C2
int IX = 0
int IY = 0

Detailed Description

Author:
Rene A panel for two components. The left one uses its width.

Definition at line 14 of file IconBarPanel.java.


Constructor & Destructor Documentation

rene.gui.IconBarPanel.IconBarPanel ( Component  c1,
Component  c2 
) [inline]

Definition at line 19 of file IconBarPanel.java.

       {      C1=c1; C2=c2;
              add(C1);
              add(C2);
       }

Member Function Documentation

void rene.gui.IconBarPanel.doLayout ( ) [inline]

Definition at line 25 of file IconBarPanel.java.

       {      int w=C1.getPreferredSize().width;
              C1.setSize(w,getSize().height-2*IY);
              C1.setLocation(IX,IY);
              C2.setSize(getSize().width-3*IX-w,getSize().height-2*IX);
              C2.setLocation(w+2*IX,IY);
              C1.doLayout();
              C2.doLayout();
       }

Definition at line 35 of file IconBarPanel.java.

       {      Dimension d1=C1.getPreferredSize(),d2=C2.getPreferredSize();
              return new Dimension(d1.width+d2.width,
                     Math.max(d1.height,d2.height));
       }
static void rene.gui.IconBarPanel.main ( String[]  args) [inline, static]

Definition at line 45 of file IconBarPanel.java.

       {}
void rene.gui.MyPanel.paint ( Graphics  g) [inline, inherited]

Definition at line 12 of file MyPanel.java.

       {      super.paint(g);
              getToolkit().sync();
       }
void rene.gui.IconBarPanel.setInsets ( int  x,
int  y 
) [inline]

Definition at line 41 of file IconBarPanel.java.

       {      IX=x; IY=y;
       }

Member Data Documentation

Component rene.gui.IconBarPanel.C1 [package]

Definition at line 16 of file IconBarPanel.java.

Component rene.gui.IconBarPanel.C2 [package]

Definition at line 16 of file IconBarPanel.java.

int rene.gui.IconBarPanel.IX = 0 [package]

Definition at line 17 of file IconBarPanel.java.

int rene.gui.IconBarPanel.IY = 0 [package]

Definition at line 17 of file IconBarPanel.java.


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