ogallagher / fxgraph

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

AbstractEdgeGraphic widgets could be added to pane children automatically #10

Open ogallagher opened 2 years ago

ogallagher commented 2 years ago

An com.fxgraph.edges.AbstractEdgeGraphic constructor with some arguments could define which of the default widget components in the edge graphic (group, text, arrow) are automatically added to the Pane.getChildren() superclass member, without every subclass having to redundantly implement this detail.

https://github.com/ogallagher/fxgraph/blob/ec8beb49c2e95224e3413103241f9ee20fc1f466/src/main/java/com/fxgraph/edges/AbstractEdgeGraphic.java#L17-L19

https://github.com/ogallagher/fxgraph/blob/ec8beb49c2e95224e3413103241f9ee20fc1f466/src/main/java/com/fxgraph/edges/Edge.java#L75

https://github.com/ogallagher/fxgraph/blob/ec8beb49c2e95224e3413103241f9ee20fc1f466/src/main/java/com/fxgraph/edges/MessageEdge.java#L63

https://github.com/ogallagher/fxgraph/blob/ec8beb49c2e95224e3413103241f9ee20fc1f466/src/main/java/com/fxgraph/edges/CorneredEdge.java#L110