Changeset 115 for trunk/src/org/expeditee/gui/AttributeUtils.java
- Timestamp:
- 07/02/08 12:38:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/AttributeUtils.java
r108 r115 322 322 if (((Float) o) < 0.0001) 323 323 continue; 324 o = Math.round((Float)o); 324 325 } else if (o instanceof Double) { 325 326 // -1 indicates default value … … 333 334 } else if (o instanceof Point) { 334 335 Point p = (Point) o; 335 o = (int) p.getX() + " " + (int) p.getY();336 o = Math.round(p.getX()) + " " + Math.round(p.getY()); 336 337 } else if (o instanceof Font) { 337 338 Font f = (Font) o; … … 357 358 .append(m.getName().substring(GET_LENGTH)) 358 359 .append(SEPARATOR_STRING).append(ob) 359 .append( "\n");360 .append('\n'); 360 361 continue; 361 362 } else if (o instanceof int[]) { … … 374 375 // Append the attributes 375 376 attributes.append(m.getName().substring(GET_LENGTH)) 376 .append(SEPARATOR_STRING).append(o).append( "\n");377 .append(SEPARATOR_STRING).append(o).append('\n'); 377 378 } catch (Exception e) { 378 379 // TODO Auto-generated catch block … … 386 387 return null; 387 388 388 while (attributes. charAt(attributes.length() - 1) == '\n')389 while (attributes. charAt(attributes.length() - 1) == '\n') 389 390 attributes.delete(attributes.length() - 1, attributes.length()); 390 391
Note:
See TracChangeset
for help on using the changeset viewer.