This class has some static convertion function from C# to Java objects
Example #1
0
 public override java.awt.geom.AffineTransform getTransform()
 {
     if (tx != null)
     {
         return(tx);
     }
     using (Matrix matrix = g.Transform)
     {
         return(tx = C2J.ConvertMatrix(matrix));
     }
 }
Example #2
0
 public override java.awt.Rectangle getClipBounds()
 {
     using (Region clip = g.Clip)
     {
         if (clip.IsInfinite(g))
         {
             return(null);
         }
         RectangleF rec = clip.GetBounds(g);
         return(C2J.ConvertRectangle(rec));
     }
 }
Example #3
0
 public override java.awt.Color getBackground()
 {
     return(C2J.ConvertColor(bgcolor));
 }