org.grinvin.list

Class GraphListRenderer


public class GraphListRenderer
extends DefaultListCellRenderer

Table cell renderer for objects of type GraphListElement.

Constructor Summary

GraphListRenderer(JTable table)

Method Summary

@Override
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

GraphListRenderer

public GraphListRenderer(JTable table)

Method Details

Component getListCellRendererComponent

public @Override 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, ...).