List of utility methods to do Graphics Clip
Shape | mergeClip(Graphics g, Shape clip) Sets the clip on a graphics object by merging a supplied clip with the existing one. Shape oldClip = g.getClip(); if (oldClip == null) { g.setClip(clip); return null; Area area = new Area(oldClip); area.intersect(new Area(clip)); g.setClip(area); ... |
void | resetClip(Graphics g) reset Clip g.setClip((Shape) clipBoundsStack.pop()); |
void | restoreClip(final Graphics g, final Shape clip) restore Clip restoreClip(g, clip, true); |
Shape | subtractClip(final Graphics g, final Shape clip) subtract Clip return subtractClip(g, clip, true);
|