|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--acm.util.JTFTools
public class JTFTools extends ObjectThis class provides a small collection of static utility methods that are used elsewhere in the ACM packages.
| Constructor Summary |
| JTFTools() |
| Method Summary | |
| Container | createEmptyContainer() |
| Color | decodeColor(String name) |
| Font | decodeFont(String str) |
| Font | decodeFont(String str,
Font oldFont) |
| Applet | getApplet() |
| Frame | getEnclosingFrame(Component comp) |
| Font | getStandardFont(Font font) |
| boolean | isAnonymous(Thread t) |
| void | pause(double milliseconds) |
| void | registerApplet(Applet applet) |
| void | registerApplet(Applet applet,
Thread thread) |
| void | terminateAppletThreads(Applet applet) |
| Constructor Detail |
public JTFTools()| Method Detail |
public static Container createEmptyContainer()| Usage: | Container comp = JTFTools.createEmptyContainer(); |
| Returns: | An empty lightweight container that can be used as a placeholder |
public static Color decodeColor(String name)| Usage: | color = JTFTools.decodeColor(name); | ||
| Parameter: |
| ||
| Returns: | The color corresponding to the specified name |
public static Font decodeFont(String str)| Usage: | Font font = JTFTools.decodeFont(str); | ||
| Parameter: |
| ||
| Returns: | The new font |
public static Font decodeFont(String str,
Font oldFont)| Usage: | Font font = JTFTools.decodeFont(str, oldFont); | ||||
| Parameters: |
| ||||
| Returns: | The new font |
public static Applet getApplet()| Usage: | Applet applet JTFTools.getApplet(); |
| Returns: | The currently running applet |
public static Frame getEnclosingFrame(Component comp)| Usage: | Frame frame = JTFTools.getEnclosingFrame(comp); | ||
| Parameter: |
| ||
| Returns: | The nearest enclosing Frame object |
public static Font getStandardFont(Font font)| Usage: | Font newFont = JTFTools.getStandardFont(font); | ||
| Parameter: |
| ||
| Returns: | The new font |
public static boolean isAnonymous(Thread t)| Usage: | if (JTFTools.isAnonymous(t)) . . . | ||
| Parameter: |
|
public static void pause(double milliseconds)| Usage: | JTFTools.pause(milliseconds); | ||
| Parameter: |
|
public static void registerApplet(Applet applet)| Usage: | JTFTools.registerApplet(applet); | ||
| Parameter: |
|
public static void registerApplet(Applet applet,
Thread thread)| Usage: | JTFTools.registerApplet(applet); | ||||
| Parameters: |
|
public static void terminateAppletThreads(Applet applet)| Usage: | JTFTools.terminateAppletThreads(applet); | ||
| Parameter: |
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||