New test.
[mono.git] / mcs / class / System.Drawing / System.Drawing / BasicShape.jvm.cs
1 using System;
2 using System.Drawing;
3 using System.Drawing.Drawing2D;
4 using System.Runtime.InteropServices;
5
6 using awt = java.awt;
7 using geom = java.awt.geom;
8
9 namespace System.Drawing
10 {
11         /// <summary>
12         /// Summary description for BasicShape.
13         /// </summary>
14         public abstract class BasicShape : MarshalByRefObject, awt.Shape, IDisposable
15         {
16                 awt.Shape _shape;
17
18                 protected BasicShape(awt.Shape shape)
19                 {
20                         _shape = shape;
21                 }
22
23                 protected awt.Shape Shape {
24                         get {
25                                 return _shape;
26                         }
27                         set {
28                                 _shape = value;
29                         }
30                 }
31
32                 #region IDisposable
33                 public void Dispose () {
34                         Dispose (true);
35                 }
36
37                 void Dispose (bool disposing) {
38                 }
39                 #endregion
40
41                 #region Shape Members
42
43                 awt.Rectangle awt.Shape.getBounds() {
44                         return Shape.getBounds();
45                 }
46
47                 bool awt.Shape.contains(double arg_0, double arg_1) {
48                         return Shape.contains(arg_0, arg_1);
49                 }
50
51                 bool awt.Shape.contains(geom.Point2D arg_0) {
52                         return Shape.contains(arg_0);
53                 }
54
55                 bool awt.Shape.contains(double arg_0, double arg_1, double arg_2, double arg_3) {
56                         return Shape.contains(arg_0, arg_1, arg_2, arg_3);
57                 }
58
59                 bool awt.Shape.contains(geom.Rectangle2D arg_0) {
60                         return Shape.contains(arg_0);
61                 }
62
63                 geom.PathIterator awt.Shape.getPathIterator(geom.AffineTransform arg_0) {
64                         return Shape.getPathIterator(arg_0);
65                 }
66
67                 geom.PathIterator awt.Shape.getPathIterator(geom.AffineTransform arg_0, double arg_1) {
68                         return Shape.getPathIterator(arg_0, arg_1);
69                 }
70
71                 geom.Rectangle2D awt.Shape.getBounds2D() {
72                         return Shape.getBounds2D();
73                 }
74
75                 bool awt.Shape.intersects(double arg_0, double arg_1, double arg_2, double arg_3) {
76                         return Shape.intersects(arg_0, arg_1, arg_2, arg_3);
77                 }
78
79                 bool awt.Shape.intersects(geom.Rectangle2D arg_0) {
80                         return Shape.intersects(arg_0);
81                 }
82
83                 #endregion
84         }
85 }