Ignore:
Timestamp:
09/18/18 12:02:44 (6 years ago)
Author:
bln4
Message:

Used Eclipse refactoring to encapsulate Point.X and Point.Y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/Conversion.java

    r1102 r1144  
    475475
    476476                        if (orig == null) {
    477                                 p.x = Integer.parseInt(xPos.trim());
    478                                 p.y = Integer.parseInt(yPos.trim());
     477                                p.setX(Integer.parseInt(xPos.trim()));
     478                                p.setY(Integer.parseInt(yPos.trim()));
    479479                        } else {
    480480                                assert (orig instanceof Point);
    481481                                Point originalPoint = (Point) orig;
    482                                 p.x = (Integer) Convert(int.class, xPos, originalPoint.x);
    483                                 p.y = (Integer) Convert(int.class, yPos, originalPoint.y);
     482                                p.setX((Integer) Convert(int.class, xPos, originalPoint.getX()));
     483                                p.setY((Integer) Convert(int.class, yPos, originalPoint.getY()));
    484484                        }
    485485                        return p;
     
    693693                // covert points
    694694                if (output instanceof Point)
    695                         return ((Point) output).x + " " + ((Point) output).y;
     695                        return ((Point) output).getX() + " " + ((Point) output).getY();
    696696
    697697                if (output instanceof Boolean)
Note: See TracChangeset for help on using the changeset viewer.