remove fuse param for IEC

This commit is contained in:
Branislav Stojkovic
2019-01-14 21:16:22 +01:00
parent 77d038cef9
commit 252b9ef560
3 changed files with 50 additions and 65 deletions
@@ -83,7 +83,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
protected String name; protected String name;
protected String value; protected String value;
private Orientation orientation = Orientation.DEFAULT; private Orientation orientation = Orientation.DEFAULT;
private boolean hasFuse = false;
private Color bodyColor = BODY_COLOR; private Color bodyColor = BODY_COLOR;
private Color borderColor = BORDER_COLOR; private Color borderColor = BORDER_COLOR;
@@ -186,16 +185,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
body = null; body = null;
} }
@EditableProperty(name = "Fuse")
public boolean getHasFuse() {
return hasFuse;
}
public void setHasFuse(boolean hasFuse) {
this.hasFuse = hasFuse;
body = null;
}
@Override @Override
public void draw(Graphics2D g2d, ComponentState componentState, boolean outlineMode, Project project, public void draw(Graphics2D g2d, ComponentState componentState, boolean outlineMode, Project project,
IDrawingObserver drawingObserver) { IDrawingObserver drawingObserver) {
@@ -278,9 +267,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
body = new Area[3]; body = new Area[3];
if (hasFuse) {
} else {
cutoutRadius = SIMPLE_CUTOUT_RADIUS.convertToPixels(); cutoutRadius = SIMPLE_CUTOUT_RADIUS.convertToPixels();
baseRadius = SIMPLE_BASE_RADIUS.convertToPixels(); baseRadius = SIMPLE_BASE_RADIUS.convertToPixels();
cutoutLength = SIMPLE_CUTOUT_LENGTH.convertToPixels(); cutoutLength = SIMPLE_CUTOUT_LENGTH.convertToPixels();
@@ -330,7 +316,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
}; };
body[2] = new Area(new RoundedPolygon(cutoutPoints, cutoutRadiuses)); body[2] = new Area(new RoundedPolygon(cutoutPoints, cutoutRadiuses));
}
if (orientation != Orientation.DEFAULT) { if (orientation != Orientation.DEFAULT) {
double theta = 0; double theta = 0;
Binary file not shown.
Binary file not shown.