/* Begin public methods for getting and setting data via LiveConnect */ public void setTimeZone(String zone) { stop(); timeZone = (zone.startsWith("GMT")) ? true : false; start(); } public void setFont(String newFont, String newStyle, String newSize) { stop(); if (newFont != null && newFont != "") fontName = newFont; if (newStyle != null && newStyle != "") setFontStyle(newStyle); if (newSize != null && newSize != "") setFontSize(newSize); displayFont = new Font(fontName, fontStyle, fontSize); start(); } public void setColor(String newbgColor, String newfgColor) { stop(); bgColor = parseColor(newbgColor); fgColor = parseColor(newfgColor); start(); } public String getInfo() { String result = "Info about ScriptableClock.class\r\n"; result += "Version/Date: 1.0d1/2 May 1996\r\n"; result += "Author: Danny Goodman (dannyg@dannyg.com)\r\n"; result += "Public Variables:\r\n"; result += " (None)\r\n\r\n"; result += "Public Methods:\r\n"; result += " setTimeZone(\"GMT\" | \"Locale\")\r\n"; result += " setFont(\"fontName\",\"Plain\" |\"Bold\" | \"Italic\", \"fontSize\")\r\n"; result += " setColor(\"bgColorName\", \"fgColorName\")\r\n"; result += " colors: Black, White, Red, Green, Blue, Yellow\r\n"; return result; } /* End public methods for scripted access. */