mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +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 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.
Reference in New Issue
Block a user