Skip to content

onClick event capture on graph elements #101

Answered by eckig
amitjoy asked this question in Q&A
Discussion options

You must be logged in to vote

Have you read up on how to add custom skins?

With your own skin added to the editor you can add any JavaFX element you like to the node and modify it in any way, like adding listeners.

Another way would be, in this special case, to track the selection with the SelectionManager. Each node you click (at least in the default) will toggle its selected state.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amitjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants