Ignore:
Timestamp:
07/02/08 12:38:54 (16 years ago)
Author:
ra33
Message:

added functionality for dockable @v's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/AttributeUtils.java

    r108 r115  
    322322                                                if (((Float) o) < 0.0001)
    323323                                                        continue;
     324                                                o = Math.round((Float)o);
    324325                                        } else if (o instanceof Double) {
    325326                                                // -1 indicates default value
     
    333334                                        } else if (o instanceof Point) {
    334335                                                Point p = (Point) o;
    335                                                 o = (int) p.getX() + " " + (int) p.getY();
     336                                                o = Math.round(p.getX()) + " " + Math.round(p.getY());
    336337                                        } else if (o instanceof Font) {
    337338                                                Font f = (Font) o;
     
    357358                                                                        .append(m.getName().substring(GET_LENGTH))
    358359                                                                        .append(SEPARATOR_STRING).append(ob)
    359                                                                         .append("\n");
     360                                                                        .append('\n');
    360361                                                continue;
    361362                                        } else if (o instanceof int[]) {
     
    374375                                        // Append the attributes
    375376                                        attributes.append(m.getName().substring(GET_LENGTH))
    376                                                         .append(SEPARATOR_STRING).append(o).append("\n");
     377                                                        .append(SEPARATOR_STRING).append(o).append('\n');
    377378                                } catch (Exception e) {
    378379                                        // TODO Auto-generated catch block
     
    386387                        return null;
    387388
    388                 while (attributes.charAt(attributes.length() - 1) == '\n')
     389                while (attributes. charAt(attributes.length() - 1) == '\n')
    389390                        attributes.delete(attributes.length() - 1, attributes.length());
    390391
Note: See TracChangeset for help on using the changeset viewer.