/** * Set the line stroke style. */ public LinePlot setStroke(Stroke stroke) { line.setStroke(stroke); return this; }
private void moveUp() { Line line = new Line(cX, cY, cX, cY - 10); line.setStroke(Color.BLUE); pane.getChildren().add(line); cY -= 10; }
private void moveUp() { Line sLine = new Line(cX, cY, cX, cY - 10); sLine.setStroke(Color.RED); pane.getChildren().add(sLine); cY -= 10;