Code cleanup and refactor

This commit is contained in:
Tig
2024-11-04 09:42:50 -07:00
parent e4b552331b
commit 304784cbe7
31 changed files with 356 additions and 339 deletions

View File

@@ -685,7 +685,7 @@ public class MultiBarSeriesTests
fakeXAxis.LabelPoints.Clear ();
gv.LayoutSubviews ();
gv.SetNeedsDraw ();
Application.ClipToScreen ();
View.SetClipToScreen ();
gv.Draw ();
Assert.Equal (3, fakeXAxis.LabelPoints.Count);
@@ -1154,7 +1154,7 @@ public class TextAnnotationTests
// user scrolls up one unit of graph space
gv.ScrollOffset = new PointF (0, 1f);
gv.SetNeedsDraw ();
Application.ClipToScreen ();
View.SetClipToScreen ();
gv.Draw ();
// we expect the text annotation to go down one line since
@@ -1248,7 +1248,7 @@ public class TextAnnotationTests
new TextAnnotation { Text = "hey!", ScreenPosition = new Point (3, 1) }
);
gv.LayoutSubviews ();
Application.ClipToScreen ();
View.SetClipToScreen ();
gv.Draw ();
var expected =
@@ -1264,7 +1264,7 @@ public class TextAnnotationTests
// user scrolls up one unit of graph space
gv.ScrollOffset = new PointF (0, 1f);
gv.SetNeedsDraw ();
Application.ClipToScreen ();
View.SetClipToScreen ();
gv.Draw ();
// we expect no change in the location of the annotation (only the axis label changes)
@@ -1283,7 +1283,7 @@ public class TextAnnotationTests
// user scrolls up one unit of graph space
gv.ScrollOffset = new PointF (0, 1f);
gv.SetNeedsDraw ();
Application.ClipToScreen ();
View.SetClipToScreen ();
gv.Draw ();
// we expect no change in the location of the annotation (only the axis label changes)
@@ -1553,7 +1553,7 @@ public class PathAnnotationTests
// change the text and redraw
view.Text = "ff1234";
mount.SetNeedsDraw ();
Application.ClipToScreen ();
View.SetClipToScreen ();
mount.Draw ();
// should have the new text rendered