Back to index

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

Button to get all icons, when there is not too much space. More...

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

List of all members.

Public Member Functions

 OverflowButton (IconBar ib, boolean left)
void paint (Graphics g)

Package Attributes

IconBar IB
boolean Left = true

Detailed Description

Button to get all icons, when there is not too much space.

Definition at line 539 of file IconBar.java.


Constructor & Destructor Documentation

Definition at line 543 of file IconBar.java.

       {      IB=ib; Left=left;
              addMouseListener(new MouseAdapter()
                            {      public void mouseClicked (MouseEvent e)
                                   {      IB.setShifted(!Left);       
                                   }
                            }
                     );
       }

Here is the call graph for this function:


Member Function Documentation

void rene.gui.OverflowButton.paint ( Graphics  g) [inline]

Definition at line 553 of file IconBar.java.

       {      int size=BasicIcon.Size;
              g.setColor(getBackground());
              g.fill3DRect(0,0,10,size,true);
              g.setColor(getForeground());
              int x[]=new int[3],y[]=new int[3];
              if (Left)
              {      x[0]=2; x[1]=x[2]=8;
                     y[0]=size/2; y[1]=y[0]-6; y[2]=y[0]+6;
              }
              else
              {      x[0]=8; x[1]=x[2]=2;
                     y[0]=size/2; y[1]=y[0]-6; y[2]=y[0]+6;
              }
              g.fillPolygon(x,y,3);
       }

Member Data Documentation

Definition at line 540 of file IconBar.java.

Definition at line 541 of file IconBar.java.


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