Back to index

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

List of all members.

Public Member Functions

 LogoWindow (ZirkelFrame zf)
void loadLogo ()
void paint (Graphics g)
void run ()

Package Attributes

ZirkelFrame ZF
Image I

Detailed Description

Definition at line 21 of file LogoWindow.java.


Constructor & Destructor Documentation

Definition at line 25 of file LogoWindow.java.

{      super(zf);
       setSize(400,300);
       Dimension d=getSize();
       String name="zirkelframe";
       int x=Global.getParameter(name+".x",100);
       int y=Global.getParameter(name+".y",100);
       int w=Global.getParameter(name+".w",600);
       int h=Global.getParameter(name+".h",600);
       setLocation(x+w/2-d.width/2,y+h/2-d.height/2);
       loadLogo();
       setVisible(true);
       new Thread(this).start();
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 42 of file LogoWindow.java.

{      try
       {      InputStream in=getClass().getResourceAsStream("/rene/zirkel/logowindow.gif");
              int pos=0;
              int n=in.available();
              byte b[]=new byte[200000];
              while (n>0)
              {      int k=in.read(b,pos,n);
                     if (k<0) break;
                     pos+=k;
                     n=in.available();
              }
              in.close();
              I=Toolkit.getDefaultToolkit().createImage(b,0,pos);
              MediaTracker T=new MediaTracker(this);
              T.addImage(I,0);
              T.waitForAll();
       }
       catch (Exception e)
       {      setVisible(false);
              I=null;
       }
}

Here is the caller graph for this function:

void rene.zirkel.LogoWindow.paint ( Graphics  g) [inline]

Definition at line 66 of file LogoWindow.java.

{      if (I==null) return; 
       g.drawImage(I,0,0,this);
       Graphics2D G=(Graphics2D)g;
       G.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
              RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
       g.setFont(new Font("Dialog",Font.BOLD,14));
       String s=Zirkel.name("version")+" "+Zirkel.name("program.version");
       g.setColor(Color.black);
       g.drawString(s,45,270);
}

Here is the call graph for this function:

void rene.zirkel.LogoWindow.run ( ) [inline]

Definition at line 78 of file LogoWindow.java.

{      try
       {      Thread.sleep(5000);
       } catch(Exception e){}
       setVisible(false);
       dispose();
}

Member Data Documentation

Image rene.zirkel.LogoWindow.I [package]

Definition at line 40 of file LogoWindow.java.

Definition at line 23 of file LogoWindow.java.


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