|
|
@ -146,11 +146,16 @@ public class AxisSettings extends Observable implements SettingOwner |
|
|
{ |
|
|
{ |
|
|
if(activated && d >= maxValue.getDoubleValue()) throw new SettingException("Minimum value should be < Maximum value"); |
|
|
if(activated && d >= maxValue.getDoubleValue()) throw new SettingException("Minimum value should be < Maximum value"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void checkValueInteger(int i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i >= maxValue.getDoubleValue()) throw new SettingException("Minimum value should be < Maximum value"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void checkValueInteger(int i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i >= maxValue.getDoubleValue()) throw new SettingException("Minimum value should be < Maximum value"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void checkValueLong(long i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i >= maxValue.getDoubleValue()) throw new SettingException("Minimum value should be < Maximum value"); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
maxValue.addConstraint(new NumericConstraint() |
|
|
maxValue.addConstraint(new NumericConstraint() |
|
|
{ |
|
|
{ |
|
|
@ -163,6 +168,11 @@ public class AxisSettings extends Observable implements SettingOwner |
|
|
{ |
|
|
{ |
|
|
if(activated && i <= minValue.getDoubleValue()) throw new SettingException("Maximum value should be > Minimum value"); |
|
|
if(activated && i <= minValue.getDoubleValue()) throw new SettingException("Maximum value should be > Minimum value"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void checkValueLong(long i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i <= maxValue.getDoubleValue()) throw new SettingException("Minimum value should be > Maximum value"); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
minimumPower.addConstraint(new NumericConstraint() |
|
|
minimumPower.addConstraint(new NumericConstraint() |
|
|
{ |
|
|
{ |
|
|
@ -170,11 +180,16 @@ public class AxisSettings extends Observable implements SettingOwner |
|
|
{ |
|
|
{ |
|
|
if(activated && d >= maximumPower.getDoubleValue()) throw new SettingException("Minimum power should be < Maximum power"); |
|
|
if(activated && d >= maximumPower.getDoubleValue()) throw new SettingException("Minimum power should be < Maximum power"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void checkValueInteger(int i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i >= maximumPower.getDoubleValue()) throw new SettingException("Minimum power should be < Maximum power"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void checkValueInteger(int i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i >= maximumPower.getDoubleValue()) throw new SettingException("Minimum power should be < Maximum power"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void checkValueLong(long i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i >= maximumPower.getDoubleValue()) throw new SettingException("Minimum power should be < Maximum power"); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
maximumPower.addConstraint(new NumericConstraint() |
|
|
maximumPower.addConstraint(new NumericConstraint() |
|
|
{ |
|
|
{ |
|
|
@ -182,8 +197,13 @@ public class AxisSettings extends Observable implements SettingOwner |
|
|
{ |
|
|
{ |
|
|
if(activated && d <= minimumPower.getDoubleValue()) throw new SettingException("Maximum power should be > Minimum power"); |
|
|
if(activated && d <= minimumPower.getDoubleValue()) throw new SettingException("Maximum power should be > Minimum power"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void checkValueInteger(int i) throws SettingException |
|
|
|
|
|
{ |
|
|
|
|
|
if(activated && i <= minimumPower.getDoubleValue()) throw new SettingException("Maximum power should be > Minimum power"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void checkValueInteger(int i) throws SettingException |
|
|
|
|
|
|
|
|
public void checkValueLong(long i) throws SettingException |
|
|
{ |
|
|
{ |
|
|
if(activated && i <= minimumPower.getDoubleValue()) throw new SettingException("Maximum power should be > Minimum power"); |
|
|
if(activated && i <= minimumPower.getDoubleValue()) throw new SettingException("Maximum power should be > Minimum power"); |
|
|
} |
|
|
} |
|
|
|