|
|||||||||||
| 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 |
branchIcon
|
private static ImageIcon |
commentIcon
|
private static ImageIcon |
deepIcon
|
private static ImageIcon |
forkIcon
|
private Hashtable |
iconCache
|
private static Map |
images
Map to convert tokens into file names. |
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 |
realizeIcon
|
private static ImageIcon |
shallowIcon
|
private static ImageIcon |
signalIcon
|
| Constructor Summary | |
private |
ResourceLoaderWrapper()
Constructor for ResourceLoaderWrapper. |
| Method Summary | |
static String |
getImageBinding(String name)
Convert the key to the image file name. |
static ResourceLoaderWrapper |
getInstance()
Returns the singleton instance. |
private static void |
initResourceLoader()
Initializes the resourceloader. |
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 Icon |
lookupIcon(String key)
Look up the Icon for a key. |
static ImageIcon |
lookupIconResource(String resource)
Find the correct icon for a key. |
static ImageIcon |
lookupIconResource(String resource,
String desc)
Find the correct icon for a key. |
| 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 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 realizeIcon
private static ImageIcon signalIcon
private static ImageIcon commentIcon
private Hashtable iconCache
private static ResourceLoaderWrapper instance
private static Map images
| 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 ImageIcon lookupIconResource(String resource)
resource - The name of the resource to look up.
public static ImageIcon lookupIconResource(String resource,
String desc)
resource - The name of the resource to look up.desc - The description for the icon.
public static Icon lookupIcon(String key)
key - The key to find.
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.
null if there is no Icon.public static String getImageBinding(String name)
name - the new i18n key
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2005 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |