示例#1
0
 public void draw(GraphWin aGraphWin)
 {
     this.graphwin = aGraphWin;
     this.line = new Gnome.CanvasLine(this.graphwin.canvas.Root());
     points = new Gnome.CanvasPoints(new double[]{
     point1.x, point1.y, point2.x, point2.y});
     this.line.Points = points;
 }
示例#2
0
 public Line(Point point1, Point point2)
 {
     /*Constructs a line segment from point1 to point2. */
     this.point1 = point1;
     this.point2 = point2;
     this.arrowType = "none";
     this.graphwin = null;
     this.line = null;
 }