org.grinvin.gui.icons

Class ChemicalIconFactory

Implemented Interfaces:
GraphIconFactory

public class ChemicalIconFactory
extends DefaultGraphIconFactory

Graph icon factory that uses ChemicalIcon for graphs with a small number of vertices.

Constructor Summary

ChemicalIconFactory()
Default constructor.

Method Summary

GraphIcon
createIcon(GraphBundleView bundle, int size)
protected GraphIcon
createIconForMediumGraph(GraphBundleView bundle, int size)
protected GraphIcon
createIconForSmallGraph(GraphBundleView bundle, int size)
protected Icon
getBackgroundIcon(int size)
Return the background icon for the large graph icon.
static GraphIconFactory
getInstance()
Return the sole instance of this class.
protected int
getVertexLimitFactor()

Methods inherited from class org.grinvin.gui.icons.DefaultGraphIconFactory

createIcon, createIconForLargeGraph, createIconForMissingGraph, createIconForSmallGraph, getBackgroundIcon, getInstance, getVertexLimitFactor, isHugeGraph, isSmallGraph

Constructor Details

ChemicalIconFactory

protected ChemicalIconFactory()
Default constructor. Can be overridden, but should not be called directly.

Method Details

createIcon

public GraphIcon createIcon(GraphBundleView bundle,
                            int size)
Specified by:
createIcon in interface GraphIconFactory
Overrides:
createIcon in interface DefaultGraphIconFactory

createIconForMediumGraph

protected GraphIcon createIconForMediumGraph(GraphBundleView bundle,
                                             int size)

createIconForSmallGraph

protected GraphIcon createIconForSmallGraph(GraphBundleView bundle,
                                            int size)
Overrides:
createIconForSmallGraph in interface DefaultGraphIconFactory

getBackgroundIcon

protected Icon getBackgroundIcon(int size)
Return the background icon for the large graph icon.
Overrides:
getBackgroundIcon in interface DefaultGraphIconFactory

getInstance

public static GraphIconFactory getInstance()
Return the sole instance of this class.
Overrides:
getInstance in interface DefaultGraphIconFactory

getVertexLimitFactor

protected int getVertexLimitFactor()
Overrides:
getVertexLimitFactor in interface DefaultGraphIconFactory