API to match "Graphics Programming in Icon" and/or UTR5
public class Unicon2DWindow {
// public Unicon-level stuff
boolean open(String...); // opens a visible window
// takes initial attributes
// such as window size, e.g.
// "height=700"
void close();
String write(String...); // writes w/ current font
// appends newline
String writes(String...); // writes w/out newline
// once written, stays written
// in font used at the time
UniconEvent Event(); // returns key or mouseclick
// sets some public variables
// "current" attributes applied to subsequent drawing, not previous drawing
String Fg(); // gets foreground color
String Fg(String); // sets foreground color
String Bg(); // gets background color
String Bg(String); // sets background color
String Font(); // gets font
String Font(String); // sets font
void DrawPoint(int, int); // set pixel
void DrawLine(int, int, int, int); // draws line
void DrawRectangle(int, int, int, int);// draws rectangle
void DrawCircle(int, int, int, int, int);// draws circle
void DrawPolygon(int[]); // Scott's version
void DrawPolygon(int...); // variable # of args
void FillPolygon(int[]); // Scott's version
void FillPolygon(int...); // variable # of arguments
UniconList Pending();
String WAttrib(String...); // variable # of arguments
// private UTR5 stuff
colorPhrase(s); // used internally by Fg/Bg/WAttrib
}