Package jadex.base.gui.modeltree
Class ModelIconCache
- java.lang.Object
- 
- jadex.base.gui.modeltree.ModelIconCache
 
- 
- All Implemented Interfaces:
- IIconCache
 
 public class ModelIconCache extends java.lang.Object implements IIconCache Cache for component icons. Asynchronously loads icons and updates tree.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IExternalAccessextaThe service provider.protected javax.swing.UIDefaultsiconsThe image icons.protected java.util.Map<java.lang.Object,javax.swing.Icon>myiconsThe icon cache.protected javax.swing.JTreetreeThe tree.
 - 
Constructor SummaryConstructors Constructor Description ModelIconCache(IExternalAccess exta, javax.swing.JTree tree)Create an icon cache.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<IResourceIdentifier>createResourceIdentifier(ISwingTreeNode node)Create a resource identifier.javax.swing.IcongetIcon(ISwingTreeNode node)Get an icon.protected voidrefresh(ISwingTreeNode node)
 
- 
- 
- 
Field Detail- 
iconsprotected final javax.swing.UIDefaults icons The image icons.
 - 
myiconsprotected final java.util.Map<java.lang.Object,javax.swing.Icon> myicons The icon cache.
 - 
extaprotected final IExternalAccess exta The service provider.
 - 
treeprotected final javax.swing.JTree tree The tree.
 
- 
 - 
Constructor Detail- 
ModelIconCachepublic ModelIconCache(IExternalAccess exta, javax.swing.JTree tree) Create an icon cache.
 
- 
 - 
Method Detail- 
getIconpublic javax.swing.Icon getIcon(ISwingTreeNode node) Get an icon.- Specified by:
- getIconin interface- IIconCache
- Parameters:
- node- The node.
- Returns:
- The icon.
 
 - 
refreshprotected void refresh(ISwingTreeNode node) 
 - 
createResourceIdentifierpublic IFuture<IResourceIdentifier> createResourceIdentifier(ISwingTreeNode node) Create a resource identifier.
 
- 
 
-