@Override public void hlineToRel(double x) { l.add(makeAbsolute(false, new HLineTo(x))); }
HLineTo e2 = new HLineTo(); e2.xProperty().bind(this.widthProperty().subtract(arrowWidth)); path.getElements().add(e2); e3.xProperty().bind(e2.xProperty().add(arrowWidth)); e3.setY(arrowHeight / 2.0); path.getElements().add(e3); e4.xProperty().bind(e2.xProperty()); e4.setY(arrowHeight); path.getElements().add(e4); HLineTo e5 = new HLineTo(0); path.getElements().add(e5);
lineBTop = new HLineTo(); lineBTop.xProperty().bind( Bindings.add(leftEdgePlusRadiusProperty, arrowIndentProperty)); Bindings.add(lineBTop.xProperty(), arrowSizeProperty)); lineCTop.yProperty().bind( Bindings.subtract(topEdgeProperty, arrowSizeProperty)); lineETop = new HLineTo(); lineETop.xProperty().bind( Bindings.subtract(centerXProperty, arrowSizeProperty)); lineHTop = new HLineTo(); lineHTop.xProperty().bind( Bindings.subtract(Bindings.subtract( rightEdgeMinusRadiusProperty, arrowIndentProperty), lineKTop = new HLineTo(); lineKTop.xProperty().bind(rightEdgeMinusRadiusProperty); lineBBottom = new HLineTo(); lineBBottom.xProperty().bind( Bindings.subtract(rightEdgeMinusRadiusProperty, arrowIndentProperty)); Bindings.subtract(lineBBottom.xProperty(), arrowSizeProperty)); lineCBottom.yProperty().bind( Bindings.add(bottomEdgeProperty, arrowSizeProperty));
@Override public void hlineToAbs(double x) { l.add(makeAbsolute(true, new HLineTo(x))); }
@Override public void hlineToRel(double x) { l.add(makeAbsolute(false, new HLineTo(x))); }
@Override public void hlineToAbs(double x) { l.add(makeAbsolute(true, new HLineTo(x))); }
new HLineTo(240), new VLineTo(500), new HLineTo(340), new VLineTo(680), new HLineTo(40), new VLineTo(560), new HLineTo(120), new VLineTo(240), new HLineTo(360), new VLineTo(40), new HLineTo(40), new VLineTo(180), new HLineTo(180), new VLineTo(100) ); new HLineTo(40), new VLineTo(40), new HLineTo(800) );
while(ponts !=0){ Path p1 = new Path(); p1.getElements().addAll(new MoveTo(), new HLineTo(pontLength)); p1.setStroke(Color.rgb(r.nextInt(255), r.nextInt(255), r.nextInt(255))); root.getChildren().add(p1);