Back to index

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

This class can add several ToggleItems and will enable only one of them. More...

Collaboration diagram for rene.gui.IconGroup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IconGroup (IconBar bar, String files[], String breaks[])
 IconGroup (IconBar bar, String files[])
void init ()
 IconGroup (IconBar bar, String name, int n)
 IconGroup (IconBar bar, String name, Color colors[])
void addLeft ()
void addRight ()
void toggle (ToggleIcon icon)
void unselect ()
int getN ()
void unset (boolean flag)

Package Attributes

String Files []
String Breaks []
IconBar Bar
int N
ToggleIcon Icons []

Detailed Description

This class can add several ToggleItems and will enable only one of them.

Definition at line 666 of file IconBar.java.


Constructor & Destructor Documentation

rene.gui.IconGroup.IconGroup ( IconBar  bar,
String  files[],
String  breaks[] 
) [inline]

Definition at line 671 of file IconBar.java.

       {      Files=files; Breaks=breaks; Bar=bar;
              init();
       }

Here is the call graph for this function:

rene.gui.IconGroup.IconGroup ( IconBar  bar,
String  files[] 
) [inline]

Definition at line 675 of file IconBar.java.

       {      this(bar,files,files);
       }
rene.gui.IconGroup.IconGroup ( IconBar  bar,
String  name,
int  n 
) [inline]

Definition at line 690 of file IconBar.java.

       {      Breaks=Files=new String[n]; 
              for (int i=0; i<n; i++)
              {      Files[i]=name+i;
              }
              Bar=bar;
              init();
       }

Here is the call graph for this function:

rene.gui.IconGroup.IconGroup ( IconBar  bar,
String  name,
Color  colors[] 
) [inline]

Definition at line 698 of file IconBar.java.

       {      N=colors.length;
              Breaks=Files=new String[N];
              for (int i=0; i<N; i++)
              {      Files[i]=name+i;
              }
              Bar=bar;
              Icons=new ToggleIcon[N];
              for (int i=0; i<N; i++)
              {      Icons[i]=new ToggleIcon(Bar,Files[i],colors[i],this);
              }             
       }

Member Function Documentation

void rene.gui.IconGroup.addLeft ( ) [inline]

Definition at line 710 of file IconBar.java.

       {      int i=0;
              for (int k=0; k<Files.length; k++)
                     if (Files[k].equals("")) Bar.addSeparatorLeft();
                     else
                     {      if (Breaks[k].startsWith("!")) Bar.addSeparatorLeft();
                            Bar.addLeft(Icons[i++]);
                     }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.gui.IconGroup.addRight ( ) [inline]

Definition at line 719 of file IconBar.java.

       {      int i=0;
              for (int k=0; k<Files.length; k++)
                     if (Files[k].equals("")) Bar.addSeparatorRight();
                     else 
                     {      if (Breaks[k].startsWith("!")) Bar.addSeparatorRight();
                            Bar.addRight(Icons[i++]);
                     }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

int rene.gui.IconGroup.getN ( ) [inline]

Definition at line 739 of file IconBar.java.

{ return N; }

Here is the caller graph for this function:

void rene.gui.IconGroup.init ( ) [inline]

Definition at line 678 of file IconBar.java.

       {      N=0;
              for (int i=0; i<Files.length; i++)
                     if (!Files[i].equals("")) N++;
              Icons=new ToggleIcon[N];
              int k=0;
              for (int i=0; i<Files.length; i++)
              {      if (!Files[i].equals(""))
                     {      Icons[k++]=new ToggleIcon(Bar,Files[i],this);
                     }
              }             
       }

Here is the caller graph for this function:

void rene.gui.IconGroup.toggle ( ToggleIcon  icon) [inline]

Definition at line 728 of file IconBar.java.

       {      for (int i=0; i<N; i++)
              {      if (Icons[i]==icon) icon.setStateInGroup(true);
                     else Icons[i].setStateInGroup(false);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.gui.IconGroup.unselect ( ) [inline]

Definition at line 734 of file IconBar.java.

       {      for (int i=0; i<N; i++)
              {      Icons[i].setStateInGroup(false);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.gui.IconGroup.unset ( boolean  flag) [inline]

Definition at line 740 of file IconBar.java.

       {      for (int i=0; i<N; i++)
              {      Icons[i].dounset(flag);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 668 of file IconBar.java.

String rene.gui.IconGroup.Breaks[] [package]

Definition at line 667 of file IconBar.java.

String rene.gui.IconGroup.Files[] [package]

Definition at line 667 of file IconBar.java.

Definition at line 670 of file IconBar.java.

int rene.gui.IconGroup.N [package]

Definition at line 669 of file IconBar.java.


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