ConvertShape() static private method

static private ConvertShape ( java shape ) : GraphicsPath
shape java
return System.Drawing.Drawing2D.GraphicsPath
コード例 #1
0
ファイル: graphics.cs プロジェクト: maikebing/IKVM.NetCore
 public override void fill(java.awt.Shape shape)
 {
     using (Region region = new Region(J2C.ConvertShape(shape)))
     {
         g.FillRegion(brush, region);
     }
 }
コード例 #2
0
ファイル: graphics.cs プロジェクト: maikebing/IKVM.NetCore
 public override void draw(java.awt.Shape shape)
 {
     using (GraphicsPath gp = J2C.ConvertShape(shape))
     {
         g.DrawPath(pen, gp);
     }
 }
コード例 #3
0
ファイル: graphics.cs プロジェクト: maikebing/IKVM.NetCore
 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));
     }
 }
コード例 #4
0
ファイル: graphics.cs プロジェクト: maikebing/IKVM.NetCore
 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)));
     }
 }