Skip to content
Snippets Groups Projects
Commit 347e2994 authored by Leon Dieter's avatar Leon Dieter
Browse files

little changes

parent b9bf3f14
No related branches found
No related tags found
No related merge requests found
...@@ -351,7 +351,9 @@ public class GUI extends JFrame implements Runnable, ActionListener { ...@@ -351,7 +351,9 @@ public class GUI extends JFrame implements Runnable, ActionListener {
Vector<Point> pinArduino = modules[3].getPinPos(); Vector<Point> pinArduino = modules[3].getPinPos();
Point posArduino = modules[3].getPosition(); Point posArduino = modules[3].getPosition();
int counter = 0; int counter = 0;
Stroke roundLine = new BasicStroke(5, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); int lineWidth = Math.min(Math.max(((int)xscale/150), 1), 5);
Stroke roundLine = new BasicStroke(lineWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
//Stroke roundLine = new BasicStroke(5, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
for (int i = 0; i < 3; i++) { for (int i = 0; i < 3; i++) {
Vector<Point> pos = modules[i].getPinPos(); Vector<Point> pos = modules[i].getPinPos();
for (Point p : pos) { for (Point p : pos) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment