org.grinvin.gui.components.render

Class GraphListElementRenderer


public class GraphListElementRenderer
extends DefaultListCellRenderer

Cell renderer for objects of type GraphListElement.

Constructor Summary

GraphListElementRenderer()

Method Summary

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.

Constructor Details

GraphListElementRenderer

protected GraphListElementRenderer()

Method Details

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, ...).