ogallagher / fxgraph

A JavaFX graph editor
Do What The F*ck You Want To Public License
2 stars 0 forks source link

Add hover node gesture #13

Closed ogallagher closed 2 years ago

ogallagher commented 2 years ago

Branch: nodegesture-hover

In addition to having the drag translation node gesture (and drag handle resize cell gesture), a hover node gesture could be used to make graph nodes (cells or messages) hoverable.

One application for such a gesture would be sequence diagram message edge details, as suggested at sirolf2009/fxgraph #10.

Another would be for Cartesian plot points, which could show x,y coordinates on hover.

ogallagher commented 2 years ago

During development I’ve realized that MessageEdge spans the entire area from 0,0 to its end point, adding an extra challenge for trying to make sequence diagram messages hoverable:

sequencediagram_messageedge_size

ogallagher commented 2 years ago

Hover node gestures now have basic implementation. See below for a demo using SequenceDiagram.ActorCell as hoverable graphics:

https://user-images.githubusercontent.com/17031438/129954176-95e5df06-1220-4910-99da-87cd02493db7.mp4