Back to index

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

List of all members.

Public Member Functions

void init ()
void destroy ()
String getAppletInfo ()

Static Public Member Functions

static void main (String args[])

Package Attributes

inp_panel panel
inp_controls controls
Image bg
Color bgcolor
URL backurl

Detailed Description

Definition at line 29 of file noninput.java.


Member Function Documentation

void noninput.destroy ( ) [inline]

Definition at line 95 of file noninput.java.

                          {
        remove(panel);
        /*remove(controls);*/
    }
String noninput.getAppletInfo ( ) [inline]

Definition at line 110 of file noninput.java.

                                  {
        return "Curve input program for WIMS.";
    }
void noninput.init ( ) [inline]

Definition at line 39 of file noninput.java.

                       {
       URL url;
       String parmstr;
       parmstr=getParameter("type");
       if(parmstr!=null && parmstr.length()>0) {
           parmstr.toLowerCase(); parmstr.trim();
           if(parmstr.compareTo("curve")==0) inp_panel.ctype=inp_panel.CURVE;
           if(parmstr.compareTo("rectangle")==0) inp_panel.ctype=inp_panel.RECT;
           if(parmstr.compareTo("rect")==0) inp_panel.ctype=inp_panel.RECT;
           if(parmstr.compareTo("circle")==0) inp_panel.ctype=inp_panel.CIRCLE;
           if(parmstr.compareTo("lines")==0) inp_panel.ctype=inp_panel.LINES;
           if(parmstr.compareTo("segments")==0) inp_panel.ctype=inp_panel.LINES;
           if(parmstr.compareTo("line")==0) inp_panel.ctype=inp_panel.LINE;
           if(parmstr.compareTo("sline")==0) inp_panel.ctype=inp_panel.SLINE;
           if(parmstr.compareTo("semiline")==0) inp_panel.ctype=inp_panel.SLINE;
           if(parmstr.compareTo("seg")==0) inp_panel.ctype=inp_panel.SEG;
           if(parmstr.compareTo("segment")==0) inp_panel.ctype=inp_panel.SEG;
           if(parmstr.compareTo("poly")==0) inp_panel.ctype=inp_panel.POLY;
           if(parmstr.compareTo("polygon")==0) inp_panel.ctype=inp_panel.POLY;
           if(parmstr.compareTo("points")==0) inp_panel.ctype=inp_panel.POINTS;
       }
       
       parmstr=getParameter("background");
       if (parmstr!=null && parmstr.length()>0) {
           try {url=new URL(parmstr);}
           catch (MalformedURLException e) {url=null;}
           if(url!=null) bg=getImage(url);
           else bg=null;
       }
       else bg=null;
       
       parmstr=getParameter("bgcolor");
       if(parmstr!=null && parmstr.length()>0) {
           bgcolor=Color.decode(parmstr);
           if(bgcolor==null) bgcolor=Color.white;
       }
       else bgcolor=Color.white;
       
       
/*     parmstr=getParameter("retry");
       if(parmstr!=null && parmstr.length()>0) {
           retry=parmstr;
       }*/
       
/*     parmstr=getParameter("prompt");
       if(parmstr!=null && parmstr.length()>0) {
           prompt=parmstr;
       }*/
       
       setLayout(new BorderLayout());
       panel=new inp_panel(bgcolor,bg);
        controls=new inp_controls(panel,this);
       add("Center", panel);
       /*add("South",controls);*/
    }

Here is the caller graph for this function:

static void noninput.main ( String  args[]) [inline, static]

Definition at line 100 of file noninput.java.

                                           {
       Frame f=new Frame("input");
       noninput noninput=new noninput();
       noninput.init();
       noninput.start();

       f.add("Center", noninput);
       f.show();
    }

Here is the call graph for this function:


Member Data Documentation

URL noninput.backurl [package]

Definition at line 37 of file noninput.java.

Image noninput.bg [package]

Definition at line 32 of file noninput.java.

Color noninput.bgcolor [package]

Definition at line 33 of file noninput.java.

Definition at line 31 of file noninput.java.

Definition at line 30 of file noninput.java.


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