using System.ComponentModel;
using System.Drawing;
namespace Netron.Diagramming.Core {
///
/// Abstract base classes for the rulers.
///
public abstract class RulerBase : IPaintable {
#region Fields
private IView mView = null;
private bool mVisible;
#endregion
#region Properties
///
/// Gets or sets a value indicating whether this is visible.
///
/// true if visible; otherwise, false.
[BrowsableAttribute(true)]
public bool Visible {
get {
return mVisible;
}
set {
mVisible = value;
}
}
///
/// Gets the bounds.
///
/// The bounds.
[BrowsableAttribute(false)]
public abstract Rectangle Rectangle { get; }
///
/// Gets or sets the view associated to this ruler.
///
/// The IView.
public IView View {
get { return mView; }
set { mView = value; }
}
#endregion
#region Constructor
///
///Default constructor
///
public RulerBase(IView mView) {
this.mView = mView;
}
#endregion
#region Methods
///
/// Paints the entity using the given graphics object
///
///
public abstract void Paint(Graphics g);
#endregion
}
}