tesis-dynaware / graph-editor

Eclipse Public License 1.0
132 stars 42 forks source link

GNode from Connection #27

Closed NHS247 closed 7 years ago

NHS247 commented 7 years ago

Hi,

Is it posible to get the Node attached to a joint on a connection from the API

graphEditor.getModel().getConnections().stream().forEach(gConnection -> { // here I get can get joints but it seems not possible to get the source and target GNodes? });

eckig commented 7 years ago

Each GConnection has a source and a target GConnector which has a method getParent() which returns the GNode

NHS247 commented 7 years ago

Thanks! - perfect