Changeset 27220 in osm


Ignore:
Timestamp:
2011-12-12T14:30:33+01:00 (13 years ago)
Author:
larry0ua
Message:

'PicLayer - changed marker icon to make it more visible'

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

Legend:

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

    r27191 r27220  
    2222-->
    2323<project name="PicLayer" default="dist" basedir=".">
    24     <property name="commit.message" value="PicLayer - 1. now all toolbar operations are done relatively to screen center. 2. If user tries to close layer without saving - confirmation is needed. 3. Other small fixes"/>
     24    <property name="commit.message" value="PicLayer - changed marker icon to make it more visible"/>
    2525    <property name="plugin.main.version" value="4549"/>
    2626    <!--
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerAbstract.java

    r27191 r27220  
    7777    private Icon layerIcon = null;
    7878
    79     private boolean drawPoints = true;
     79    private boolean drawMarkers = true;
    8080
    8181    public void setDrawPoints(boolean value) {
    82         drawPoints = value;
     82        drawMarkers = value;
    8383    }
    8484
     
    122122        if (pinImage == null) {
    123123            // allow system to load the image and use it in future
    124             pinImage = new ImageIcon(Toolkit.getDefaultToolkit().createImage(getClass().getResource("/images/arrow.png"))).getImage();
     124            pinImage = new ImageIcon(Toolkit.getDefaultToolkit().createImage(getClass().getResource("/images/marker.png"))).getImage();
    125125        }
    126126    }
     
    245245                );
    246246            }
    247             if (drawPoints ) {
    248                 // draw points for selection
     247            if (drawMarkers ) {
     248                // draw markers for selection
    249249                Graphics2D gPoints = (Graphics2D)g2.create();
    250250
     
    259259                   Point2D trP = tr.transform(p, null);
    260260                   int x = (int)trP.getX(), y = (int)trP.getY();
    261                    gPoints.drawOval(x-2, y-2, 5, 5);
    262                    gPoints.drawImage(pinImage, x, y, null);
     261                   //gPoints.drawOval(x-2, y-2, 5, 5);
     262                   gPoints.drawImage(pinImage, x-15, y-15, null);
    263263                }
    264264            }
Note: See TracChangeset for help on using the changeset viewer.