/[libvob]/libvob/org/nongnu/libvob/vobs/SimpleConnection.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/vobs/SimpleConnection.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Tue Apr 8 20:25:02 2003 UTC revision 1.5 by tjl, Tue May 13 11:48:21 2003 UTC
# Line 42  public static final String rcsid = "$Id$ Line 42  public static final String rcsid = "$Id$
42      Point pt0, pt1;      Point pt0, pt1;
43    
44      /**      /**
45       *  @param x0, y0 Coordinate inside first coord system       *  @param x0,y0 Coordinate inside first coord system
46       *  @param x1, y1 Coordinate inside second coord system       *  @param x1,y1 Coordinate inside second coord system
47       */       */
48      public SimpleConnection(float x0, float y0, float x1, float y1) {      public SimpleConnection(float x0, float y0, float x1, float y1) {
49          this(x0, y0, x1, y1, null);          this(x0, y0, x1, y1, null);
50      }      }
51    
52      /**      /**
53       *  @param x0, y0 Coordinate inside first coord system       *  @param x0,y0 Coordinate inside first coord system
54       *  @param x1, y1 Coordinate inside second coord system       *  @param x1,y1 Coordinate inside second coord system
55       */       */
56      public SimpleConnection(float x0, float y0, float x1, float y1,      public SimpleConnection(float x0, float y0, float x1, float y1,
57                              Color color) {                              Color color) {
# Line 76  public static final String rcsid = "$Id$ Line 76  public static final String rcsid = "$Id$
76          g.drawLine(pt0.x, pt0.y, pt1.x, pt1.y);          g.drawLine(pt0.x, pt0.y, pt1.x, pt1.y);
77      }      }
78    
79        public Vob glsetup;
80      Vob line;      Vob line;
81        public Vob glteardown;
82    
83      public int putGL(VobScene vs, int coordsys1, int coordsys2) {      public int putGL(VobScene vs, int coordsys1, int coordsys2) {
84          if(line == null) line = GLRen.createLineConnector(x0, y0, x1, y1);          if(line == null) line = GLRen.createLineConnector(x0, y0, x1, y1);
85            if(glsetup != null) vs.map.put(glsetup);
86          vs.map.put(line, coordsys1, coordsys2);          vs.map.put(line, coordsys1, coordsys2);
87            if(glteardown != null) vs.map.put(glteardown);
88          return 0;          return 0;
89      }      }
90  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26