Posts

Showing posts from December 19, 2018

How to bind line to a circle that is inside another node in JavaFX?

Image
up vote 1 down vote favorite I have created a custom node (this is just a VBox derived node) that contains two sockets (circles) at right and left sides. The purpose is to connect them by dragging the sockets to another ones, and there should be drawn a line between them. Here I am just getting mouse x and y positions and drawing line between the sockets when drag detected on one of them. It is straightforward, but there is a problem when I move nodes. That is the lines are not bound to the sockets (circles). When I tried to bind them to the sockets (circles) centerX and centerY position, they were bound incorrectly because centerX and centerY positions are returned according VBox not a AnchorPane. I added my custom nodes to AnchorPane and the lines are drawn on it as well. So this is the problem circles are inside VBox

Afrodite

Image
Afrodite Deusa do amor, beleza e sexualidade Cópia de uma escultura romana do século II d.C. localizada no Museu Arqueológico Nacional de Atenas. Outro(s) nome(s) Citereia, Cípria, entre outros; Nome nativo Aphrodítē Local de culto Citera e Chipre Morada Monte Olimpo Símbolo Cavalos, Golfinhos, rosa, vieira, murta-comum, pomba, pardais, cinturão, espelho e cisne Consorte Hefesto ou Ares Pais Urano e Tálassa ou Zeus e Dione Irmão(s) Ares, Atena, Apolo, Ártemis, Dioniso, Hebe, Hermes, Héracles, Helena, Hefesto, Perseu, Minos, Musa, Cárites, Melíade, Erínias, Gigantes Filho(s) Eros, Fobos, Deimos, Harmonia, Adrasteia, Erotes, Rode, Erix, Tique, Hermafrodito, Cárites, Priapo, Liros, Béroe, Golgos, Eneias, Peito Romano equivalente Vênus