Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (8 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

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

    r32425 r32556  
     1// License: GPL. For details, see LICENSE file.
    12package cadastre_fr;
    23
     
    3940    private int initialClickDelay;
    4041
    41     public void addListener(){
     42    public void addListener() {
    4243        Main.map.mapView.addMouseListener(this);
    4344    }
     
    5152       mode = cGetCorners;
    5253       countMouseClicked = 0;
    53        initialClickDelay = Main.pref.getInteger("cadastrewms.georef-click-delay",200);
     54       initialClickDelay = Main.pref.getInteger("cadastrewms.georef-click-delay", 200);
    5455       mouseClickedTime = System.currentTimeMillis();
    55        Object[] options = { "OK", "Cancel" };
    56        int ret = JOptionPane.showOptionDialog( null,
     56       Object[] options = {"OK", "Cancel"};
     57       int ret = JOptionPane.showOptionDialog(null,
    5758               tr("Click first corner for image cropping\n(two points required)"),
    5859               tr("Image cropping"),
     
    7576      countMouseClicked = 0;
    7677      mode = cGetLambertCrosspieces;
    77       initialClickDelay = Main.pref.getInteger("cadastrewms.georef-click-delay",200);
     78      initialClickDelay = Main.pref.getInteger("cadastrewms.georef-click-delay", 200);
    7879      mouseClickedTime = System.currentTimeMillis();
    79       Object[] options = { "OK", "Cancel" };
    80       int ret = JOptionPane.showOptionDialog( null,
     80      Object[] options = {"OK", "Cancel"};
     81      int ret = JOptionPane.showOptionDialog(null,
    8182              tr("Click first Lambert crosspiece for georeferencing\n(two points required)"),
    8283              tr("Image georeferencing"),
     
    9192  }
    9293
    93   public boolean isRunning()
    94   {
     94  public boolean isRunning() {
    9595      return (countMouseClicked != 0 || mode != 0);
    9696  }
     
    101101          Main.info("mouse click bounce detected");
    102102          return; // mouse click anti-bounce
    103       }
    104       else
     103      } else
    105104          mouseClickedTime = System.currentTimeMillis();
    106105      if (e.getButton() != MouseEvent.BUTTON1)
     
    115114          // ignore clicks outside the image
    116115          if (ea.east() < wmsLayer.getImage(0).min.east() || ea.east() > wmsLayer.getImage(0).max.east()
    117                   || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north())
    118           {
     116                  || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north()) {
    119117              Main.info("ignore click outside the image");
    120118              return;
     
    144142  }
    145143
    146 
    147144  /**
    148145   *
     
    150147   */
    151148 private boolean canceledOrRestartCurrAction(String action) {
    152      Object[] options = { "Cancel", "Retry" };
    153      int selectedValue = JOptionPane.showOptionDialog( null,
     149     Object[] options = {"Cancel", "Retry"};
     150     int selectedValue = JOptionPane.showOptionDialog(null,
    154151             tr("Do you want to cancel completely\n"+
    155152                     "or just retry "+action+" ?"), "",
     
    177174 private void affineTransform(EastNorth org1, EastNorth org2, EastNorth dst1, EastNorth dst2) {
    178175     // handle an NPE case I'm not able to reproduce
    179      if(org1==null || org2==null || dst1==null || dst2==null)
    180      {
     176     if (org1 == null || org2 == null || dst1 == null || dst2 == null) {
    181177         JOptionPane.showMessageDialog(Main.parent,
    182178                 tr("Ooops. I failed to catch all coordinates\n"+
     
    286282 */
    287283private boolean continueCropping() {
    288     Object[] options = { "OK", "Cancel" };
    289     int ret = JOptionPane.showOptionDialog( null,
     284    Object[] options = {"OK", "Cancel"};
     285    int ret = JOptionPane.showOptionDialog(null,
    290286            tr("Click second corner for image cropping"),
    291287            tr("Image cropping"),
     
    316312 */
    317313private boolean continueGeoreferencing() {
    318     Object[] options = { "OK", "Cancel" };
    319     int ret = JOptionPane.showOptionDialog( null,
     314    Object[] options = {"OK", "Cancel"};
     315    int ret = JOptionPane.showOptionDialog(null,
    320316            tr("Click second Lambert crosspiece for georeferencing"),
    321317            tr("Image georeferencing"),
Note: See TracChangeset for help on using the changeset viewer.