| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,24 +16,24 @@ public static class CustomAxisExamples | |||
| 16 | 16 | { | |
| 17 | 17 | public class ArrowAxis : LinearAxis | |
| 18 | 18 | { | |
| 19 | - public override void Render(IRenderContext rc, PlotModel model, AxisLayer axisLayer, int pass) | ||
| 19 | + public override void Render(IRenderContext rc, int pass) | ||
| 20 | 20 | { | |
| 21 | - base.Render(rc, model, axisLayer, pass); | ||
| 21 | + base.Render(rc, pass); | ||
| 22 | 22 | var points = new List<ScreenPoint>(); | |
| 23 | 23 | if (this.IsHorizontal()) | |
| 24 | 24 | { | |
| 25 | 25 | var xmax = this.Transform(this.ActualMaximum); | |
| 26 | - points.Add(new ScreenPoint(xmax + 4, model.PlotArea.Bottom - 4)); | ||
| 27 | - points.Add(new ScreenPoint(xmax + 18, model.PlotArea.Bottom)); | ||
| 28 | - points.Add(new ScreenPoint(xmax + 4, model.PlotArea.Bottom + 4)); | ||
| 26 | + points.Add(new ScreenPoint(xmax + 4, this.PlotModel.PlotArea.Bottom - 4)); | ||
| 27 | + points.Add(new ScreenPoint(xmax + 18, this.PlotModel.PlotArea.Bottom)); | ||
| 28 | + points.Add(new ScreenPoint(xmax + 4, this.PlotModel.PlotArea.Bottom + 4)); | ||
| 29 | 29 | //// etc. | |
| 30 | 30 | } | |
| 31 | 31 | else | |
| 32 | 32 | { | |
| 33 | 33 | var ymax = this.Transform(this.ActualMaximum); | |
| 34 | - points.Add(new ScreenPoint(model.PlotArea.Left - 4, ymax - 4)); | ||
| 35 | - points.Add(new ScreenPoint(model.PlotArea.Left, ymax - 18)); | ||
| 36 | - points.Add(new ScreenPoint(model.PlotArea.Left + 4, ymax - 4)); | ||
| 34 | + points.Add(new ScreenPoint(this.PlotModel.PlotArea.Left - 4, ymax - 4)); | ||
| 35 | + points.Add(new ScreenPoint(this.PlotModel.PlotArea.Left, ymax - 18)); | ||
| 36 | + points.Add(new ScreenPoint(this.PlotModel.PlotArea.Left + 4, ymax - 4)); | ||
| 37 | 37 | //// etc. | |
| 38 | 38 | } | |
| 39 | 39 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -368,10 +368,9 @@ public DelegateAnnotation(Action<IRenderContext> rendering) | |||
| 368 | 368 | /// Renders the annotation on the specified context. | |
| 369 | 369 | /// </summary> | |
| 370 | 370 | /// <param name="rc">The render context.</param> | |
| 371 | - /// <param name="model">The model.</param> | ||
| 372 | - public override void Render(IRenderContext rc, PlotModel model) | ||
| 371 | + public override void Render(IRenderContext rc) | ||
| 373 | 372 | { | |
| 374 | - base.Render(rc, model); | ||
| 373 | + base.Render(rc); | ||
| 375 | 374 | this.Rendering(rc); | |
| 376 | 375 | } | |
| 377 | 376 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments