- public GUIWire(Runnable redraw, BasicGUIComponent component1, int component1ConnectionIndex, Point component1Pos, BasicGUIComponent component2, int component2ConnectionIndex, Point component2Pos, Point... path)\r
+ public GUIWire(Runnable redraw, BasicGUIComponent component1, int component1ConnectionIndex, Point component1Pos,\r
+ BasicGUIComponent component2, int component2ConnectionIndex, Point component2Pos, Point... path)\r
throw new IllegalArgumentException("Given connection points are not connected!");\r
this.path = new double[path.length * 2 + 4];\r
Point component1ConnectionPoint = component1.getWireArrayConnectionPoint(component1ConnectionIndex);\r
this.path[0] = component1Pos.x + component1ConnectionPoint.x;\r
this.path[1] = component1Pos.y + component1ConnectionPoint.y;\r
throw new IllegalArgumentException("Given connection points are not connected!");\r
this.path = new double[path.length * 2 + 4];\r
Point component1ConnectionPoint = component1.getWireArrayConnectionPoint(component1ConnectionIndex);\r
this.path[0] = component1Pos.x + component1ConnectionPoint.x;\r
this.path[1] = component1Pos.y + component1ConnectionPoint.y;\r
gc.setForeground(gc.getDevice().getSystemColor(getSWTColorConstantForBit(wa.getValue())));\r
gc.drawPolyline(path);\r
gc.setForeground(oldFG);\r
gc.setForeground(gc.getDevice().getSystemColor(getSWTColorConstantForBit(wa.getValue())));\r
gc.drawPolyline(path);\r
gc.setForeground(oldFG);\r
- case ONE:\r
- return SWT.COLOR_GREEN;\r
- case ZERO:\r
- return SWT.COLOR_BLUE;\r
- case Z:\r
- return SWT.COLOR_BLACK;\r
- case U:\r
- case X:\r
- return SWT.COLOR_RED;\r
- default:\r
- throw new IllegalArgumentException("Unknown enum constant: " + bit);\r
+ case ONE:\r
+ return SWT.COLOR_GREEN;\r
+ case ZERO:\r
+ return SWT.COLOR_BLUE;\r
+ case Z:\r
+ return SWT.COLOR_BLACK;\r
+ case U:\r
+ case X:\r
+ return SWT.COLOR_RED;\r
+ default:\r
+ throw new IllegalArgumentException("Unknown enum constant: " + bit);\r