Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9978/src/net/sourceforge/bprocessor/gl
Modified Files:
GLView.java
Log Message:
Added methods to input two doubles to the length field
Index: GLView.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLView.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** GLView.java 23 Mar 2006 10:43:44 -0000 1.36
--- GLView.java 10 Apr 2006 07:12:40 -0000 1.37
***************
*** 190,193 ****
--- 190,202 ----
lengthField.setText(length);
}
+
+ /**
+ * Set the lengthField display to two parameters
+ * @param x The first parameter
+ * @param y The second parameter
+ */
+ public void setLength(double x, double y) {
+ lengthField.setText(x, y);
+ }
/**
***************
*** 257,260 ****
--- 266,280 ----
super.setText(Integer.toString(mm));
}
+
+ /**
+ * Set the text in the field to two commaseparated value x and y
+ * @param x the first value
+ * @param y the second value
+ */
+ public void setText(double x, double y) {
+ int xmm = (int) (x * 1000.0);
+ int ymm = (int) (y * 1000.0);
+ super.setText(Integer.toString(xmm) + ", " + Integer.toString(ymm));
+ }
/**
|