Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Ruler/Ruler.cs

Last change on this file was 4068, checked in by swagner, 14 years ago

Sorted usings and removed unused usings in entire solution (#1094)

File size: 1.5 KB
Line 
1using System.ComponentModel;
2using System.Drawing;
3
4namespace Netron.Diagramming.Core {
5  /// <summary>
6  /// Abstract base classes for the rulers.
7  /// </summary>
8  public abstract class RulerBase : IPaintable {
9
10    #region Fields
11    private IView mView = null;
12
13
14    private bool mVisible;
15    #endregion
16
17    #region Properties
18    /// <summary>
19    /// Gets or sets a value indicating whether this <see cref="T:Ruler"/> is visible.
20    /// </summary>
21    /// <value><c>true</c> if visible; otherwise, <c>false</c>.</value>
22    [BrowsableAttribute(true)]
23    public bool Visible {
24      get {
25        return mVisible;
26      }
27
28      set {
29        mVisible = value;
30      }
31    }
32    /// <summary>
33    /// Gets the bounds.
34    /// </summary>
35    /// <value>The bounds.</value>
36    [BrowsableAttribute(false)]
37    public abstract Rectangle Rectangle { get; }
38    /// <summary>
39    /// Gets or sets the view associated to this ruler.
40    /// </summary>
41    /// <value>The IView.</value>
42    public IView View {
43      get { return mView; }
44      set { mView = value; }
45    }
46    #endregion
47
48    #region Constructor
49    ///<summary>
50    ///Default constructor
51    ///</summary>
52    public RulerBase(IView mView) {
53      this.mView = mView;
54    }
55    #endregion
56
57    #region Methods
58
59
60    /// <summary>
61    /// Paints the entity using the given graphics object
62    /// </summary>
63    /// <param name="g"></param>
64    public abstract void Paint(Graphics g);
65    #endregion
66
67  }
68
69}
Note: See TracBrowser for help on using the repository browser.