bitNames = Collections.unmodifiableMap(bitNamesModifiable);\r
}\r
\r
- private final WireArray wa;\r
- private final List<WireArray> connectedWireArrays;\r
- private final List<Point> wireArrayConnectionPoints;\r
+ private final WireArray wa;\r
+ private final List<WireArray> connectedWireArrays;\r
+ private final List<Point> wireArrayConnectionPoints;\r
\r
public GUIManualSwitch(WireArray output)\r
{\r
{\r
return new Rectangle(0, 0, 20, 15);\r
}\r
+\r
@Override\r
public void render(GeneralGC gc)\r
{\r
gc.drawText(label, 10 - textExtent.x / 2, 7.5 - textExtent.y / 2, true);\r
gc.setFont(oldFont);\r
}\r
+\r
@Override\r
public boolean clicked(double x, double y)\r
{\r
{\r
return connectedWireArrays.size();\r
}\r
+\r
@Override\r
public WireArray getConnectedWireArray(int connectionIndex)\r
{\r
return connectedWireArrays.get(connectionIndex);\r
}\r
+\r
@Override\r
public Point getWireArrayConnectionPoint(int connectionI)\r
{\r