Update of /cvsroot/bprocessor/facade/src/net/sourceforge/bprocessor/facade/modellor
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26880/src/net/sourceforge/bprocessor/facade/modellor
Modified Files:
FacadeModellor.java
Log Message:
Fixed a few style errors
Refactored persistence-code
Index: FacadeModellor.java
===================================================================
RCS file: /cvsroot/bprocessor/facade/src/net/sourceforge/bprocessor/facade/modellor/FacadeModellor.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** FacadeModellor.java 4 Nov 2006 12:26:31 -0000 1.26
--- FacadeModellor.java 6 Nov 2006 11:01:03 -0000 1.27
***************
*** 119,122 ****
--- 119,123 ----
/** The constructor for the modellor
* @param s the space this modellor models for.
+ * @param front Front
*/
public FacadeModellor(Space s, Surface front) {
***************
*** 403,408 ****
double lengthH = intervalH;
if (type == SINGLE_BAR) {
! intervalV = intervalV - ((frameWidth * 2) + vertPosts * vertPostWidth)/ (vertPosts + 1);
! intervalH = intervalH - ((frameWidth * 2) + horPosts * horPostWidth)/ (horPosts + 1);
intervalV += vertPostWidth;
intervalH += horPostWidth;
--- 404,409 ----
double lengthH = intervalH;
if (type == SINGLE_BAR) {
! intervalV = intervalV - ((frameWidth * 2) + vertPosts * vertPostWidth) / (vertPosts + 1);
! intervalH = intervalH - ((frameWidth * 2) + horPosts * horPostWidth) / (horPosts + 1);
intervalV += vertPostWidth;
intervalH += horPostWidth;
|