src/main/java/com/mxgraph/model/mxGeometry.java
public void swap()
	{
		if (alternateBounds != null)
		{
			mxRectangle old = new mxRectangle(getX(), getY(), getWidth(),
					getHeight());

			x = alternateBounds.getX();
			y = alternateBounds.getY();
			width = alternateBounds.getWidth();
			height = alternateBounds.getHeight();

			alternateBounds = old;
		}
	}
/**
	 * Swaps the x, y, width and height with the values stored in
	 * alternateBounds and puts the previous values into alternateBounds as
	 * a rectangle. This operation is carried-out in-place, that is, using the
	 * existing geometry instance. If this operation is called during a graph
	 * model transactional change, then the geometry should be cloned before
	 * calling this method and setting the geometry of the cell using
	 * mxGraphModel.setGeometry.
	 */
Swaps the x, y, width and height with the values stored in
alternateBounds and puts the previous values into alternateBounds as
a rectangle. This operation is carried-out in-place, that is, using the
existing geometry instance. If this operation is called during a graph
model transactional change, then the geometry should be cloned before
calling this method and setting the geometry of the cell using
mxGraphModel.setGeometry.
Swaps the x y width and height with the values stored in alternateBounds and puts the previous values into alternateBounds as a rectangle . This operation is carried - out in - place that is using the existing geometry instance . If this operation is called during a graph model transactional change then the geometry should be cloned before calling this method and setting the geometry of the cell using mxGraphModel . setGeometry .
public void swap()
	{
		if (alternateBounds != null)
		{
			mxRectangle old = new mxRectangle(getX(), getY(), getWidth(),
					getHeight());
			x = alternateBounds.getX();
			y = alternateBounds.getY();
			width = alternateBounds.getWidth();
			height = alternateBounds.getHeight();
			alternateBounds = old;
		}
	}
public void swap ( ) { if ( alternateBounds != null ) { mxRectangle old = new mxRectangle ( getX ( ) , getY ( ) , getWidth ( ) , getHeight ( ) ) ; x = alternateBounds . getX ( ) ; y = alternateBounds . getY ( ) ; width = alternateBounds . getWidth ( ) ; height = alternateBounds . getHeight ( ) ; alternateBounds = old ; } }
Swaps the x, y, width and height with the values stored in
 alternateBounds and puts the previous values into alternateBounds as
 a rectangle.
Swaps the x y width and height with the values stored in alternateBounds and puts the previous values into alternateBounds as a rectangle .