home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- class Spring$ScaleSpring extends Spring {
- // $FF: renamed from: s javax.swing.Spring
- private Spring field_0;
- private float factor;
-
- private Spring$ScaleSpring(Spring var1, float var2) {
- this.field_0 = var1;
- this.factor = var2;
- }
-
- public int getMinimumValue() {
- return Math.round((float)(this.factor < 0.0F ? this.field_0.getMaximumValue() : this.field_0.getMinimumValue()) * this.factor);
- }
-
- public int getPreferredValue() {
- return Math.round((float)this.field_0.getPreferredValue() * this.factor);
- }
-
- public int getMaximumValue() {
- return Math.round((float)(this.factor < 0.0F ? this.field_0.getMinimumValue() : this.field_0.getMaximumValue()) * this.factor);
- }
-
- public int getValue() {
- return Math.round((float)this.field_0.getValue() * this.factor);
- }
-
- public void setValue(int var1) {
- if (var1 == Integer.MIN_VALUE) {
- this.field_0.setValue(Integer.MIN_VALUE);
- } else {
- this.field_0.setValue(Math.round((float)var1 / this.factor));
- }
-
- }
-
- boolean isCyclic(SpringLayout var1) {
- return this.field_0.isCyclic(var1);
- }
-
- // $FF: synthetic method
- Spring$ScaleSpring(Spring var1, float var2, Spring.1 var3) {
- this(var1, var2);
- }
- }
-