Example #1
0
 private TidesFlatlandPresenter(Flatland.Canvas canvas)
 {
     orbMoon = new DrawOrb(canvas, colorMoon);
     orbSun  = new DrawOrb(canvas, colorSun);
     segment = new DrawSegment(canvas);
     earth   = new DrawEarth(canvas);
 }
Example #2
0
 public DrawEarth(Flatland.Canvas canvas)
     : base(canvas)
 {
 }
Example #3
0
 public DrawSegment(Flatland.Canvas canvas)
     : base(canvas)
 {
     lineSegment = canvas.Turtle().SetLineColor(Flatland.Colors.Black);
     endcapPt1   = canvas.Wireframe().SetLineColor(Flatland.Colors.Blue);
 }
Example #4
0
 public DrawOrb(Flatland.Canvas canvas, Flatland.Color color)
     : base(canvas)
 {
     wireframe = canvas.Wireframe().SetLineColor(color);
 }
Example #5
0
 public DrawObject(Flatland.Canvas canvas)
 {
     this.canvas = canvas;
 }
Example #6
0
 public static TidesFlatlandPresenter Create(Flatland.Canvas canvas)
 {
     return(new TidesFlatlandPresenter(canvas));
 }