mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-12 02:02:16 +10:00
fixed point visibility on curved trace
added option to hide color bands on the resistor
This commit is contained in:
-5
@@ -38,11 +38,6 @@ public class CurvedTrace extends AbstractCurvedComponent<Void> {
|
||||
g2d.draw(curve);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VisibilityPolicy getControlPointVisibilityPolicy(int index) {
|
||||
return VisibilityPolicy.NEVER;
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Width")
|
||||
public Size getSize() {
|
||||
return size;
|
||||
|
||||
+3
@@ -91,6 +91,9 @@ public class Resistor extends AbstractLeadedComponent<Resistance> {
|
||||
@Override
|
||||
protected void decorateComponentBody(Graphics2D g2d) {
|
||||
// int width = getWidth().convertToPixels();
|
||||
if (colorCode == ResistorColorCode.NONE) {
|
||||
return;
|
||||
}
|
||||
int height = getClosestOdd(getHeight().convertToPixels());
|
||||
Color[] bands = value.getColorCode(colorCode);
|
||||
int x = 4;
|
||||
|
||||
Reference in New Issue
Block a user