TARGET_JVM icon support
[mono.git] / mcs / class / System.Drawing / System.Drawing / Pen.jvm.cs
index 54c61ffcdd9411cb0d4acbfc7f2b8ce1e6cbfc16..9badbe317ca019f12ed132eede47e59c95c64fb4 100755 (executable)
@@ -457,8 +457,20 @@ namespace System.Drawing
                        return Math.Abs(Width*Width * (AD*KN_LM - BC*KN_LM));
                }
 
-               internal awt.Stroke GetNativeObject(geom.AffineTransform outputTransform, bool fitPen) {
-                       return GetNativeObject(null, outputTransform, fitPen);
+               
+               internal bool CanCreateBasicStroke {
+                       get {
+                               if (!_transform.IsIdentity)
+                                       return false;
+
+                               //FIXME: add more logic when more features will
+                               // be implemented.
+                               return true;
+                       }
+               }
+
+               internal awt.Stroke GetNativeObject(geom.AffineTransform outputTransform, PenFit penFit) {
+                       return GetNativeObject(null, outputTransform, penFit);
                }
                /// <summary>\r
                /// \r
@@ -466,7 +478,7 @@ namespace System.Drawing
                /// <param name="outputTransform">transform which will be applied on the final shape</param>\r
                /// <param name="fitPen">ensure the shape will wide enough to be visible</param>\r
                /// <returns></returns>
-               internal awt.Stroke GetNativeObject(geom.AffineTransform penTransform, geom.AffineTransform outputTransform, bool fitPen) {
+               internal awt.Stroke GetNativeObject(geom.AffineTransform penTransform, geom.AffineTransform outputTransform, PenFit penFit) {
                        float[] dashPattern = null;\r
 \r
                        switch (DashStyle) {\r
@@ -546,13 +558,13 @@ namespace System.Drawing
 \r
                        return StrokeFactory.CreateStroke(Width, cap, \r
                                join, MiterLimit, dashPattern, DashOffset,\r
-                               penT, outputTransform, fitPen);
+                               penT, outputTransform, penFit);
                }
 
                #region Stroke Members\r
 \r
                awt.Shape awt.Stroke.createStrokedShape(awt.Shape arg_0) {\r
-                       return GetNativeObject(null, false).createStrokedShape(arg_0);\r
+                       return GetNativeObject(null, PenFit.NotThin).createStrokedShape(arg_0);\r
                }\r
 \r
                #endregion