Changeset 1285 for trunk/sources/HeuristicLab.Visualization/YAxis.cs
- Timestamp:
- 03/07/09 15:57:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/YAxis.cs
r1240 r1285 7 7 8 8 private ILabelProvider labelProvider = new ContinuousLabelProvider("e4"); 9 private bool visible = true; 9 10 10 11 public ILabelProvider LabelProvider { … … 13 14 } 14 15 16 public bool Visible { 17 get { return visible; } 18 set { visible = value; } 19 } 20 15 21 public override void Draw(Graphics graphics) { 16 22 ClearShapes(); 17 23 18 foreach (double y in AxisTicks.GetTicks(PixelsPerInterval, Parent.Viewport.Height, 19 ClippingArea.Height, 20 ClippingArea.Y1)) { 21 TextShape label = new TextShape(ClippingArea.X2 - 3, y, 22 labelProvider.GetLabel(y)); 23 label.AnchorPositionX = AnchorPositionX.Right; 24 label.AnchorPositionY = AnchorPositionY.Middle; 25 AddShape(label); 24 if (Visible) { 25 foreach (double y in AxisTicks.GetTicks(PixelsPerInterval, Parent.Viewport.Height, 26 ClippingArea.Height, 27 ClippingArea.Y1)) { 28 TextShape label = new TextShape(ClippingArea.X2 - 3, y, 29 labelProvider.GetLabel(y)); 30 label.AnchorPositionX = AnchorPositionX.Right; 31 label.AnchorPositionY = AnchorPositionY.Middle; 32 AddShape(label); 33 } 26 34 } 27 35
Note: See TracChangeset
for help on using the changeset viewer.