Methods Summary |
---|
public java.lang.String | getAppletInfo()
return "ColorScribble v. 0.02. Written by David Flanagan.";
|
protected java.awt.Color | getColorParameter(java.lang.String name)
String value = this.getParameter(name);
try { return new Color(Integer.parseInt(value, 16)); }
catch (Exception e) { return null; }
|
public java.lang.String[][] | getParameterInfo() return info;
|
public void | init()
super.init();
Color foreground = getColorParameter("foreground");
Color background = getColorParameter("background");
if (foreground != null) this.setForeground(foreground);
if (background != null) this.setBackground(background);
|