mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-12 02:02:16 +10:00
remove fuse param for IEC
This commit is contained in:
@@ -83,7 +83,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
|
||||
protected String name;
|
||||
protected String value;
|
||||
private Orientation orientation = Orientation.DEFAULT;
|
||||
private boolean hasFuse = false;
|
||||
|
||||
private Color bodyColor = BODY_COLOR;
|
||||
private Color borderColor = BORDER_COLOR;
|
||||
@@ -186,16 +185,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
|
||||
body = null;
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Fuse")
|
||||
public boolean getHasFuse() {
|
||||
return hasFuse;
|
||||
}
|
||||
|
||||
public void setHasFuse(boolean hasFuse) {
|
||||
this.hasFuse = hasFuse;
|
||||
body = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(Graphics2D g2d, ComponentState componentState, boolean outlineMode, Project project,
|
||||
IDrawingObserver drawingObserver) {
|
||||
@@ -278,9 +267,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
|
||||
|
||||
body = new Area[3];
|
||||
|
||||
if (hasFuse) {
|
||||
|
||||
} else {
|
||||
cutoutRadius = SIMPLE_CUTOUT_RADIUS.convertToPixels();
|
||||
baseRadius = SIMPLE_BASE_RADIUS.convertToPixels();
|
||||
cutoutLength = SIMPLE_CUTOUT_LENGTH.convertToPixels();
|
||||
@@ -330,7 +316,6 @@ public class IECSocket extends AbstractTransparentComponent<String> {
|
||||
};
|
||||
|
||||
body[2] = new Area(new RoundedPolygon(cutoutPoints, cutoutRadiuses));
|
||||
}
|
||||
|
||||
if (orientation != Orientation.DEFAULT) {
|
||||
double theta = 0;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user