refactors
This commit is contained in:
@@ -43,8 +43,6 @@ public class WebcamCaptureLoop {
|
||||
"WebcamException",
|
||||
JOptionPane.ERROR_MESSAGE
|
||||
);
|
||||
} finally {
|
||||
webcam.open();
|
||||
}
|
||||
|
||||
while (running) {
|
||||
|
||||
@@ -56,11 +56,11 @@ public class DesktopPane extends JDesktopPane {
|
||||
int ctrlOffset = Math.min(Math.abs(x2 - x1) / 2, 150);
|
||||
CubicCurve2D curve = new CubicCurve2D.Double(x1, y1, x1 + ctrlOffset, y1, x2 - ctrlOffset, y2, x2, y2);
|
||||
|
||||
g2d.setStroke(new BasicStroke(3f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
|
||||
g2d.draw(curve);
|
||||
//g2d.setStroke(new BasicStroke(3f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
|
||||
//g2d.draw(curve);
|
||||
|
||||
// Terminals
|
||||
g2d.fillOval(x1 - 5, y1 - 5, 10, 10);
|
||||
g2d.fillOval(x2 - 5, y2 - 5, 10, 10);
|
||||
//g2d.fillOval(x1 - 5, y1 - 5, 10, 10);
|
||||
//g2d.fillOval(x2 - 5, y2 - 5, 10, 10);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user