src/main/java/com/mxgraph/swing/mxGraphComponent.java
public Hashtable<Object, mxICellOverlay[]> updateCellOverlays(Object cell)
	{
		Hashtable<Object, mxICellOverlay[]> result = new Hashtable<Object, mxICellOverlay[]>();
		mxICellOverlay[] c = overlays.remove(cell);
		mxCellState state = getGraph().getView().getState(cell);

		if (c != null)
		{
			if (state != null)
			{
				for (int i = 0; i < c.length; i++)
				{
					updateCellOverlayComponent(state, c[i]);
				}
			}
			else
			{
				for (int i = 0; i < c.length; i++)
				{
					removeCellOverlayComponent(c[i], cell);
				}
			}

			result.put(cell, c);
		}

		int childCount = getGraph().getModel().getChildCount(cell);

		for (int i = 0; i < childCount; i++)
		{
			result.putAll(updateCellOverlays(getGraph().getModel().getChildAt(
					cell, i)));
		}

		return result;
	}
/**
	 * Returns a hashtable with all entries from the overlays variable where a
	 * cell still exists in the model. The entries are removed from the global
	 * hashtable so that the remaining entries reflect those whose cell have
	 * been removed from the model. If no state is available for a given cell
	 * then its overlays are temporarly removed from the rendering control, but
	 * kept in the result.
	 */
Returns a hashtable with all entries from the overlays variable where a
cell still exists in the model. The entries are removed from the global
hashtable so that the remaining entries reflect those whose cell have
been removed from the model. If no state is available for a given cell
then its overlays are temporarly removed from the rendering control, but
kept in the result.
Returns a hashtable with all entries from the overlays variable where a cell still exists in the model . The entries are removed from the global hashtable so that the remaining entries reflect those whose cell have been removed from the model . If no state is available for a given cell then its overlays are temporarly removed from the rendering control but kept in the result .
public Hashtable<Object, mxICellOverlay[]> updateCellOverlays(Object cell)
	{
		Hashtable<Object, mxICellOverlay[]> result = new Hashtable<Object, mxICellOverlay[]>();
		mxICellOverlay[] c = overlays.remove(cell);
		mxCellState state = getGraph().getView().getState(cell);
		if (c != null)
		{
			if (state != null)
			{
				for (int i = 0; i < c.length; i++)
				{
					updateCellOverlayComponent(state, c[i]);
				}
			}
			else
			{
				for (int i = 0; i < c.length; i++)
				{
					removeCellOverlayComponent(c[i], cell);
				}
			}
			result.put(cell, c);
		}
		int childCount = getGraph().getModel().getChildCount(cell);
		for (int i = 0; i < childCount; i++)
		{
			result.putAll(updateCellOverlays(getGraph().getModel().getChildAt(
					cell, i)));
		}
		return result;
	}
public Hashtable < Object , mxICellOverlay [ ] > updateCellOverlays ( Object cell ) { Hashtable < Object , mxICellOverlay [ ] > result = new Hashtable < Object , mxICellOverlay [ ] > ( ) ; mxICellOverlay [ ] c = overlays . remove ( cell ) ; mxCellState state = getGraph ( ) . getView ( ) . getState ( cell ) ; if ( c != null ) { if ( state != null ) { for ( int i = 0 ; i < c . length ; i ++ ) { updateCellOverlayComponent ( state , c [ i ] ) ; } } else { for ( int i = 0 ; i < c . length ; i ++ ) { removeCellOverlayComponent ( c [ i ] , cell ) ; } } result . put ( cell , c ) ; } int childCount = getGraph ( ) . getModel ( ) . getChildCount ( cell ) ; for ( int i = 0 ; i < childCount ; i ++ ) { result . putAll ( updateCellOverlays ( getGraph ( ) . getModel ( ) . getChildAt ( cell , i ) ) ) ; } return result ; }
Returns a hashtable with all entries from the overlays variable where a
 cell still exists in the model.
Returns a hashtable with all entries from the overlays variable where a cell still exists in the model .