org.argouml.application.helpers
Class ResourceLoaderWrapper

java.lang.Object
  extended byorg.argouml.application.helpers.ResourceLoaderWrapper

public final class ResourceLoaderWrapper
extends java.lang.Object

Wrapper around org.tigris.gef.util.ResourceLoader. Necessary since ArgoUML needs some extra init

Since:
Nov 24, 2002

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
           
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
 boolean isInCache(java.lang.String resource)
          Wrapped method
 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

_ActionStateIcon

protected static javax.swing.ImageIcon _ActionStateIcon

_StateIcon

protected static javax.swing.ImageIcon _StateIcon

_InitialStateIcon

protected static javax.swing.ImageIcon _InitialStateIcon

_DeepIcon

protected static javax.swing.ImageIcon _DeepIcon

_ShallowIcon

protected static javax.swing.ImageIcon _ShallowIcon

_ForkIcon

protected static javax.swing.ImageIcon _ForkIcon

_JoinIcon

protected static javax.swing.ImageIcon _JoinIcon

_BranchIcon

protected static javax.swing.ImageIcon _BranchIcon

_FinalStateIcon

protected static javax.swing.ImageIcon _FinalStateIcon

_RealizeIcon

protected static javax.swing.ImageIcon _RealizeIcon

_SignalIcon

protected static javax.swing.ImageIcon _SignalIcon

_CommentIcon

protected static javax.swing.ImageIcon _CommentIcon

_iconCache

protected java.util.Hashtable _iconCache
Constructor Detail

ResourceLoaderWrapper

public ResourceLoaderWrapper()
Constructor for ResourceLoaderWrapper.

Method Detail

getResourceLoaderWrapper

public static ResourceLoaderWrapper getResourceLoaderWrapper()
Returns the singleton instance

Returns:
ResourceLoaderWrapper

addResourceExtension

public void addResourceExtension(java.lang.String extension)
Wrapped method

Parameters:
extension -

addResourceLocation

public void addResourceLocation(java.lang.String location)
Wrapped method

Parameters:
location -

containsExtension

public boolean containsExtension(java.lang.String extension)
Wrapped method

Parameters:
extension -
Returns:
boolean

containsLocation

public boolean containsLocation(java.lang.String location)
Wrapped method

Parameters:
location -
Returns:
boolean

isInCache

public boolean isInCache(java.lang.String resource)
Wrapped method

Parameters:
resource -
Returns:
boolean

lookupIconResource

public javax.swing.ImageIcon lookupIconResource(java.lang.String resource)
Wrapped method

Parameters:
resource -
Returns:
ImageIcon

lookupIconResource

public javax.swing.ImageIcon lookupIconResource(java.lang.String resource,
                                                java.lang.ClassLoader loader)
Wrapped method

Parameters:
resource -
loader -
Returns:
ImageIcon

lookupIconResource

public javax.swing.ImageIcon lookupIconResource(java.lang.String resource,
                                                java.lang.String desc)
Wrapped method

Parameters:
resource -
desc -
Returns:
ImageIcon

lookupIconResource

public javax.swing.ImageIcon lookupIconResource(java.lang.String resource,
                                                java.lang.String desc,
                                                java.lang.ClassLoader loader)
Wrapped method

Parameters:
resource -
desc -
loader -
Returns:
ImageIcon

removeResourceExtension

public void removeResourceExtension(java.lang.String extension)
Wrapped method

Parameters:
extension -

removeResourceLocation

public void removeResourceLocation(java.lang.String location)
Wrapped method

Parameters:
location -

lookupIcon

public javax.swing.Icon lookupIcon(java.lang.Object value)


ArgoUML © 1996-2003 (20030829)ArgoUML Project HomeArgoUML Cookbook