|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.PingOO.DLAI.lib.util.Manager
|
+--org.PingOO.DLAI.lib.util.CursorManager
Manages the cursors for the DLAI
| Field Summary | |
private static java.lang.String |
DEFAULT_MODULE
The default module for cursors. |
private static java.util.Hashtable |
HOTSPOT_TABLE
Contains the cursors, indexed by modules, identifiers and hotspots. |
private static java.util.Hashtable |
ICON_TABLE
Contains the icons used to create the cursors indexed by modules and identifiers. |
| Fields inherited from class org.PingOO.DLAI.lib.util.Manager |
classLoader |
| Constructor Summary | |
private |
CursorManager()
Hides the constructor from the outside. |
| Method Summary | |
static void |
clearCache()
Clears the cache used in this manager. |
private static java.util.Hashtable |
getCache(java.lang.String module,
java.util.Hashtable parentTable)
Return the correct cache. |
private static java.util.Hashtable |
getCache(java.lang.String module,
java.lang.String identifier,
java.util.Hashtable parentTable)
Return the correct cache. |
static java.awt.Cursor |
getCursor(javax.swing.Icon icon)
Returns the cursor of the icon. |
static java.awt.Cursor |
getCursor(javax.swing.Icon icon,
java.awt.Point hotSpot)
Returns the cursor of the icon. |
static java.awt.Cursor |
getCursor(java.lang.String identifier)
Returns an cursor from the default set. |
static java.awt.Cursor |
getCursor(java.lang.String module,
java.lang.String identifier)
Returns an icon from a different set. |
static java.awt.Cursor |
getCursor(java.lang.String module,
java.lang.String identifier,
java.awt.Point hotSpot)
Returns an icon from a different set. |
private static void |
initialize()
Initializes caches. |
| Methods inherited from class org.PingOO.DLAI.lib.util.Manager |
findFile,
findFile,
findFile,
findFile |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static java.util.Hashtable ICON_TABLE
private static java.util.Hashtable HOTSPOT_TABLE
private static final java.lang.String DEFAULT_MODULE
| Constructor Detail |
private CursorManager()
| Method Detail |
private static final void initialize()
private static final java.util.Hashtable getCache(java.lang.String module,
java.util.Hashtable parentTable)
module - The module to use.parentTable - The parent cache of the desired cache.
private static final java.util.Hashtable getCache(java.lang.String module,
java.lang.String identifier,
java.util.Hashtable parentTable)
module - The module to use.identifier - the cursor identifier.parentTable - The parent cache of the desired cache.public static void clearCache()
public static final java.awt.Cursor getCursor(java.lang.String identifier)
identifier - The identifier need to get the icon from its file. You do not need to provide the .gif extension.null if the file was not found.public static final java.awt.Cursor getCursor(javax.swing.Icon icon)
null if the icon has no image.
public static final java.awt.Cursor getCursor(javax.swing.Icon icon,
java.awt.Point hotSpot)
null if the icon has no image.
public static final java.awt.Cursor getCursor(java.lang.String module,
java.lang.String identifier)
module - The appli's name.identifier - The identifier need to get the icon from its file. You do not need to provide the .gif extension.
public static final java.awt.Cursor getCursor(java.lang.String module,
java.lang.String identifier,
java.awt.Point hotSpot)
module - The appli's name.identifier - The identifier need to get the icon from its file. You do not need to provide the .gif extension.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||