|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.application.helpers.ResourceLoaderWrapper
Wrapper around org.tigris.gef.util.ResourceLoader.
Necessary since ArgoUML needs some extra init.
Field Summary | |
private static ImageIcon |
actionStateIcon
|
private static ImageIcon |
branchIcon
|
private static ImageIcon |
callStateIcon
|
private static ImageIcon |
commentIcon
|
private static ImageIcon |
deepIcon
|
private static ImageIcon |
finalStateIcon
|
private static ImageIcon |
forkIcon
|
private Hashtable |
iconCache
|
private static ImageIcon |
initialStateIcon
|
private static ResourceLoaderWrapper |
instance
Singleton implementation. |
private static ImageIcon |
joinIcon
|
private static ImageIcon |
junctionIcon
|
private static Logger |
LOG
Logger. |
private static ImageIcon |
objectFlowStateIcon
|
private static ImageIcon |
realizeIcon
|
private static ImageIcon |
shallowIcon
|
private static ImageIcon |
signalIcon
|
private static ImageIcon |
stateIcon
|
private static ImageIcon |
subactivityStateIcon
|
Constructor Summary | |
private |
ResourceLoaderWrapper()
Constructor for ResourceLoaderWrapper. |
Method Summary | |
static void |
addResourceExtension(String extension)
|
static void |
addResourceLocation(String location)
|
static boolean |
containsExtension(String extension)
|
static boolean |
containsLocation(String location)
|
static ResourceLoaderWrapper |
getInstance()
Returns the singleton instance. |
private static void |
initResourceLoader()
Initializes the resourceloader. |
static boolean |
isInCache(String resource)
|
private static String |
lookAndFeelPath(String classname,
String element)
Calculate the path to a look and feel object. |
Icon |
lookupIcon(Object value)
Find the Icon for a given model element. |
static ImageIcon |
lookupIconResource(String resource)
|
static ImageIcon |
lookupIconResource(String resource,
ClassLoader loader)
|
static ImageIcon |
lookupIconResource(String resource,
String desc)
|
static ImageIcon |
lookupIconResource(String resource,
String desc,
ClassLoader loader)
|
static void |
removeResourceExtension(String extension)
|
static void |
removeResourceLocation(String location)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private static ImageIcon actionStateIcon
private static ImageIcon stateIcon
private static ImageIcon initialStateIcon
private static ImageIcon deepIcon
private static ImageIcon shallowIcon
private static ImageIcon forkIcon
private static ImageIcon joinIcon
private static ImageIcon branchIcon
private static ImageIcon junctionIcon
private static ImageIcon finalStateIcon
private static ImageIcon realizeIcon
private static ImageIcon signalIcon
private static ImageIcon commentIcon
private static ImageIcon callStateIcon
private static ImageIcon objectFlowStateIcon
private static ImageIcon subactivityStateIcon
private Hashtable iconCache
private static ResourceLoaderWrapper instance
Constructor Detail |
private ResourceLoaderWrapper()
Method Detail |
public static ResourceLoaderWrapper getInstance()
private static String lookAndFeelPath(String classname, String element)
classname
- The look and feel classnameelement
- The en part of the path.
private static void initResourceLoader()
public static void addResourceExtension(String extension)
ResourceLoader.addResourceExtension(String)
public static void addResourceLocation(String location)
ResourceLoader.addResourceLocation(String)
public static boolean containsExtension(String extension)
ResourceLoader.containsExtension(String)
public static boolean containsLocation(String location)
ResourceLoader.containsLocation(String)
public static boolean isInCache(String resource)
ResourceLoader.isInCache(String)
public static ImageIcon lookupIconResource(String resource)
ResourceLoader.lookupIconResource(String)
public static ImageIcon lookupIconResource(String resource, ClassLoader loader)
ResourceLoader.lookupIconResource(String, ClassLoader)
public static ImageIcon lookupIconResource(String resource, String desc)
ResourceLoader.lookupIconResource(String, String)
public static ImageIcon lookupIconResource(String resource, String desc, ClassLoader loader)
ResourceLoader.lookupIconResource(String, String, ClassLoader)
public static void removeResourceExtension(String extension)
ResourceLoader.removeResourceExtension(String)
public static void removeResourceLocation(String location)
ResourceLoader.removeResourceLocation(String)
public Icon lookupIcon(Object value)
value
- The model element.
TODO: This should not use string matching on classnames to do this
since this means that we have knowledge about how the model
elements are implemented outside of the Model component.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |