org.grinvin.gui.components.render

Class GraphFactoryCellRenderer


public class GraphFactoryCellRenderer
extends AbstractGrinvinCellListCellRenderer

Renderer to render GraphFactory objects in a be.ugent.caagt.swirl.lists.CellList.

Method Summary

SelectUnselectIcon
createIcon(Object value, int size)
protected String
getDescription(Object value)
protected Color
getIconBackgroundColor(Object value)
Returns the standard icon background color for graph factories.
static GraphFactoryCellRenderer
getInstance()
Return the singleton instance of this type.
protected String
getName(Object value)

Methods inherited from class org.grinvin.gui.components.render.AbstractGrinvinCellListCellRenderer

String getToolTipText, createIcon, getDescription, getIcon, getIconBackgroundColor, getName, void prepare

Method Details

createIcon

public SelectUnselectIcon createIcon(Object value,
                                     int size)
Overrides:
createIcon in interface AbstractGrinvinCellListCellRenderer

getDescription

protected String getDescription(Object value)
Overrides:
getDescription in interface AbstractGrinvinCellListCellRenderer

getIconBackgroundColor

protected Color getIconBackgroundColor(Object value)
Returns the standard icon background color for graph factories.
Overrides:
getIconBackgroundColor in interface AbstractGrinvinCellListCellRenderer

getInstance

public static GraphFactoryCellRenderer getInstance()
Return the singleton instance of this type.

getName

protected String getName(Object value)
Overrides:
getName in interface AbstractGrinvinCellListCellRenderer