org.grinvin.gui.icons

Class AnnotatedIconFactory

Implemented Interfaces:
GraphIconFactory

public class AnnotatedIconFactory
extends DefaultGraphIconFactory

Graph icon factory that uses a SmallGraphIcon with an AnnotatedRenderer for small graphs.

Constructor Summary

AnnotatedIconFactory()
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

AnnotatedIconFactory

protected AnnotatedIconFactory()
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