Gets the current clipping area.
()
| 963 | * Gets the current clipping area. |
| 964 | */ |
| 965 | @Override |
| 966 | public Shape getClip() { |
| 967 | if(_clip==null) { |
| 968 | return null; |
| 969 | } |
| 970 | try { |
| 971 | AffineTransform t = _transform.createInverse(); |
| 972 | t.concatenate(_clipTransform); |
| 973 | return t.createTransformedShape(_clip); |
| 974 | } catch(Exception e) { |
| 975 | throw new EpsException("Unable to get inverse of matrix: "+_transform); //$NON-NLS-1$ |
| 976 | } |
| 977 | } |
| 978 | |
| 979 | /** |
| 980 | * Sets the current clipping area to an arbitrary clip shape. |
no test coverage detected