public class KielerLayoutConnector extends LinkManhattanConnector
KielerLayoutArcConnector
_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, getTailSite
getBendRadius, getRouter, repositionLabel, setBendRadius, setRouter, translate
getBounds, getDashArray, getHeadEnd, getLabelFigure, getLineWidth, getShape, getStroke, getStrokePaint, getTailEnd, headMoved, hit, intersects, paint, reroute, setDashArray, setHeadEnd, setHeadSite, setLabelFigure, setLineWidth, setShape, setStroke, setStrokePaint, setTailEnd, setTailSite, tailMoved, transform
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, setInteractor, setParent, setToolTipText
isVisible, paint, setVisible
getTransformContext, repaint, repaint
getUserObject, setUserObject
public KielerLayoutConnector(Site tail, Site head, Link link)
tail
- The tail site.head
- The head site.link
- The link.public void route()
route
in interface Connector
route
in class ManhattanConnector
public 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.