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

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

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

revision 1.2 by tjl, Tue Apr 8 20:46:36 2003 UTC revision 1.3 by humppake, Fri Apr 11 12:17:35 2003 UTC
# Line 40  public static final String rcsid = "$Id$ Line 40  public static final String rcsid = "$Id$
40      private Point pt0, pt1;      private Point pt0, pt1;
41            
42      /** pin's length factor */      /** pin's length factor */
43      private float f = 0.3f;      private float f;
44    
45      /** pin's radius */      /** pin's radius */
46      private float r = 3f;      private float r;
47    
48      /**      /**
49       *  @param x0, y0 Coordinate inside first coord system       * @param x0, y0 Coordinate inside first coord system
50       *  @param x1, y1 Coordinate inside second coord system       * @param x1, y1 Coordinate inside second coord system
51         * @param color Drawing color.
52         * @param f Pin's stick's length factor.
53         * @param r Pin's radius.
54       */       */
55      public PinStub(float x0, float y0, float x1, float y1,      public PinStub(float x0, float y0, float x1, float y1,
56                     Color color) {                     Color color, float f, float r) {
57          super();          super();
58          this.x0 = x0;          this.x0 = x0;
59          this.y0 = y0;          this.y0 = y0;
60          this.x1 = x1;          this.x1 = x1;
61          this.y1 = y1;          this.y1 = y1;
62          this.color = color;          this.color = color;
63            this.r = r;
64            this.f = f;
65          this.pt0 = new Point();          this.pt0 = new Point();
66          this.pt1 = new Point();          this.pt1 = new Point();
67      }      }
68      public PinStub(float x0, float y0, float x1, float y1) {      public PinStub(float x0, float y0, float x1, float y1) {
69          this(x0, y0, x1, y1, null);          this(x0, y0, x1, y1, null);
70      }      }
71        public PinStub(float x0, float y0, float x1, float y1,
72                       Color color) {
73            /** Default values for pin's lengt factor and radius. */
74            this(x0, y0, x1, y1, color, 0.2f, 2f);
75        }
76    
77      public void render(Graphics g,      public void render(Graphics g,
78                                  boolean fast,                                  boolean fast,
# Line 92  public static final String rcsid = "$Id$ Line 102  public static final String rcsid = "$Id$
102          return 0;          return 0;
103      }      }
104  }  }
   
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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