null
if the given number ofnodes is incompatible with the currently held path.
Clip
with the interior of the specified Shape
and sets the Clip
to the resulting intersection. The specified Shape
is transformed with the current Graphics2D
Transform
before being intersected with the current Clip
. This method is used to make the current Clip
smaller. To make the Clip
larger, use setClip
. The user clip modified by this method is independent of the clipping associated with device bounds and visibility. If no clip has previously been set, or if the clip has been cleared using {@link Graphics#setClip(Shape) setClip} with a null
argument, the specified Shape
becomes the new user clip.
@param s the Shape
to be intersected with the currentClip
. If s
is null
, this method clears the current Clip
.
Range range1 = new Range("a", "f"); Range range2 = new Range("c", "n"); Range range3 = range1.clip(range2); System.out.println(range3.equals(new Range("c", "f")));@return the intersection @throws IllegalArgumentException if ranges does not overlap
It can be validly called only just before painting the current path.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|