예제 #1
0
 public void LineToClosed(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.LineTo(Width, Height/2);
     target.LineTo(Height/2, Height);
     target.Close();
 }
예제 #2
0
 public void Replay(IGeometryTarget target)
 {
     foreach (var record in _records)
     {
         record(target);
     }
 }
예제 #3
0
        public void ArcTo(IGeometryTarget target)
        {
            const double pi = Math.PI;

            target.MoveTo(Left, Top);
            target.ArcTo(Left, Top, Width, Height, 0, pi / 2);
        }
예제 #4
0
 public void ArcToClosed(IGeometryTarget target)
 {
     const double pi = Math.PI;
     target.MoveTo(Left, Top);
     target.ArcTo(Left, Top, Width, Height, 0, pi / 2);
     target.Close();
 }
예제 #5
0
 public void LineToClosed(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.LineTo(Width, Height / 2);
     target.LineTo(Height / 2, Height);
     target.Close();
 }
예제 #6
0
        public void ArcToCounterClockwise(IGeometryTarget target)
        {
            const double pi = Math.PI;

            target.MoveTo(Left, Top);
            target.ArcTo(Left, Top, Width, Height, pi / 2, 0, ArcDirection.CounterClockwise);
        }
예제 #7
0
        public void Arc(IGeometryTarget target)
        {
            const double pi = Math.PI;

            target.Arc(Left, Top, Width, Height, 0, pi / 2);
            target.Arc(Left, Top, Width, Height, pi, pi * 1.5);
        }
예제 #8
0
 public void Arc(IGeometryTarget target)
 {
     const double pi = Math.PI;
     target.Arc(Left, Top, Width, Height, 0, pi / 2);
     target.Arc(Left, Top, Width, Height, pi, pi * 1.5);
 }
예제 #9
0
 public void RoundedRect(IGeometryTarget geometry)
 {
     geometry.RoundedRectangle(Left, Top, Width, Height, 8);
 }
예제 #10
0
 public void Polygon(IGeometryTarget target)
 {
     target.Polygon(new double[] { Left, Top, Width, Height/2, Height/2, Height });
 }
예제 #11
0
 public static void MoveTo(IGeometryTarget _, Point p)
 {
     _.MoveTo(p.X, p.Y);
 }
예제 #12
0
 public void Line(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
 }
예제 #13
0
 public void Line(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
 }
예제 #14
0
 public void BezierToClosed(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.BezierTo(Left + Width, Top, Left, Top + Height, Left + Width, Top + Height);
     target.Close();
 }
예제 #15
0
 public void ArcToCounterClockwise(IGeometryTarget target)
 {
     const double pi = Math.PI;
     target.MoveTo(Left, Top);
     target.ArcTo(Left, Top, Width, Height, pi/2, 0, ArcDirection.CounterClockwise);
 }
예제 #16
0
 public void Polygon(IGeometryTarget target)
 {
     target.Polygon(new double[] { Left, Top, Width, Height / 2, Height / 2, Height });
 }
예제 #17
0
 public void Bezier(IGeometryTarget target)
 {
     target.Bezier(Left, Top, Width, Top, Left, Height, Width, Height);
 }
예제 #18
0
 public void Ellipse(IGeometryTarget target)
 {
     target.Ellipse(Left, Top, Width, Height);
 }
예제 #19
0
 public void RoundedRect(IGeometryTarget geometry)
 {
     geometry.RoundedRectangle(Left, Top, Width, Height, 8);
 }
예제 #20
0
 public void Bezier(IGeometryTarget target)
 {
     target.Bezier(Left, Top, Width, Top, Left, Height, Width, Height);
 }
예제 #21
0
 public void MultipleGeometryFigures(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
     geometry.Line(10, 15, 70, 35);
 }
예제 #22
0
 public void Ellipse(IGeometryTarget target)
 {
     target.Ellipse(Left, Top, Width, Height);
 }
예제 #23
0
 public void OverlappingClosedFigures(IGeometryTarget target)
 {
     Polygon(target);
     Ellipse(target);
 }
예제 #24
0
 public void BezierTo(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.BezierTo(Left + Width, Top, Left, Top + Height, Left + Width, Top + Height);
 }
예제 #25
0
 public void MultipleGeometryFigures(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
     geometry.Line(10, 15, 70, 35);
 }
예제 #26
0
 public void OverlappingClosedFigures(IGeometryTarget target)
 {
     Polygon(target);
     Ellipse(target);
 }
예제 #27
0
 public void Replay(IGeometryTarget target)
 {
     foreach (var record in _records)
         record(target);
 }