Back to index

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

List of all members.

Public Member Functions

void init ()
void actionPerformed (ActionEvent e)

Static Public Member Functions

static String name (String tag, String def)
static String name (String tag)
static void main (String args[])

Static Public Attributes

static final long Version = 110
static boolean IsApplet = false

Detailed Description

Definition at line 15 of file Zirkel.java.


Member Function Documentation

void rene.zirkel.Zirkel.actionPerformed ( ActionEvent  e) [inline]

Definition at line 133 of file Zirkel.java.

       {      ZirkelFrame F=new ZirkelFrame(true);
              F.setVisible(true);
       }
void rene.zirkel.Zirkel.init ( ) [inline]

Definition at line 25 of file Zirkel.java.

       {      String s=getParameter("Language");
              if (s!=null) Locale.setDefault(new Locale(s,""));
              Global.initBundle("rene/zirkel/docs/ZirkelProperties");
              setLayout(new BorderLayout());
              Button StartButton=new Button("Start");
              add("Center",StartButton);
              StartButton.addActionListener(this);
              IsApplet=true;
              if (getParameter("oldicons")!=null)
              {      Global.setParameter("iconpath","/rene/zirkel/icons/");
                     Global.setParameter("icontype","gif");
                     Global.setParameter("iconsize",20);
              }      
              else
              {      Global.setParameter("iconpath","/rene/zirkel/newicons/");
                     Global.setParameter("icontype","png");
                     if (getParameter("smallicons")!=null)
                            Global.setParameter("iconsize",24);
                     else Global.setParameter("iconsize",32);
              }
       }

Here is the call graph for this function:

static void rene.zirkel.Zirkel.main ( String  args[]) [inline, static]

Definition at line 49 of file Zirkel.java.

       {      int i=0;
              String filename="";
              boolean simple=false,restricted=false;
              String Home=null;
              if (Global.getJavaVersion()<1.4)
              {      Frame f=new Frame();
                     Warning w=new Warning(f,"Please update to Java 1.4!","Warning");
                     w.center();
                     w.setVisible(true);
                     System.exit(0);
              }
              while (i<args.length)
              {      if (args[i].startsWith("-l") && i<args.length-1)
                     {      Locale.setDefault(new Locale(args[i+1],""));
                            i+=2;
                     }
                     else if (args[i].startsWith("-h") && i<args.length-1)
                     {      Home=args[i+1];
                            i+=2;
                     }
                     else if (args[i].startsWith("-s"))
                     {      simple=true;
                            i++;
                     }
                     else if (args[i].startsWith("-r"))
                     {      restricted=true;
                            i++;
                     }
                     else if (args[i].startsWith("-d"))
                     {      Properties p=System.getProperties();
                            try
                            {      PrintStream out=new PrintStream(
                                          new FileOutputStream(p.getProperty("user.home")+
                                                 p.getProperty("file.separator")+"zirkel.log"));
                                   System.setErr(out);
                                   System.setOut(out);
                            }
                            catch (Exception e)
                            {      System.out.println("Could not open log file!");
                            }
                            i++;
                     }
                     else
                     {      filename=args[i];
                            i++;
                     }
              }
              if (new File(".zir.cfg").exists()) Global.loadProperties(".zir.cfg");
              else if (Home!=null) Global.loadProperties(Home,".zir.cfg");
              else Global.loadPropertiesInHome(".zir.cfg");
              Global.initBundle("rene/zirkel/docs/ZirkelProperties",true);
              if (simple) Global.setParameter("simplegraphics",simple); 
              if (restricted) Global.setParameter("restricted",true);
              if (!Global.getParameter("program.version","").equals(
                     Zirkel.name("program.version")))
              {      Global.setParameter("program.newversion",true);
                     Global.setParameter("program.version",Zirkel.name("program.version"));
                     Global.setParameter("icons",ZirkelFrame.DefaultIcons);
              }
              if (simple || Global.getParameter("options.oldicons",false))
              {      Global.setParameter("iconpath","/rene/zirkel/icons/");
                     Global.setParameter("icontype","gif");
                     Global.setParameter("iconsize",20);
              }      
              else
              {      Global.setParameter("iconpath","/rene/zirkel/newicons/");
                     Global.setParameter("icontype","png");
                     if (Global.getParameter("options.smallicons",false))
                            Global.setParameter("iconsize",24);
                     else Global.setParameter("iconsize",32);
              }
              Help.CodePage=Global.name("codepage.help","");
              ZirkelFrame f=new ZirkelFrame(false);
              if (!filename.equals(""))
              {      f.load(filename);
              }
              if (!Global.haveParameter("options.germanpoints") && 
                            Locale.getDefault().getLanguage().equals("de"))
                     Global.setParameter("options.germanpoints",true);
                     
       }

Here is the call graph for this function:

static String rene.zirkel.Zirkel.name ( String  tag,
String  def 
) [inline, static]

Definition at line 19 of file Zirkel.java.

       {      return Global.name(tag,def);
       }

Here is the call graph for this function:

static String rene.zirkel.Zirkel.name ( String  tag) [inline, static]

Definition at line 22 of file Zirkel.java.

       {      return Global.name(tag);
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 18 of file Zirkel.java.

final long rene.zirkel.Zirkel.Version = 110 [static]

Definition at line 17 of file Zirkel.java.


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