Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.grinvin.gui.icons.DefaultGraphIconFactory
org.grinvin.gui.icons.ChemicalIconFactory
public class ChemicalIconFactory
extends DefaultGraphIconFactory
ChemicalIcon
for graphs with
a small number of vertices.
Constructor Summary | |
|
Method Summary | |
GraphIcon |
|
protected GraphIcon |
|
protected GraphIcon |
|
protected Icon |
|
static GraphIconFactory |
|
protected int |
|
Methods inherited from class org.grinvin.gui.icons.DefaultGraphIconFactory | |
createIcon , createIconForLargeGraph , createIconForMissingGraph , createIconForSmallGraph , getBackgroundIcon , getInstance , getVertexLimitFactor , isHugeGraph , isSmallGraph |
protected ChemicalIconFactory()
Default constructor. Can be overridden, but should not be called directly.
- See Also:
getInstance()
public GraphIcon createIcon(GraphBundleView bundle, int size)
- Specified by:
- createIcon in interface GraphIconFactory
- Overrides:
- createIcon in interface DefaultGraphIconFactory
protected GraphIcon createIconForMediumGraph(GraphBundleView bundle, int size)
protected GraphIcon createIconForSmallGraph(GraphBundleView bundle, int size)
Create an icon for a 'small' graph.
- Overrides:
- createIconForSmallGraph in interface DefaultGraphIconFactory
protected Icon getBackgroundIcon(int size)
Return the background icon for the large graph icon.
- Overrides:
- getBackgroundIcon in interface DefaultGraphIconFactory
public static GraphIconFactory getInstance()
Return the sole instance of this class.
- Overrides:
- getInstance in interface DefaultGraphIconFactory
protected int getVertexLimitFactor()
Return the vertex limit factor used to determine whether a graph should be classified as 'small' or 'large'.
- Overrides:
- getVertexLimitFactor in interface DefaultGraphIconFactory