MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / clip

Method clip

src/org/jibble/epsgraphics/EpsGraphics2D.java:802–811  ·  view source on GitHub ↗

Intersects the current clip with the interior of the specified Shape and sets the clip to the resulting intersection.

(Shape s)

Source from the content-addressed store, hash-verified

800 * and sets the clip to the resulting intersection.
801 */
802 @Override
803public 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.

Callers 1

clipRectMethod · 0.95

Calls 1

setClipMethod · 0.95

Tested by

no test coverage detected