|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.application.helpers.ResourceLoaderWrapper
Wrapper around org.tigris.gef.util.ResourceLoader. Necessary since ArgoUML needs some extra init
Field Summary | |
---|---|
protected static javax.swing.ImageIcon |
_ActionStateIcon
|
protected static javax.swing.ImageIcon |
_BranchIcon
|
protected static javax.swing.ImageIcon |
_CommentIcon
|
protected static javax.swing.ImageIcon |
_DeepIcon
|
protected static javax.swing.ImageIcon |
_FinalStateIcon
|
protected static javax.swing.ImageIcon |
_ForkIcon
|
protected java.util.Hashtable |
_iconCache
|
protected static javax.swing.ImageIcon |
_InitialStateIcon
|
private static ResourceLoaderWrapper |
_instance
Singleton implementation |
protected static javax.swing.ImageIcon |
_JoinIcon
|
protected static javax.swing.ImageIcon |
_RealizeIcon
|
protected static javax.swing.ImageIcon |
_ShallowIcon
|
protected static javax.swing.ImageIcon |
_SignalIcon
|
protected static javax.swing.ImageIcon |
_StateIcon
|
Constructor Summary | |
---|---|
ResourceLoaderWrapper()
Constructor for ResourceLoaderWrapper. |
Method Summary | |
---|---|
void |
addResourceExtension(java.lang.String extension)
Wrapped method |
void |
addResourceLocation(java.lang.String location)
Wrapped method |
boolean |
containsExtension(java.lang.String extension)
Wrapped method |
boolean |
containsLocation(java.lang.String location)
Wrapped method |
static ResourceLoaderWrapper |
getResourceLoaderWrapper()
Returns the singleton instance |
private static void |
initResourceLoader()
Initializes the resourceloader. |
boolean |
isInCache(java.lang.String resource)
Wrapped method |
private static java.lang.String |
lookAndFeelPath(java.lang.String classname,
java.lang.String element)
Calculate the path to a look and feel object. |
javax.swing.Icon |
lookupIcon(java.lang.Object value)
|
javax.swing.ImageIcon |
lookupIconResource(java.lang.String resource)
Wrapped method |
javax.swing.ImageIcon |
lookupIconResource(java.lang.String resource,
java.lang.ClassLoader loader)
Wrapped method |
javax.swing.ImageIcon |
lookupIconResource(java.lang.String resource,
java.lang.String desc)
Wrapped method |
javax.swing.ImageIcon |
lookupIconResource(java.lang.String resource,
java.lang.String desc,
java.lang.ClassLoader loader)
Wrapped method |
void |
removeResourceExtension(java.lang.String extension)
Wrapped method |
void |
removeResourceLocation(java.lang.String location)
Wrapped method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static javax.swing.ImageIcon _ActionStateIcon
protected static javax.swing.ImageIcon _StateIcon
protected static javax.swing.ImageIcon _InitialStateIcon
protected static javax.swing.ImageIcon _DeepIcon
protected static javax.swing.ImageIcon _ShallowIcon
protected static javax.swing.ImageIcon _ForkIcon
protected static javax.swing.ImageIcon _JoinIcon
protected static javax.swing.ImageIcon _BranchIcon
protected static javax.swing.ImageIcon _FinalStateIcon
protected static javax.swing.ImageIcon _RealizeIcon
protected static javax.swing.ImageIcon _SignalIcon
protected static javax.swing.ImageIcon _CommentIcon
protected java.util.Hashtable _iconCache
private static ResourceLoaderWrapper _instance
Constructor Detail |
public ResourceLoaderWrapper()
Method Detail |
public static ResourceLoaderWrapper getResourceLoaderWrapper()
private static java.lang.String lookAndFeelPath(java.lang.String classname, java.lang.String element)
classname
- The look and feel classnameelement
- The en part of the path.
private static void initResourceLoader()
public void addResourceExtension(java.lang.String extension)
extension
- public void addResourceLocation(java.lang.String location)
location
- public boolean containsExtension(java.lang.String extension)
extension
-
public boolean containsLocation(java.lang.String location)
location
-
public boolean isInCache(java.lang.String resource)
resource
-
public javax.swing.ImageIcon lookupIconResource(java.lang.String resource)
resource
-
public javax.swing.ImageIcon lookupIconResource(java.lang.String resource, java.lang.ClassLoader loader)
resource
- loader
-
public javax.swing.ImageIcon lookupIconResource(java.lang.String resource, java.lang.String desc)
resource
- desc
-
public javax.swing.ImageIcon lookupIconResource(java.lang.String resource, java.lang.String desc, java.lang.ClassLoader loader)
resource
- desc
- loader
-
public void removeResourceExtension(java.lang.String extension)
extension
- public void removeResourceLocation(java.lang.String location)
location
- public javax.swing.Icon lookupIcon(java.lang.Object value)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |