org.grinvin.graphbrowser

Class GraphCellListComponent

Implemented Interfaces:
HasGraphList, HasSelectableGraphList, MouseListener

public class GraphCellListComponent
extends CellList
implements HasSelectableGraphList, MouseListener

Author:
adpeeter

Constructor Summary

GraphCellListComponent(GraphListModel model, ListSelectionModel selectionModel, int cellWidth, int cellHeight, int numberOfColumns)
Creates a new instance of GraphCellListComponent
GraphCellListComponent(GraphListModel model, int cellWidth, int cellHeight, int numberOfColumns)

Method Summary

protected ListSelectionModel
createListSelectionModel()
JToolTip
createToolTip()
void
deleteSelectedElements()
Delete currently selected elements.
GraphList
getGraphList()
Return the graph list model which is used by this component.
void
mouseClicked(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)

Constructor Details

GraphCellListComponent

public GraphCellListComponent(GraphListModel model,
                              ListSelectionModel selectionModel,
                              int cellWidth,
                              int cellHeight,
                              int numberOfColumns)
Creates a new instance of GraphCellListComponent

GraphCellListComponent

public GraphCellListComponent(GraphListModel model,
                              int cellWidth,
                              int cellHeight,
                              int numberOfColumns)

Method Details

createListSelectionModel

protected ListSelectionModel createListSelectionModel()

createToolTip

public JToolTip createToolTip()

deleteSelectedElements

public void deleteSelectedElements()
Delete currently selected elements.

getGraphList

public GraphList getGraphList()
Return the graph list model which is used by this component.
Specified by:
getGraphList in interface HasGraphList

mouseClicked

public void mouseClicked(MouseEvent e)

mouseEntered

public void mouseEntered(MouseEvent e)

mouseExited

public void mouseExited(MouseEvent e)

mousePressed

public void mousePressed(MouseEvent e)

mouseReleased

public void mouseReleased(MouseEvent e)