org.grinvin.gui.icons

Class EdgesOnlyIconFactory

Implemented Interfaces:
GraphIconFactory

public class EdgesOnlyIconFactory
extends DefaultGraphIconFactory

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

Constructor Summary

EdgesOnlyIconFactory()
Default constructor.

Method Summary

protected GraphIcon
createIconForSmallGraph(GraphBundleView bundle, int size)
Create an icon for a 'small' graph.
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()
Return the vertex limit factor used to determine whether a graph should be classified as 'small' or 'large'.

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

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

Constructor Details

EdgesOnlyIconFactory

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

Method Details

createIconForSmallGraph

protected GraphIcon createIconForSmallGraph(GraphBundleView bundle,
                                            int size)
Create an icon for a 'small' graph.
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()
Return the vertex limit factor used to determine whether a graph should be classified as 'small' or 'large'.
Overrides:
getVertexLimitFactor in interface DefaultGraphIconFactory