public class ManhattanConnector extends AbstractConnector
| Constructor and Description |
|---|
ManhattanConnector(Site tail,
Site head)
Create a new manhattan connector between the given
sites.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getBendRadius()
Return the maximum bend radius of the manhattan-routed
edge.
|
Shape |
getCurvedRoute(Polyline2D route)
Apply a bend radius to the manhattan route.
|
void |
headMoved(double dx,
double dy)
Inform the connector that the head site has moved.
|
void |
repositionLabel()
Tell the connector to reposition the text label.
|
void |
route()
Tell the connector to route itself between the
current positions of the head and tail sites.
|
void |
setBendRadius(double r)
Set the maximum bend radius of the manhattan-routed
edge.
|
void |
tailMoved(double dx,
double dy)
Inform the connector that the tail site has moved.
|
void |
translate(double x,
double y)
Translate the connector.
|
getBounds, getDashArray, getHeadEnd, getHeadSite, getLabelFigure, getLineWidth, getShape, getStroke, getStrokePaint, getTailEnd, getTailSite, hit, intersects, paint, reroute, setDashArray, setHeadEnd, setHeadSite, setLabelFigure, setLineWidth, setShape, setStroke, setStrokePaint, setTailEnd, setTailSite, 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 ManhattanConnector(Site tail, Site head)
public Shape getCurvedRoute(Polyline2D route)
public double getBendRadius()
public void headMoved(double dx,
double dy)
headMoved in interface ConnectorheadMoved in class AbstractConnectorpublic void repositionLabel()
repositionLabel in class AbstractConnectorpublic void route()
route in interface Connectorroute in class AbstractConnectorpublic void setBendRadius(double r)
getBendRadius()public void tailMoved(double dx,
double dy)
tailMoved in interface ConnectortailMoved in class AbstractConnectorpublic void translate(double x,
double y)
translate in interface Figuretranslate in class AbstractConnectorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.