Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Static Public Attributes | Package Attributes
input Class Reference
Inheritance diagram for input:
Inheritance graph
Collaboration diagram for input:
Collaboration graph

List of all members.

Public Member Functions

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

Static Public Member Functions

static void main (String args[])

Static Public Attributes

static String prompt = "OK"
static String retry = "Erase"

Package Attributes

inp_panel panel
inp_controls controls
Image bg
Color bgcolor
String replystring
URL backurl

Detailed Description

Definition at line 25 of file

Member Function Documentation

void input.destroy ( ) [inline]

Definition at line 98 of file


Here is the caller graph for this function:

String input.getAppletInfo ( ) [inline]

Definition at line 120 of file

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

Definition at line 35 of file

       URL url;
       String parmstr;
       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;
           if(parmstr.compareTo("vec")==0) inp_panel.ctype=inp_panel.VEC;
           if(parmstr.compareTo("vector")==0) inp_panel.ctype=inp_panel.VEC;
       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;
       if(parmstr!=null && parmstr.length()>0) {
           if(bgcolor==null) bgcolor=Color.white;
       else bgcolor=Color.white;
       if(parmstr!=null && parmstr.length()>0) {
       else replystring="";
       if(parmstr!=null && parmstr.length()>0) {
       if(parmstr!=null && parmstr.length()>0) {
       setLayout(new BorderLayout());
       panel=new inp_panel(bgcolor,bg);
        controls=new inp_controls(panel,this);
       add("Center", panel);

Here is the caller graph for this function:

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

Definition at line 103 of file

       Frame f=new Frame("input");
       input input=new input();

       f.add("Center", input);;

Here is the call graph for this function:

void input.replyback ( ) [inline]

Definition at line 113 of file

       try {backurl=new URL(panel.points2string(replystring));}
       catch (MalformedURLException e) {backurl=null;}

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

URL input.backurl [package]

Definition at line 33 of file

Image [package]

Definition at line 28 of file

Color input.bgcolor [package]

Definition at line 29 of file

Definition at line 27 of file

Definition at line 26 of file

String input.prompt = "OK" [static]

Definition at line 31 of file

String input.replystring [package]

Definition at line 30 of file

String input.retry = "Erase" [static]

Definition at line 32 of file

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