604 |
+ getColor () + "]"; |
+ getColor () + "]"; |
605 |
} |
} |
606 |
|
|
607 |
|
/** |
608 |
|
* Returns <code>true</code> if the specified rectangle intersects with the |
609 |
|
* current clip, <code>false</code> otherwise. |
610 |
|
* |
611 |
|
* @param x the X coordinate of the upper left corner of the test rectangle |
612 |
|
* @param y the Y coordinate of the upper left corner of the test rectangle |
613 |
|
* @param width the width of the upper left corner of the test rectangle |
614 |
|
* @param height the height of the upper left corner of the test rectangle |
615 |
|
* @return <code>true</code> if the specified rectangle intersects with the |
616 |
|
* current clip, <code>false</code> otherwise |
617 |
|
*/ |
618 |
public boolean hitClip(int x, int y, int width, int height) |
public boolean hitClip(int x, int y, int width, int height) |
619 |
{ |
{ |
620 |
throw new UnsupportedOperationException("not implemented yet"); |
return getClip().intersects(x, y, width, height); |
621 |
} |
} |
622 |
|
|
623 |
public Rectangle getClipBounds(Rectangle r) |
public Rectangle getClipBounds(Rectangle r) |