[Dive4elements-commits] [PATCH 08 of 10] CrossSectionApp: Doc and whitespace cosmetics

Wald Commits scm-commit at wald.intevation.org
Tue Jan 8 16:54:02 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1357644807 -3600
# Node ID 522b424c9c2aae410667ee0980fb366238a8f9b9
# Parent  170cf87a042a387a5319a70b1818ff52b01d0de9
CrossSectionApp: Doc and whitespace cosmetics.

diff -r 170cf87a042a -r 522b424c9c2a flys-artifacts/src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java	Tue Jan 08 12:31:21 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java	Tue Jan 08 12:33:27 2013 +0100
@@ -79,6 +79,7 @@
 import org.jfree.ui.ApplicationFrame;
 import org.jfree.ui.RefineryUtilities;
 
+
 /**
  * Standalone tech-demo.
  */
@@ -236,9 +237,10 @@
         JPanel content = createContent();
         content.setPreferredSize(new Dimension(800, 480));
         setContentPane(content);
-
     }
 
+
+    /** Query and return CrossSections for named river. */
     public List<CrossSection> crossSections(String river) {
         Query query = session.createQuery(
             "from CrossSection where river.name = :river");
@@ -269,7 +271,6 @@
     public JPanel createContent() {
         JPanel panel = new JPanel(new BorderLayout());
 
-
         JPanel nav = new JPanel(new FlowLayout());
 
         crossSections = crossSections(RIVER);
@@ -419,7 +420,6 @@
             return;
         }
 
-
         double km = Math.round(csli.km.doubleValue() * 1000d)/1000d;
 
         String kmS = String.valueOf(km).replace(".", "-");


More information about the Dive4elements-commits mailing list