public class KielerLayoutArcConnector extends ArcConnector
KielerLayoutConnector
_CLOSE_THRESHOLD
Constructor and Description |
---|
KielerLayoutArcConnector(Site tail,
Site head)
Construct a new connector with the given tail and head for the
specified link.
|
Modifier and Type | Method and Description |
---|---|
void |
repositionLabel()
Tell the connector to reposition its label if it has one.
|
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.
|
getAngle, getArcMidpoint, getGamma, getMidpointSite, getSelfLoop, setAngle, setGamma, setSelfLoop, translate, translateMidpoint
getBounds, getDashArray, getHeadEnd, getHeadSite, getLabelFigure, getLineWidth, getShape, getStroke, getStrokePaint, getTailEnd, getTailSite, 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 KielerLayoutArcConnector(Site tail, Site head)
tail
- The tail site.head
- The head site.public void route()
route
in interface Connector
route
in class ArcConnector
public void repositionLabel()
repositionLabel
in class ArcConnector
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.