org.grinvin.list

Class FactoryList.FactoryListCellRenderer

Enclosing Class:
FactoryList

public class FactoryList.FactoryListCellRenderer
extends DefaultCellListCellRenderer

Constructor Summary

FactoryListCellRenderer()
Create a graph list cell renderer that delegates to the given graph renderer.

Method Summary

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

Constructor Details

FactoryListCellRenderer

public FactoryListCellRenderer()
Create a graph list cell renderer that delegates to the given graph renderer.

Method Details

String getToolTipText

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

getIcon

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

void prepare

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