Ignore:
Timestamp:
2016-08-18T03:25:35+02:00 (8 years ago)
Author:
donvip
Message:

update to JOSM 10827

Location:
applications/editors/josm/plugins/routes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routes/build.xml

    r32680 r32826  
    22<project name="routes" default="dist" basedir=".">
    33    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    4     <property name="plugin.main.version" value="10580"/>
     4    <property name="plugin.main.version" value="10827"/>
    55    <property name="josm" location="../../core/dist/josm-custom.jar"/>
    66    <property name="plugin.dist.dir" value="../../dist"/>
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/paint/AbstractLinePainter.java

    r30738 r32826  
    2222            Point intersection)
    2323    {
    24         double  x1 = l1.getX1(), y1 = l1.getY1(),
    25         x2 = l1.getX2(), y2 = l1.getY2(),
    26         x3 = l2.getX1(), y3 = l2.getY1(),
    27         x4 = l2.getX2(), y4 = l2.getY2();
     24        double x1 = l1.getX1(), y1 = l1.getY1(),
     25               x2 = l1.getX2(), y2 = l1.getY2(),
     26               x3 = l2.getX1(), y3 = l2.getY1(),
     27               x4 = l2.getX2(), y4 = l2.getY2();
    2828        double dx1 = x2 - x1;
    2929        double dx2 = x4 - x3;
     
    145145    }
    146146
    147     private void drawSegment(Graphics2D g, NavigatableComponent nc, GeneralPath path, Point p1, Point p2) {
     147    private void drawSegment(Graphics2D g, NavigatableComponent nc, GeneralPath path, Point2D p1, Point2D p2) {
    148148        boolean drawIt = false;
    149149        if (Main.isOpenjdk) {
     
    165165        if (drawIt) {
    166166            /* draw segment line */
    167             path.moveTo(p1.x, p1.y);
    168             path.lineTo(p2.x, p2.y);
     167            path.moveTo(p1.getX(), p1.getY());
     168            path.lineTo(p2.getX(), p2.getY());
    169169        }
    170170    }
    171171
    172     private boolean isSegmentVisible(NavigatableComponent nc, Point p1, Point p2) {
    173         if ((p1.x < 0) && (p2.x < 0)) return false;
    174         if ((p1.y < 0) && (p2.y < 0)) return false;
    175         if ((p1.x > nc.getWidth()) && (p2.x > nc.getWidth())) return false;
    176         if ((p1.y > nc.getHeight()) && (p2.y > nc.getHeight())) return false;
     172    private boolean isSegmentVisible(NavigatableComponent nc, Point2D p1, Point2D p2) {
     173        if ((p1.getX() < 0) && (p2.getX() < 0)) return false;
     174        if ((p1.getY() < 0) && (p2.getY() < 0)) return false;
     175        if ((p1.getX() > nc.getWidth()) && (p2.getX() > nc.getWidth())) return false;
     176        if ((p1.getY() > nc.getHeight()) && (p2.getY() > nc.getHeight())) return false;
    177177        return true;
    178178    }
Note: See TracChangeset for help on using the changeset viewer.