src/main/java/com/mxgraph/util/svg/ExtendedGeneralPath.java
public synchronized void closePath()
	{
		// Don't double close path.
		if ((numSeg != 0) && (types[numSeg - 1] == PathIterator.SEG_CLOSE))
			return;

		// Only close path if the previous command wasn't a moveto
		if ((numSeg != 0) && (types[numSeg - 1] != PathIterator.SEG_MOVETO))
			path.closePath();

		makeRoom(0);
		types[numSeg++] = PathIterator.SEG_CLOSE;
		cx = mx;
		cy = my;
	}
/**
	 * Delegates to the enclosed <code>GeneralPath</code>.
	 */
Delegates to the enclosed GeneralPath.
Delegates to the enclosed GeneralPath .
public synchronized void closePath()
	{
		if ((numSeg != 0) && (types[numSeg - 1] == PathIterator.SEG_CLOSE))
			return;
		if ((numSeg != 0) && (types[numSeg - 1] != PathIterator.SEG_MOVETO))
			path.closePath();
		makeRoom(0);
		types[numSeg++] = PathIterator.SEG_CLOSE;
		cx = mx;
		cy = my;
	}
public synchronized void closePath ( ) { if ( ( numSeg != 0 ) && ( types [ numSeg - 1 ] == PathIterator . SEG_CLOSE ) ) return ; if ( ( numSeg != 0 ) && ( types [ numSeg - 1 ] != PathIterator . SEG_MOVETO ) ) path . closePath ( ) ; makeRoom ( 0 ) ; types [ numSeg ++ ] = PathIterator . SEG_CLOSE ; cx = mx ; cy = my ; }
Delegates to the enclosed <code>GeneralPath</code>.
Delegates to the enclosed <code > GeneralPath< / code > .
// Don't double close path. // Only close path if the previous command wasn't a moveto