jdraw.ui
Class Misc

java.lang.Object
  |
  +--jdraw.ui.Misc

public final class Misc
extends Object

A class for miscellaneous helper functions.


Constructor Summary
private Misc()
          This class is not intended to be instancied.
 
Method Summary
static Cursor buildCursor(String file_name, Point hot_spot, String accessible_name)
          Buils a cursor from the specified image.
static void centerWindow(Window window)
          Centers a window on the screen.
static void setLookAndFeel(Component component, String lf_class_name)
          Sets the specified look and feel for the specified component tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Misc

private Misc()
This class is not intended to be instancied.

Method Detail

buildCursor

public static Cursor buildCursor(String file_name,
                                 Point hot_spot,
                                 String accessible_name)
Buils a cursor from the specified image.

Parameters:
file_name - the image file name
hot_spot - the hot spot position
accessible_name - the accessible string

centerWindow

public static final void centerWindow(Window window)
Centers a window on the screen.


setLookAndFeel

public static void setLookAndFeel(Component component,
                                  String lf_class_name)
Sets the specified look and feel for the specified component tree.