0

I'm currently using javafx.scene.shape.Line to visualize fancy diagrams.

Is there a way to add an arrow head to a Line? I was hoping it would be possible using CSS. But unfortunately I cannot find it in the CSS Reference Guide.

Impossible ?

bvdb
  • 22,839
  • 10
  • 110
  • 123
  • 1
    you can use a *path* to draw an arrow and add it to the head of the line https://docs.oracle.com/javase/8/javafx/api/javafx/scene/shape/Path.html – KarimS Sep 10 '15 at 16:59
  • @karim The easy thing with a line, is that I can move the entire thing after drawing it, using `line.setEndX`/`line.setEndY`. This can change the angle/direction of the line. If I use a path, will I have to rotate the arrow-head manually when I change the angle of the line afterwards? – bvdb Sep 11 '15 at 07:48
  • You can wrap evething in a class that do the work for you and instanciate this class everytime you need a new lane with arrow – KarimS Sep 11 '15 at 23:28

0 Answers0