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/gio/swing/SwingConversions.java

    r1097 r1144  
    4040                if (point == null) return null;
    4141               
    42                 return new java.awt.Point(point.x, point.y);
     42                return new java.awt.Point(point.getX(), point.getY());
    4343        }
    4444       
     
    170170                java.awt.Color color2 = toSwingColor(fill.getToColour());
    171171               
    172                 return new java.awt.GradientPaint(fill.getFromPoint().x, fill.getFromPoint().y, color1, fill.getToPoint().x, fill.getToPoint().y, color2, !fill.isAcyclic());
     172                return new java.awt.GradientPaint(fill.getFromPoint().getX(), fill.getFromPoint().getY(), color1, fill.getToPoint().getX(), fill.getToPoint().getY(), color2, !fill.isAcyclic());
    173173        }
    174174       
     
    274274                for (int i = 0; i < polygonBounds.getPointCount(); i++) {
    275275                        org.expeditee.core.Point p = polygonBounds.getPoint(i);
    276                         polygon.addPoint(p.x, p.y);
     276                        polygon.addPoint(p.getX(), p.getY());
    277277                }
    278278               
Note: See TracChangeset for help on using the changeset viewer.