src/main/java/com/mxgraph/shape/mxCurveLabelShape.java
public boolean intersectsRect(Rectangle rect)
	{
		// To save CPU, we can test if the rectangle intersects the entire
		// bounds of this label
		if ( (labelBounds != null
				&& (!labelBounds.getRectangle().intersects(rect)) )
				|| labelGlyphs == null )
		{
			return false;
		}

		for (int i = 0; i < labelGlyphs.length; i++)
		{
			if (labelGlyphs[i].visible
					&& rect.intersects(labelGlyphs[i].drawingBounds
							.getRectangle()))
			{
				return true;
			}
		}

		return false;
	}
/**
	 * Returns whether or not the rectangle passed in hits any part of this
	 * curve.
	 * @param rect the rectangle to detect for a hit
	 * @return whether or not the rectangle hits this curve
	 */
Returns whether or not the rectangle passed in hits any part of this
curve.
@param rect the rectangle to detect for a hit
@return whether or not the rectangle hits this curve
Returns whether or not the rectangle passed in hits any part of this curve . @param rect the rectangle to detect for a hit @return whether or not the rectangle hits this curve
public boolean intersectsRect(Rectangle rect)
	{
		if ( (labelBounds != null
				&& (!labelBounds.getRectangle().intersects(rect)) )
				|| labelGlyphs == null )
		{
			return false;
		}
		for (int i = 0; i < labelGlyphs.length; i++)
		{
			if (labelGlyphs[i].visible
					&& rect.intersects(labelGlyphs[i].drawingBounds
							.getRectangle()))
			{
				return true;
			}
		}
		return false;
	}
public boolean intersectsRect ( Rectangle rect ) { if ( ( labelBounds != null && ( ! labelBounds . getRectangle ( ) . intersects ( rect ) ) ) || labelGlyphs == null ) { return false ; } for ( int i = 0 ; i < labelGlyphs . length ; i ++ ) { if ( labelGlyphs [ i ] . visible && rect . intersects ( labelGlyphs [ i ] . drawingBounds . getRectangle ( ) ) ) { return true ; } } return false ; }
Returns whether or not the rectangle passed in hits any part of this
 curve.
Returns whether or not the rectangle passed in hits any part of this curve .
// To save CPU, we can test if the rectangle intersects the entire // bounds of this label