Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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);
     }
     }
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 public void draw(GraphWin aGraphWin)
 {
     //raise AttributeError("can't draw a pixmap; make an Image");
 }