mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Ability to edit color of copper trace, curved trace and solder pad at
the same time
This commit is contained in:
@@ -135,11 +135,11 @@ public class SolderPad extends AbstractComponent<Void> {
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Color")
|
||||
public Color getColor() {
|
||||
public Color getLeadColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(Color color) {
|
||||
public void setLeadColor(Color color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ public class V1FileParser implements IOldFileParser {
|
||||
SolderPad pad = new SolderPad();
|
||||
pad.setName(nameAttr);
|
||||
if (color != null) {
|
||||
pad.setColor(color);
|
||||
pad.setLeadColor(color);
|
||||
}
|
||||
pad.setControlPoint(convertV1CoordinatesToV3Point(referencePoint, x1Attr, y1Attr), 0);
|
||||
component = pad;
|
||||
@@ -197,7 +197,7 @@ public class V1FileParser implements IOldFileParser {
|
||||
|
||||
wire.setName(nameAttr);
|
||||
String colorAttr = node.getAttributes().getNamedItem("Color").getNodeValue();
|
||||
wire.setColor(parseV1Color(colorAttr));
|
||||
wire.setLeadColor(parseV1Color(colorAttr));
|
||||
wire.setControlPoint(point1, 0);
|
||||
wire.setControlPoint(new Point(x2, y2), 1);
|
||||
wire.setControlPoint(new Point(x3, y3), 2);
|
||||
|
||||
Reference in New Issue
Block a user