mxCellOverlay overlay = new mxCellOverlay(icon, warning);
// Adds a handler for single mouseclicks to select the cell
if (select)
{
overlay.addMouseListener(new MouseAdapter()
{
/**
* Selects the associated cell in the graph
*/
public void mousePressed(MouseEvent e)