Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs')
-rwxr-xr-xmcs/class/System.Drawing/System.Drawing.Drawing2D/HatchBrush.jvm.cs60
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;
+ }
+ }
+
+ }
+}