org.grinvin.list

Class GraphListElementRenderer


public class GraphListElementRenderer
extends DefaultListCellRenderer

Cell renderer for objects of type GraphListElement.

Constructor Summary

GraphListElementRenderer()
Default constructor

Method Summary

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

public GraphListElementRenderer()
Default constructor

Method Details

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