Intersects the current clip with the interior of the specified Shape and sets the clip to the resulting intersection.
(Shape s)
| 800 | * and sets the clip to the resulting intersection. |
| 801 | */ |
| 802 | @Override |
| 803 | public void clip(Shape s) { |
| 804 | if(_clip==null) { |
| 805 | setClip(s); |
| 806 | } else { |
| 807 | Area area = new Area(_clip); |
| 808 | area.intersect(new Area(s)); |
| 809 | setClip(area); |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * Returns the FontRenderContext. |