using System.Drawing;
namespace Netron.Diagramming.Core {
///
/// Abstract base implementation of the interface.
///
public abstract class TrackerBase : ITracker {
#region Fields
///
/// the Rectangle field
///
private Rectangle mRectangle;
#endregion
#region Properties
///
/// Gets or sets the Rectangle
///
public Rectangle Rectangle {
get {
return mRectangle;
}
set {
mRectangle = value;
}
}
///
/// the ShowHandles field
///
private bool mShowHandles;
///
/// Gets or sets the ShowHandles
///
public bool ShowHandles {
get { return mShowHandles; }
set { mShowHandles = value; }
}
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
public TrackerBase() {
}
///
/// Initializes a new instance of the class.
///
/// The rectangle.
public TrackerBase(Rectangle rectangle) {
mRectangle = rectangle;
}
#endregion
#region Methods
///
/// Paints the entity using the given graphics object
///
///
public abstract void Paint(Graphics g);
//{
// g.DrawRectangle(ArtPallet.HighlightPen, mRectangle);
//}
///
/// Returns the relative coordinate of the grip-point hit, if any, of the tracker.
///
///
///
public abstract Point Hit(Point p);
///
/// Transforms the specified rectangle.
///
/// The rectangle.
public abstract void Transform(Rectangle rectangle);
#endregion
}
}