org.grinvin.gui.components.render

Class AbstractGrinvinCellListCellRenderer

Known Direct Subclasses:
GraphFactoryCellRenderer, GraphGeneratorCellRenderer, GraphListElementCellRenderer

public abstract class AbstractGrinvinCellListCellRenderer
extends DefaultCellListCellRenderer

Cell list cell renderer which is used by most cell lists in Grinvin.

Method Summary

@Override
String getToolTipText(CellList list, Object value, int index)
abstract SelectUnselectIcon
createIcon(Object value, int size)
protected abstract String
getDescription(Object value)
protected SelectUnselectIcon
getIcon(Object value, int cellWidth, int cellHeight)
Retrieve the graph icon for the given graph bundle and size
protected abstract Color
getIconBackgroundColor(Object value)
protected abstract String
getName(Object value)
protected @Override
void prepare(CellList list, Object value, int index, boolean isSelected, boolean cellHasFocus)

Method Details

String getToolTipText

public @Override String getToolTipText(CellList list,
                                       Object value,
                                       int index)

createIcon

public abstract SelectUnselectIcon createIcon(Object value,
                                              int size)

getDescription

protected abstract String getDescription(Object value)

getIcon

protected SelectUnselectIcon getIcon(Object value,
                                     int cellWidth,
                                     int cellHeight)
Retrieve the graph icon for the given graph bundle and size

getIconBackgroundColor

protected abstract Color getIconBackgroundColor(Object value)

getName

protected abstract String getName(Object value)

void prepare

protected @Override void prepare(CellList list,
                                 Object value,
                                 int index,
                                 boolean isSelected,
                                 boolean cellHasFocus)