added ability to include or exclude switches from netlist analyzer

This commit is contained in:
Branislav Stojkovic
2019-03-23 18:05:28 +01:00
parent b85b93404b
commit 5c47ff1ef0
10 changed files with 31 additions and 29 deletions
@@ -338,7 +338,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
drawCenteredText(g2d, label, offset, 0, HorizontalAlignment.CENTER, VerticalAlignment.CENTER);
g2d.setTransform(oldTransform);
} else {
if (getLabelOriantation() == LabelOriantation.Horizontal) {
if (isStanding() || getLabelOriantation() == LabelOriantation.Horizontal) {
g2d.setTransform(oldTransform);
double x = (getNewPoints()[0].x + getNewPoints()[1].x - length) / 2.0;
double y = (getNewPoints()[0].y + getNewPoints()[1].y - width) / 2.0;
@@ -393,12 +393,12 @@ public class MiniToggleSwitch extends AbstractTransparentComponent<ToggleSwitchT
}
// switch stuff
@Override
public String getControlPointNodeName(int index) {
// we don't want the switch to produce any nodes, it just makes connections
return null;
}
//
// @Override
// public String getControlPointNodeName(int index) {
// // we don't want the switch to produce any nodes, it just makes connections
// return null;
// }
@Override
public boolean canPointMoveFreely(int pointIndex) {
@@ -328,12 +328,12 @@ public class LPSwitch extends AbstractTransparentComponent<String> implements IS
body = null;
}
@Override
public String getControlPointNodeName(int index) {
// we don't want the switch to produce any nodes, it just makes connections
return null;
}
// @Override
// public String getControlPointNodeName(int index) {
// // we don't want the switch to produce any nodes, it just makes connections
// return null;
// }
//
// switch stuff
@Override
@@ -428,11 +428,11 @@ public class LeverSwitch extends AbstractTransparentComponent<String> implements
}
}
@Override
public String getControlPointNodeName(int index) {
// we don't want the switch to produce any nodes, it just makes connections
return null;
}
// @Override
// public String getControlPointNodeName(int index) {
// // we don't want the switch to produce any nodes, it just makes connections
// return null;
// }
// switch stuff