public class KielerLayoutConnector extends LinkManhattanConnector
| Red (cmot) |
_labelLocation| Constructor and Description |
|---|
KielerLayoutConnector(Site tail,
Site head,
Link link)
Construct a new connector with the given tail and head for the specified
link.
|
| Modifier and Type | Method and Description |
|---|---|
void |
route()
Tell the connector to route itself between the current positions of the
head and tail sites.
|
static void |
setLayoutInProgress(boolean inProgress)
Notifies layout connections that a layout is in progress, which stops them
from deciding to remove layout hints from relations.
|
getHeadSite, getLink, getTailSitegetBendRadius, getRouter, repositionLabel, setBendRadius, setRouter, translategetBounds, getDashArray, getHeadEnd, getLabelFigure, getLineWidth, getShape, getStroke, getStrokePaint, getTailEnd, headMoved, hit, intersects, paint, reroute, setDashArray, setHeadEnd, setHeadSite, setLabelFigure, setLineWidth, setShape, setStroke, setStrokePaint, setTailEnd, setTailSite, tailMoved, transformcontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, setInteractor, setParent, setToolTipTextisVisible, paint, setVisiblegetTransformContext, repaint, repaintgetUserObject, setUserObjectpublic KielerLayoutConnector(Site tail, Site head, Link link)
tail - The tail site.head - The head site.link - The link.public void route()
route in interface Connectorroute in class ManhattanConnectorpublic static void setLayoutInProgress(boolean inProgress)
A call to this method with the parameter value true must always be
followed by a call with the parameter value false.
Note: This mechanism is not thread-safe! However, since the problem
only occurs while a layout result is being applied through a
MoMLChangeRequest (of which only one is ever being executed at a
given time), this shouldn't be a problem.
inProgress - true if a layout result is currently being applied.