Package org.eclipse.gef.fx.nodes
Interface IConnectionRouter
-
- All Known Implementing Classes:
AbstractRouter,OrthogonalRouter,StraightRouter
public interface IConnectionRouterAnIConnectionRouteris responsible foradjustmentof aConnection's points. This may also include providing reference points forDynamicAnchors the connection is attached to.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidroute(Connection connection)Adjusts theconnection'sanchors (if necessary) to satisfy certain routing constraints.booleanwasInserted(IAnchor anchor)
-
-
-
Method Detail
-
route
void route(Connection connection)
Adjusts theconnection'sanchors (if necessary) to satisfy certain routing constraints. This includes insertion of 'implicit' anchors, as well as updating the positions of existing anchors (which includes manipulating thecomputation parametersofdynamic anchors.- Parameters:
connection- TheConnectionto route.
-
wasInserted
boolean wasInserted(IAnchor anchor)
Returnstrueif the givenIAnchorwas added by thisIConnectionRouterduringroute(Connection). Otherwise returnsfalse.
-
-