org.grinvin.gui.components.render
Class GraphListElementRenderer
DefaultListCellRenderer
org.grinvin.gui.components.render.GraphListElementRenderer
public class GraphListElementRenderer
extends DefaultListCellRenderer
static ListCellRenderer | getInstance() - Return the shared instance of this renderer.
|
Component | getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) - Renders a graph list element as a combination of icon and graph name.
|
GraphListElementRenderer
protected GraphListElementRenderer()
getInstance
public static ListCellRenderer getInstance()
Return the shared instance of this renderer.
getListCellRendererComponent
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Renders a graph list element as a combination of icon and graph name. The
icon depends on the 'type' of graph element (factory generated, uri, ...).