static private ConvertShape ( java shape ) : |
||
shape | java | |
return |
public override void fill(java.awt.Shape shape) { using (Region region = new Region(J2C.ConvertShape(shape))) { g.FillRegion(brush, region); } }
public override void draw(java.awt.Shape shape) { using (GraphicsPath gp = J2C.ConvertShape(shape)) { g.DrawPath(pen, gp); } }
public override void setClip(java.awt.Shape shape) { if (shape == null) { Region clip = g.Clip; clip.MakeInfinite(); g.Clip = clip; } else { g.Clip = new Region(J2C.ConvertShape(shape)); } }
public override void clip(java.awt.Shape shape) { if (shape == null) { // the API specification says that this will clear // the clip, but in fact the reference implementation throws a // NullPointerException - see the following entry in the bug parade: // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206189 throw new java.lang.NullPointerException(); } else { g.IntersectClip(new Region(J2C.ConvertShape(shape))); } }