Prevent "Radial Film Capacitor" from switching to standing mode when end

points are too close
This commit is contained in:
bancika
2020-04-23 18:58:36 +02:00
parent c63b26b660
commit f408ce15b5
3 changed files with 9 additions and 5 deletions
@@ -48,11 +48,6 @@ public abstract class AbstractFilmCapacitor extends AbstractLeadedComponent<Capa
protected Boolean showOuterFoil = false;
protected Color outerFoilColor = OUTER_FOIL_COLOR;
@Override
protected boolean supportsStandingMode() {
return true;
}
@EditableProperty(validatorClass = PositiveMeasureValidator.class)
public Capacitance getValue() {
return value;
@@ -61,4 +61,9 @@ public class AxialFilmCapacitor extends AbstractFilmCapacitor {
return new Rectangle2D.Double(0f, 0f, getLength().convertToPixels(),
getClosestOdd(getWidth().convertToPixels()));
}
@Override
protected boolean supportsStandingMode() {
return true;
}
}