mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-12 02:02:16 +10:00
Clearer standing component (mainly diode) reversion
This commit is contained in:
Binary file not shown.
+5
@@ -99,4 +99,9 @@ public class AxialFilmCapacitor extends AbstractLeadedComponent<Capacitance> {
|
||||
return new Rectangle2D.Double(0f, 0f, getLength().convertToPixels(),
|
||||
getClosestOdd(getWidth().convertToPixels()));
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Reverse (standing)")
|
||||
public boolean getFlipStanding() {
|
||||
return super.getFlipStanding();
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -148,4 +148,9 @@ public class Resistor extends AbstractLeadedComponent<Resistance> {
|
||||
return bandArea / 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Reverse (standing)")
|
||||
public boolean getFlipStanding() {
|
||||
return super.getFlipStanding();
|
||||
}
|
||||
}
|
||||
|
||||
+3
-8
@@ -31,8 +31,7 @@ public class DiodePlastic extends AbstractLeadedComponent<String> {
|
||||
public static Color BORDER_COLOR = BODY_COLOR.darker();
|
||||
|
||||
private String value = "";
|
||||
private Color markerColor = MARKER_COLOR;
|
||||
private boolean flipStanding = false;
|
||||
private Color markerColor = MARKER_COLOR;
|
||||
|
||||
public DiodePlastic() {
|
||||
super();
|
||||
@@ -48,16 +47,12 @@ public class DiodePlastic extends AbstractLeadedComponent<String> {
|
||||
|
||||
@Override
|
||||
public Color getStandingBodyColor() {
|
||||
return getFlipStanding() ? getMarkerColor() : getBodyColor();
|
||||
return getFlipStanding() ? getBodyColor() : getMarkerColor();
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Reverse (standing)")
|
||||
public boolean getFlipStanding() {
|
||||
return flipStanding;
|
||||
}
|
||||
|
||||
public void setFlipStanding(boolean flipStanding) {
|
||||
this.flipStanding = flipStanding;
|
||||
return super.getFlipStanding();
|
||||
}
|
||||
|
||||
@EditableProperty
|
||||
|
||||
Reference in New Issue
Block a user