src/main/java/com/mxgraph/swing/handler/mxGraphHandler.java
protected boolean shouldRemoveCellFromParent(Object parent, Object[] cells,
			MouseEvent e)
	{
		if (graphComponent.getGraph().getModel().isVertex(parent))
		{
			mxCellState pState = graphComponent.getGraph().getView()
					.getState(parent);

			return pState != null && !pState.contains(e.getX(), e.getY());
		}

		return false;
	}
/**
	 * Returns true if the given cells should be removed from the parent for the specified
	 * mousereleased event.
	 */
Returns true if the given cells should be removed from the parent for the specified
mousereleased event.
Returns true if the given cells should be removed from the parent for the specified mousereleased event .
protected boolean shouldRemoveCellFromParent(Object parent, Object[] cells,
			MouseEvent e)
	{
		if (graphComponent.getGraph().getModel().isVertex(parent))
		{
			mxCellState pState = graphComponent.getGraph().getView()
					.getState(parent);
			return pState != null && !pState.contains(e.getX(), e.getY());
		}
		return false;
	}
protected boolean shouldRemoveCellFromParent ( Object parent , Object [ ] cells , MouseEvent e ) { if ( graphComponent . getGraph ( ) . getModel ( ) . isVertex ( parent ) ) { mxCellState pState = graphComponent . getGraph ( ) . getView ( ) . getState ( parent ) ; return pState != null && ! pState . contains ( e . getX ( ) , e . getY ( ) ) ; } return false ; }
Returns true if the given cells should be removed from the parent for the specified
 mousereleased event.
Returns true if the given cells should be removed from the parent for the specified mousereleased event .