public PlanPrint(Map map) { super( map, MAPACTION_NAME, Messaging.getInstance().getMessageText(GisMessage.PLAN_GENERATION_TOOLTIP), String.format("resources/%s.png", MAPACTION_NAME)); // the following changes the layout properties file for // the org.geotools.swing.mapaction.extended.print.java // in order to use it for plan generation this.layoutLocation = LAYOUT_RESOURCE_LOCATION; }
private void cmdModifyActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_cmdModifyActionPerformed try { Double.parseDouble(this.txtX.getText()); Double.parseDouble(this.txtY.getText()); this.status = Status.ModifyNode; this.setVisible(false); } catch (NumberFormatException ex) { Messaging.getInstance().show(GisMessage.CADASTRE_REDEFINITION_COORDS_NOT_VALID); } } // GEN-LAST:event_cmdModifyActionPerformed
private void cmdAddActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_cmdAddActionPerformed try { Double x = Double.valueOf(this.txtX.getText()); Double y = Double.valueOf(this.txtY.getText()); SurveyPointBean bean = new SurveyPointBean(); bean.setX(x); bean.setY(y); // Ticket 98 - Set the id for the manually entered coordinate bean.setId(Integer.toString(theBean.getBeanList().size() + 1)); this.theBean.getBeanList().add(bean); } catch (NumberFormatException ex) { Messaging.getInstance().show(GisMessage.CADASTRE_SURVEY_ADD_POINT); } } // GEN-LAST:event_cmdAddActionPerformed