PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git] / src / jexer / event / TResizeEvent.java
index 8b2b36759c414c3c564f7cbb30b4d5f89c689d50..4e15121c3fddf49e58e79d9818d63e365fa290bd 100644 (file)
@@ -33,6 +33,10 @@ package jexer.event;
  */
 public final class TResizeEvent extends TInputEvent {
 
+    // ------------------------------------------------------------------------
+    // Constants --------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Resize events can be generated for either a total screen resize or a
      * widget/window resize.
@@ -49,11 +53,46 @@ public final class TResizeEvent extends TInputEvent {
         WIDGET
     }
 
+    // ------------------------------------------------------------------------
+    // Variables --------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * The type of resize.
      */
     private Type type;
 
+    /**
+     * New width.
+     */
+    private int width;
+
+    /**
+     * New height.
+     */
+    private int height;
+
+    // ------------------------------------------------------------------------
+    // Constructors -----------------------------------------------------------
+    // ------------------------------------------------------------------------
+
+    /**
+     * Public contructor.
+     *
+     * @param type the Type of resize, Screen or Widget
+     * @param width the new width
+     * @param height the new height
+     */
+    public TResizeEvent(final Type type, final int width, final int height) {
+        this.type   = type;
+        this.width  = width;
+        this.height = height;
+    }
+
+    // ------------------------------------------------------------------------
+    // TResizeEvent -----------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Get resize type.
      *
@@ -63,11 +102,6 @@ public final class TResizeEvent extends TInputEvent {
         return type;
     }
 
-    /**
-     * New width.
-     */
-    private int width;
-
     /**
      * Get the new width.
      *
@@ -77,11 +111,6 @@ public final class TResizeEvent extends TInputEvent {
         return width;
     }
 
-    /**
-     * New height.
-     */
-    private int height;
-
     /**
      * Get the new height.
      *
@@ -91,19 +120,6 @@ public final class TResizeEvent extends TInputEvent {
         return height;
     }
 
-    /**
-     * Public contructor.
-     *
-     * @param type the Type of resize, Screen or Widget
-     * @param width the new width
-     * @param height the new height
-     */
-    public TResizeEvent(final Type type, final int width, final int height) {
-        this.type   = type;
-        this.width  = width;
-        this.height = height;
-    }
-
     /**
      * Make human-readable description of this TResizeEvent.
      *