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/PDF2Writer.java

    r1102 r1144  
    243243        private void drawPolygon(PdfContentByte cb, PolygonBounds poly, Colour fill, Colour line, float lineThickness) {
    244244                if(poly != null) {
    245                         cb.moveTo(poly.toArray()[0].x, _height - poly.toArray()[0].y);
     245                        cb.moveTo(poly.toArray()[0].getX(), _height - poly.toArray()[0].getY());
    246246                        for(int i = 1; i < poly.toArray().length; i++) {
    247                                 cb.lineTo(poly.toArray()[i].x, _height - poly.toArray()[i].y);
     247                                cb.lineTo(poly.toArray()[i].getX(), _height - poly.toArray()[i].getY());
    248248                        }
    249249                        cb.closePath();
Note: See TracChangeset for help on using the changeset viewer.