diff options
Diffstat (limited to 'mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs')
-rwxr-xr-x | mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs new file mode 100755 index 00000000000..7d64fe85af9 --- /dev/null +++ b/mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs @@ -0,0 +1,60 @@ + +using System; +using java.awt; +namespace System.Drawing.Drawing2D +{ + /// <summary> + /// Summary description for HatchBrush. + /// </summary> + public sealed class HatchBrush : Brush + { + private HatchStyle _style; + private Color _foreColor; + private Color _backColor; + + [MonoTODO] + public HatchBrush (HatchStyle hatchStyle, Color foreColor) + : this (hatchStyle, foreColor, Color.Black) + { + } + + [MonoTODO] + public HatchBrush(HatchStyle hatchStyle, Color foreColor, Color backColor) + { + _style = hatchStyle; + _foreColor = foreColor; + _backColor = backColor; + } + + public Color BackgroundColor { + get { + return _backColor; + } + } + + public Color ForegroundColor { + get { + return _foreColor; + } + } + + public HatchStyle HatchStyle { + get { + return _style; + } + } + + public override object Clone () + { + return new HatchBrush (_style, _foreColor, _backColor); + } + + protected override Paint NativeObject { + get { + // FALLBACK: Solid color brush will be used + return _foreColor.NativeObject; + } + } + + } +} |