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; }
public void draw(GraphWin aGraphWin) { this.graphwin = aGraphWin; this.cpixbuf = new Gnome.CanvasPixbuf(this.graphwin.canvas.Root()); this.cpixbuf.Pixbuf = this.image.pixbuf; this.cpixbuf.X = this.centerPoint.x; this.cpixbuf.Y = this.centerPoint.y; }
public static void show(Image image) { if (_defaultWindow == null) { _defaultWindow = new GraphWin(); image.draw(_defaultWindow); } else { try { image.draw(_defaultWindow); } catch { _defaultWindow = new GraphWin(); image.draw(_defaultWindow); } } }
public void draw(GraphWin aGraphWin) { /* Draws the object into the given GraphWin. An object may only be drawn in one window at a time. */ this.graphwin = aGraphWin; }
public void draw(GraphWin aGraphWin) { //raise AttributeError("can't draw a pixmap; make an Image"); }