mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-13 02:32:09 +10:00
cleanup isPolarized
This commit is contained in:
-5
@@ -347,9 +347,4 @@ public class FuseHolderPanel extends AbstractMultiPartComponent<String> {
|
||||
Rectangle2D bounds = getBody()[0].getBounds2D();
|
||||
return new Rectangle2D.Double(bounds.getX() - margin, bounds.getY() - margin, bounds.getWidth() + 2 * margin, bounds.getHeight() + 2 * margin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,9 +155,4 @@ public class AirCoreInductor extends AbstractLeadedComponent<Inductance> {
|
||||
public void setResistance(Resistance resistance) {
|
||||
this.resistance = resistance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
-5
@@ -280,9 +280,4 @@ public class AxialElectrolyticCapacitor extends AbstractLeadedComponent<Capacita
|
||||
|
||||
return new Color((int) r, (int) g, (int) b, (int) a);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return polarized;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,9 +104,4 @@ public class AxialFilmCapacitor extends AbstractFilmCapacitor implements IDatash
|
||||
public boolean getFlipStanding() {
|
||||
return super.getFlipStanding();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,11 +96,6 @@ public class CapacitorSymbol extends AbstractSchematicLeadedSymbol<Capacitance>
|
||||
this.polarized = polarized;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return polarized;
|
||||
}
|
||||
|
||||
public void drawIcon(Graphics2D g2d, int width, int height) {
|
||||
g2d.rotate(-Math.PI / 4, width / 2, height / 2);
|
||||
g2d.setColor(LEAD_COLOR);
|
||||
|
||||
@@ -133,9 +133,4 @@ public class CrystalOscillator extends AbstractLeadedComponent<Frequency> implem
|
||||
protected Size getDefaultWidth() {
|
||||
return DEFAULT_WIDTH;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,9 +147,4 @@ public class FuseSymbol extends AbstractSchematicLeadedSymbol<Current> {
|
||||
public enum DrawStyle {
|
||||
ANSI, IEC, IEEE
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -508,11 +508,6 @@ public class HeatSinkResistor extends AbstractLeadedComponent<Resistance> implem
|
||||
g2d.draw(a);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public enum MountingHoleCount {
|
||||
TWO_DIAGONAL("2 diagonal"),
|
||||
FOUR("4 holes"),
|
||||
|
||||
@@ -151,9 +151,4 @@ public class InductorSymbol extends AbstractSchematicLeadedSymbol<Inductance> {
|
||||
public void setCore(boolean core) {
|
||||
this.core = core;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
-5
@@ -116,9 +116,4 @@ public class RadialCeramicDiskCapacitor extends AbstractRadialComponent<Capacita
|
||||
protected Shape getBodyShape() {
|
||||
return new Ellipse2D.Double(0f, 0f, getLength().convertToPixels(), getClosestOdd(getWidth().convertToPixels()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,9 +323,4 @@ public class RadialElectrolytic extends AbstractRadialComponent<Capacitance> imp
|
||||
}
|
||||
return new Ellipse2D.Double(0f, 0f, getClosestOdd(diameter), getClosestOdd(diameter));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return polarized;
|
||||
}
|
||||
}
|
||||
|
||||
-5
@@ -151,9 +151,4 @@ public class RadialFilmCapacitor extends AbstractFilmCapacitor implements IDatas
|
||||
return name().substring(0, 1) + name().substring(1).toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,9 +299,4 @@ public class RadialInductor extends AbstractRadialComponent<Inductance> {
|
||||
public void setLip(Size lip) {
|
||||
this.lip = lip;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
-5
@@ -147,9 +147,4 @@ public class RadialMicaCapacitor extends AbstractRadialComponent<Capacitance> im
|
||||
a.add(new Area(new Ellipse2D.Double(length - width, 0, width, width)));
|
||||
return a;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,11 +221,6 @@ public class Resistor extends AbstractLeadedComponent<Resistance> implements IGe
|
||||
return super.getFlipStanding();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public enum ResistorShape {
|
||||
Tubular, Tubular_Beveled, Standard;
|
||||
|
||||
|
||||
@@ -160,11 +160,6 @@ public class ResistorSymbol extends AbstractSchematicLeadedSymbol<Resistance> {
|
||||
public enum DrawStyle {
|
||||
ANSI, IEC
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -244,9 +244,4 @@ public class TantalumCapacitor extends AbstractRadialComponent<Capacitance> {
|
||||
}
|
||||
return new Ellipse2D.Double(0f, 0f, getClosestOdd(diameter), getClosestOdd(diameter));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,9 +165,4 @@ public class ToroidalInductor extends AbstractLeadedComponent<Inductance> implem
|
||||
public void setResistance(Resistance resistance) {
|
||||
this.resistance = resistance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPolarized() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user