src/main/java/com/mxgraph/swing/mxGraphComponent.java
public mxICellOverlay removeCellOverlay(Object cell, mxICellOverlay overlay)
	{
		if (overlay == null)
		{
			removeCellOverlays(cell);
		}
		else
		{
			mxICellOverlay[] arr = getCellOverlays(cell);

			if (arr != null)
			{
				// TODO: Use arraycopy from/to same array to speed this up
				List<mxICellOverlay> list = new ArrayList<mxICellOverlay>(
						Arrays.asList(arr));

				if (list.remove(overlay))
				{
					removeCellOverlayComponent(overlay, cell);
				}

				arr = list.toArray(new mxICellOverlay[list.size()]);
				overlays.put(cell, arr);
			}
		}

		return overlay;
	}
/**
	 * Removes and returns the given overlay from the given cell. This method
	 * fires a remove overlay event. If no overlay is given, then all overlays
	 * are removed using removeOverlays.
	 * 
	 * @param cell
	 *            Cell whose overlay should be removed.
	 * @param overlay
	 *            Optional overlay to be removed.
	 */
Removes and returns the given overlay from the given cell. This method
fires a remove overlay event. If no overlay is given, then all overlays
are removed using removeOverlays.

@param cell
Cell whose overlay should be removed.
@param overlay
Optional overlay to be removed.
Removes and returns the given overlay from the given cell . This method fires a remove overlay event . If no overlay is given then all overlays are removed using removeOverlays . @param cell Cell whose overlay should be removed . @param overlay Optional overlay to be removed .
public mxICellOverlay removeCellOverlay(Object cell, mxICellOverlay overlay)
	{
		if (overlay == null)
		{
			removeCellOverlays(cell);
		}
		else
		{
			mxICellOverlay[] arr = getCellOverlays(cell);
			if (arr != null)
			{
				List<mxICellOverlay> list = new ArrayList<mxICellOverlay>(
						Arrays.asList(arr));
				if (list.remove(overlay))
				{
					removeCellOverlayComponent(overlay, cell);
				}
				arr = list.toArray(new mxICellOverlay[list.size()]);
				overlays.put(cell, arr);
			}
		}
		return overlay;
	}
public mxICellOverlay removeCellOverlay ( Object cell , mxICellOverlay overlay ) { if ( overlay == null ) { removeCellOverlays ( cell ) ; } else { mxICellOverlay [ ] arr = getCellOverlays ( cell ) ; if ( arr != null ) { List < mxICellOverlay > list = new ArrayList < mxICellOverlay > ( Arrays . asList ( arr ) ) ; if ( list . remove ( overlay ) ) { removeCellOverlayComponent ( overlay , cell ) ; } arr = list . toArray ( new mxICellOverlay [ list . size ( ) ] ) ; overlays . put ( cell , arr ) ; } } return overlay ; }
Removes and returns the given overlay from the given cell.
Removes and returns the given overlay from the given cell .
// TODO: Use arraycopy from/to same array to speed this up