[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/org/nongnu/libvob/vobs PinStub.java
From: |
Asko Soukka |
Subject: |
[Gzz-commits] libvob/org/nongnu/libvob/vobs PinStub.java |
Date: |
Fri, 11 Apr 2003 08:17:35 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Asko Soukka <address@hidden> 03/04/11 08:17:35
Modified files:
org/nongnu/libvob/vobs: PinStub.java
Log message:
smaller pin
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/vobs/PinStub.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: libvob/org/nongnu/libvob/vobs/PinStub.java
diff -u libvob/org/nongnu/libvob/vobs/PinStub.java:1.2
libvob/org/nongnu/libvob/vobs/PinStub.java:1.3
--- libvob/org/nongnu/libvob/vobs/PinStub.java:1.2 Tue Apr 8 16:46:36 2003
+++ libvob/org/nongnu/libvob/vobs/PinStub.java Fri Apr 11 08:17:35 2003
@@ -33,36 +33,46 @@
/**Pin like Stub vob for marking hidden connections. */
public class PinStub extends AbstractVob {
-public static final String rcsid = "$Id: PinStub.java,v 1.2 2003/04/08
20:46:36 tjl Exp $";
+public static final String rcsid = "$Id: PinStub.java,v 1.3 2003/04/11
12:17:35 humppake Exp $";
private float x0, y0, x1, y1;
private Color color;
private Point pt0, pt1;
/** pin's length factor */
- private float f = 0.3f;
+ private float f;
/** pin's radius */
- private float r = 3f;
+ private float r;
/**
- * @param x0, y0 Coordinate inside first coord system
- * @param x1, y1 Coordinate inside second coord system
+ * @param x0, y0 Coordinate inside first coord system
+ * @param x1, y1 Coordinate inside second coord system
+ * @param color Drawing color.
+ * @param f Pin's stick's length factor.
+ * @param r Pin's radius.
*/
public PinStub(float x0, float y0, float x1, float y1,
- Color color) {
+ Color color, float f, float r) {
super();
this.x0 = x0;
this.y0 = y0;
this.x1 = x1;
this.y1 = y1;
this.color = color;
+ this.r = r;
+ this.f = f;
this.pt0 = new Point();
this.pt1 = new Point();
}
public PinStub(float x0, float y0, float x1, float y1) {
this(x0, y0, x1, y1, null);
}
+ public PinStub(float x0, float y0, float x1, float y1,
+ Color color) {
+ /** Default values for pin's lengt factor and radius. */
+ this(x0, y0, x1, y1, color, 0.2f, 2f);
+ }
public void render(Graphics g,
boolean fast,
@@ -92,5 +102,3 @@
return 0;
}
}
-
-