2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.Drawing / System.Drawing / BasicShape.jvm.cs
blob5aad895321fb5c0cd2f75feec29b9e9f4b3e95ad
1 using System;
2 using System.Drawing;
3 using System.Drawing.Drawing2D;
4 using System.Runtime.InteropServices;
6 using awt = java.awt;
7 using geom = java.awt.geom;
9 namespace System.Drawing
11 /// <summary>
12 /// Summary description for BasicShape.
13 /// </summary>
14 public abstract class BasicShape : MarshalByRefObject, awt.Shape, IDisposable
16 awt.Shape _shape;
18 protected BasicShape(awt.Shape shape)
20 _shape = shape;
23 protected awt.Shape Shape {
24 get {
25 return _shape;
27 set {
28 _shape = value;
32 #region IDisposable
33 public void Dispose () {
34 Dispose (true);
37 void Dispose (bool disposing) {
39 #endregion
41 #region Shape Members
43 awt.Rectangle awt.Shape.getBounds() {
44 return Shape.getBounds();
47 bool awt.Shape.contains(double arg_0, double arg_1) {
48 return Shape.contains(arg_0, arg_1);
51 bool awt.Shape.contains(geom.Point2D arg_0) {
52 return Shape.contains(arg_0);
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);
59 bool awt.Shape.contains(geom.Rectangle2D arg_0) {
60 return Shape.contains(arg_0);
63 geom.PathIterator awt.Shape.getPathIterator(geom.AffineTransform arg_0) {
64 return Shape.getPathIterator(arg_0);
67 geom.PathIterator awt.Shape.getPathIterator(geom.AffineTransform arg_0, double arg_1) {
68 return Shape.getPathIterator(arg_0, arg_1);
71 geom.Rectangle2D awt.Shape.getBounds2D() {
72 return Shape.getBounds2D();
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);
79 bool awt.Shape.intersects(geom.Rectangle2D arg_0) {
80 return Shape.intersects(arg_0);
83 #endregion