Component scaling support
[debian/openrocket] / src / net / sf / openrocket / gui / adaptors / DoubleModel.java
index 7b3783a03cea624fb3ddc0bdc17b1e3b50701e1f..ce81e1076ff4b3f31b8656cbdf7a25d200fb1181 100644 (file)
@@ -528,18 +528,44 @@ public class DoubleModel implements ChangeListener, ChangeSource, Invalidatable
        private Invalidator invalidator = new Invalidator(this);
        
        
+       /**
+        * Generate a DoubleModel that contains an internal double value.
+        * 
+        * @param value         the initial value.
+        */
        public DoubleModel(double value) {
                this(value, UnitGroup.UNITS_NONE, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY);
        }
        
+       /**
+        * Generate a DoubleModel that contains an internal double value.
+        * 
+        * @param value         the initial value.
+        * @param unit          the unit for the value.
+        */
        public DoubleModel(double value, UnitGroup unit) {
                this(value, unit, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY);
        }
        
+       /**
+        * Generate a DoubleModel that contains an internal double value.
+        * 
+        * @param value         the initial value.
+        * @param unit          the unit for the value.
+        * @param min           minimum value.
+        */
        public DoubleModel(double value, UnitGroup unit, double min) {
                this(value, unit, min, Double.POSITIVE_INFINITY);
        }
        
+       /**
+        * Generate a DoubleModel that contains an internal double value.
+        * 
+        * @param value         the initial value.
+        * @param unit          the unit for the value.
+        * @param min           minimum value.
+        * @param max           maximum value.
+        */
        public DoubleModel(double value, UnitGroup unit, double min, double max) {
                this.lastValue = value;
                this.minValue = min;