mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Remove toggle interaction with pot back
This commit is contained in:
@@ -382,7 +382,7 @@ public class NetlistBuilder {
|
||||
for (ProjectGraphNode pointNode : entry.getValue()) {
|
||||
|
||||
List<ProjectGraphNode> areaNodesBelowPoint = candidateAreaNodes.stream()
|
||||
.filter(x -> x.getArea().getZIndex() < pointNode.getZIndex())
|
||||
.filter(x -> x.getArea().getZIndex() <= pointNode.getZIndex())
|
||||
.sorted(Comparator.comparing(x -> x.getArea().getZIndex(), Comparator.reverseOrder()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
||||
Binary file not shown.
+11
-4
@@ -308,14 +308,21 @@ public class MiniToggleSwitch extends AbstractTransparentComponent<ToggleSwitchT
|
||||
}
|
||||
|
||||
for (Point2D p : controlPoints) {
|
||||
if (outlineMode) {
|
||||
if (outlineMode) {
|
||||
g2d.setColor(Constants.TRANSPARENT_COLOR);
|
||||
drawingObserver.startTrackingContinuityArea(true);
|
||||
g2d.fillRect((int)(p.getX() - lugWidth / 2), (int)(p.getY() - lugHeight / 2), lugWidth, lugHeight);
|
||||
drawingObserver.stopTrackingContinuityArea();
|
||||
|
||||
g2d.setColor(theme.getOutlineColor());
|
||||
g2d.drawRect((int)(p.getX() - lugWidth / 2), (int)(p.getY() - lugHeight / 2), lugWidth, lugHeight);
|
||||
g2d.drawRect((int)(p.getX() - lugWidth / 2), (int)(p.getY() - lugHeight / 2), lugWidth, lugHeight);
|
||||
} else {
|
||||
g2d.setColor(CIRCLE_COLOR);
|
||||
g2d.fillOval((int)(p.getX() - circleDiameter / 2), (int)(p.getY() - circleDiameter / 2), circleDiameter, circleDiameter);
|
||||
g2d.setColor(METAL_COLOR);
|
||||
g2d.fillRect((int)(p.getX() - lugWidth / 2), (int)(p.getY() - lugHeight / 2), lugWidth, lugHeight);
|
||||
g2d.setColor(METAL_COLOR);
|
||||
drawingObserver.startTrackingContinuityArea(true);
|
||||
g2d.fillRect((int)(p.getX() - lugWidth / 2), (int)(p.getY() - lugHeight / 2), lugWidth, lugHeight);
|
||||
drawingObserver.stopTrackingContinuityArea();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -279,10 +279,10 @@ public class PotentiometerPanel extends AbstractPotentiometer {
|
||||
g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f * alpha / MAX_ALPHA));
|
||||
}
|
||||
if (!outlineMode) {
|
||||
if (i == 3)
|
||||
if (i >= 3 && i <= 6)
|
||||
drawingObserver.startTrackingContinuityArea(true);
|
||||
g2d.fill(shape);
|
||||
if (i == 3)
|
||||
if (i >= 3 && i <= 6)
|
||||
drawingObserver.stopTrackingContinuityArea();
|
||||
}
|
||||
g2d.setComposite(oldComposite);
|
||||
|
||||
@@ -49,7 +49,6 @@ AWG
|
||||
Alternate
|
||||
And
|
||||
Angle Offset
|
||||
Apply Model
|
||||
B-C-E BJT
|
||||
Background
|
||||
Box
|
||||
@@ -94,7 +93,6 @@ G-D-S MOSFET
|
||||
G-O-I REGULATOR
|
||||
G-S-D JFET
|
||||
G-S-D MOSFET
|
||||
GF1
|
||||
Generate DIYLC Netlist (excl. Switches)
|
||||
Generate DIYLC Netlist (incl. Switches)
|
||||
Gray
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1988,7 +1988,7 @@ public class ActionFactory {
|
||||
|
||||
@Override
|
||||
public void complete(List<Netlist> res) {
|
||||
LOG.info("Finished fenerating netlist");
|
||||
LOG.info("Finished generating netlist");
|
||||
if (res == null) {
|
||||
swingUI.showMessage("The generated netlist is empty, nothing to show.", "DIYLC Netlist",
|
||||
ISwingUI.INFORMATION_MESSAGE);
|
||||
|
||||
Reference in New Issue
Block a user