Ignore:
Timestamp:
2009-09-20T10:09:00+02:00 (15 years ago)
Author:
stoecker
Message:

fixed typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java

    r17215 r17702  
    2828
    2929    public static String name = "Georeference an image";
    30    
     30
    3131    private DownloadWMSPlanImage downloadWMSPlanImage;
    3232    private WMSLayer wmsLayer;
     
    5353        mouseClickedTime = System.currentTimeMillis();
    5454    }
    55    
     55
    5656    public void actionInterrupted() {
    5757        actionCompleted();
    5858        wmsLayer = null;
    5959    }
    60    
     60
    6161    @Override
    6262    protected void updateEnabledState() {
     
    6969        actionInterrupted();
    7070    }
    71    
     71
    7272    public void actionPerformed(ActionEvent ae) {
    7373        if (Main.map != null) {
     
    130130        } else if (mode == cGetLambertCrosspieces) {
    131131            if (countMouseClicked == 1) {
    132                 ea1 = ea; 
     132                ea1 = ea;
    133133                if (inputLambertPosition())
    134134                    continueGeoreferencing();
     
    145145        }
    146146    }
    147    
    148     /**
    149      * 
     147
     148    /**
     149     *
    150150     * @return false if all operations are canceled
    151151     */
     
    154154            countMouseClicked = 0;
    155155                Object[] options = { "OK", "Cancel" };
    156                 int ret = JOptionPane.showOptionDialog( null, 
     156                int ret = JOptionPane.showOptionDialog( null,
    157157                                tr("Click first corner for image cropping\n(two points required)"),
    158158                                tr("Image cropping"),
     
    166166            return true;
    167167    }
    168    
    169     /**
    170      * 
     168
     169    /**
     170     *
    171171     * @return false if all operations are canceled
    172172     */
    173173    private boolean continueCropping() {
    174174                Object[] options = { "OK", "Cancel" };
    175                 int ret = JOptionPane.showOptionDialog( null, 
     175                int ret = JOptionPane.showOptionDialog( null,
    176176                                tr("Click second corner for image cropping"),
    177177                                tr("Image cropping"),
     
    184184            return true;
    185185    }
    186    
    187     /**
    188      * 
     186
     187    /**
     188     *
    189189     * @return false if all operations are canceled
    190190     */
     
    193193            mode = cGetLambertCrosspieces;
    194194                Object[] options = { "OK", "Cancel" };
    195                 int ret = JOptionPane.showOptionDialog( null, 
     195                int ret = JOptionPane.showOptionDialog( null,
    196196                                tr("Click first Lambert crosspiece for georeferencing\n(two points required)"),
    197197                                tr("Image georeferencing"),
     
    207207
    208208    /**
    209      * 
     209     *
    210210     * @return false if all operations are canceled
    211211     */
    212212    private boolean continueGeoreferencing() {
    213213                Object[] options = { "OK", "Cancel" };
    214                 int ret = JOptionPane.showOptionDialog( null, 
     214                int ret = JOptionPane.showOptionDialog( null,
    215215                                tr("Click second Lambert crosspiece for georeferencing"),
    216216                                tr("Image georeferencing"),
     
    223223            return true;
    224224    }
    225    
    226     /**
    227      * 
     225
     226    /**
     227     *
    228228     * @return false if all operations are canceled
    229229     */
    230230    private boolean canceledOrRestartCurrAction(String action) {
    231231        Object[] options = { "Cancel", "Retry" };
    232         int selectedValue = JOptionPane.showOptionDialog( null, 
     232        int selectedValue = JOptionPane.showOptionDialog( null,
    233233                        tr("Do you want to cancel completely\n"+
    234234                                        "or just retry "+action+" ?"), "",
     
    245245        return true;
    246246    }
    247    
     247
    248248    private boolean inputLambertPosition() {
    249249        JLabel labelEnterPosition = new JLabel(tr("Enter cadastre east,north position"));
     
    264264        if (countMouseClicked == 1) number = "first";
    265265        else number = "second";
    266         pane.createDialog(Main.parent, tr("Set "+number+" Lambert coordinates")).setVisible(true);
     266        pane.createDialog(Main.parent, tr("Set {0} Lambert coordinates",number)).setVisible(true);
    267267        if (!Integer.valueOf(JOptionPane.OK_OPTION).equals(pane.getValue())) {
    268268            if (canceledOrRestartCurrAction("georeferencing"))
     
    285285        return false;
    286286    }
    287    
    288     /**
    289      * Use point org1 as anchor for scale, then move org1 to dst1, then rotate org2 on dst2 
    290      * around org1/dst1 anchor 
     287
     288    /**
     289     * Use point org1 as anchor for scale, then move org1 to dst1, then rotate org2 on dst2
     290     * around org1/dst1 anchor
    291291     * @param org1 first point at original coordinate system (the grabbed image)
    292292     * @param org2 second point "
    293      * @param dst1 first point at final destination coordinate system (the real east/north coordinate system) 
     293     * @param dst1 first point at final destination coordinate system (the real east/north coordinate system)
    294294     * @param dst2 second point "
    295295     */
     
    309309        wmsLayer.images.get(0).scale(dst1, proportion);
    310310    }
    311    
     311
    312312    public void mouseEntered(MouseEvent arg0) {
    313313    }
     
    321321    public void mouseReleased(MouseEvent arg0) {
    322322    }
    323        
     323
    324324}
Note: See TracChangeset for help on using the changeset viewer.