0

i am creating a tool that manipulate a directed graph, i managed to create the node and connect them with simple line i wont to know

  1. How to draw an arrow at the end of straight line using JavaFX. and/or
  2. how to use (draw) a CubicCurve line to connect those node

Edit

in my tool. the nodes of the graph can be moved. so how to deal with the control point

please, i wont i simple solution

targat
  • 25
  • 8
  • 2
    I think this is what you're after - [JavaFX line/curve with arrow head](http://stackoverflow.com/questions/26702519/javafx-line-curve-with-arrow-head) – Peter Jun 23 '16 at 17:35
  • i have seen this question but it is too complicate – targat Jun 23 '16 at 17:39
  • and i am using a variable point not fixed one. and how to deal with a control point – targat Jun 23 '16 at 17:39
  • OK, I re-opened the question for now, rather than marking it as a duplicate as before. – jewelsea Jun 23 '16 at 17:40

1 Answers1

1

Instead of a simple Line you could use a Path. A Path can handle both of your two use-cases.

mipa
  • 10,369
  • 2
  • 16
  • 35