org.grinvin.gui.icons

Interface GraphIconFactory

Known Implementing Classes:
AnnotatedIconFactory, ChemicalIconFactory, DefaultGraphIconFactory, EdgesOnlyIconFactory, MissingGraphIconFactory

public interface GraphIconFactory

An object of this class can return a GraphIcon for a given graph at a given size. Graph icon factories are singleton objects which can be referred to by a graph bundle to indicate the preferred way for them to be displayed.

To be useful, every implementation of this class must export a class method withthe following signature

     public static GraphIconFactory getInstance ();
 
which returns the singleton object of its class. The system will call this method using the reflection mechanism.

Method Summary

GraphIcon
createIcon(GraphBundleView graphBundle, int size)

Method Details

createIcon

public GraphIcon createIcon(GraphBundleView graphBundle,
                            int size)