root/plot/Pybrary.Plot/Axis.cs

Revision 746, 1.1 kB (checked in by mfenniak, 2 years ago)

--

Line 
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Drawing;
5
6 namespace Pybrary.Plot
7 {
8     public delegate void AxisChangedHandler();
9
10     public abstract class Axis : EventObject
11     {
12         protected FontDescription labelFont = new FontDescription("Arial", 12f, FontStyle.Regular);
13         protected float tickLength = 0.1f; // in inches
14         protected PenDescription tickPen = new PenDescription(Color.Black, 1f / 96);
15         protected bool gridlinesEnabled = true;
16         protected PenDescription gridlinePen = new PenDescription(Color.FromArgb(192, 192, 192), 1f / 96);
17
18         protected AdvancedRect? drawArea;
19
20         public bool GridlinesEnabled
21         {
22             get
23             {
24                 return gridlinesEnabled;
25             }
26             set
27             {
28                 gridlinesEnabled = value;
29                 raiseEvent();
30             }
31         }
32
33         public AdvancedRect? DrawArea
34         {
35             get
36             {
37                 return drawArea;
38             }
39         }
40     }
41 }
Note: See TracBrowser for help on using the browser.