src/main/java/com/mxgraph/swing/mxGraphComponent.java
public void selectCellForEvent(Object cell, MouseEvent e)
	{
		boolean isSelected = graph.isCellSelected(cell);

		if (isToggleEvent(e))
		{
			if (isSelected)
			{
				graph.removeSelectionCell(cell);
			}
			else
			{
				graph.addSelectionCell(cell);
			}
		}
		else if (!isSelected || graph.getSelectionCount() != 1)
		{
			graph.setSelectionCell(cell);
		}
	}
/**
	 * Selects the cell for the given event.
	 */
Selects the cell for the given event.
Selects the cell for the given event .
public void selectCellForEvent(Object cell, MouseEvent e)
	{
		boolean isSelected = graph.isCellSelected(cell);
		if (isToggleEvent(e))
		{
			if (isSelected)
			{
				graph.removeSelectionCell(cell);
			}
			else
			{
				graph.addSelectionCell(cell);
			}
		}
		else if (!isSelected || graph.getSelectionCount() != 1)
		{
			graph.setSelectionCell(cell);
		}
	}
public void selectCellForEvent ( Object cell , MouseEvent e ) { boolean isSelected = graph . isCellSelected ( cell ) ; if ( isToggleEvent ( e ) ) { if ( isSelected ) { graph . removeSelectionCell ( cell ) ; } else { graph . addSelectionCell ( cell ) ; } } else if ( ! isSelected || graph . getSelectionCount ( ) != 1 ) { graph . setSelectionCell ( cell ) ; } }
Selects the cell for the given event.
Selects the cell for the given event .