public class ManhattanConnector extends AbstractConnector
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.geom.Point2D |
_labelLocation
The location to attach the label to.
|
| Constructor and Description |
|---|
ManhattanConnector(Site tail,
Site head)
Create a new manhattan connector between the given
sites.
|
ManhattanConnector(Site tail,
Site head,
ManhattanRouter router)
Create a new manhattan connector between the given sites and
with the given router.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getBendRadius()
Return the maximum bend radius of the manhattan-routed
edge.
|
ManhattanRouter |
getRouter()
Return the router.
|
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 |
setRouter(ManhattanRouter router)
Set the router and route again.
|
void |
translate(double x,
double y)
Translate the connector.
|
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, 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, setUserObjectprotected java.awt.geom.Point2D _labelLocation
public ManhattanConnector(Site tail, Site head)
public ManhattanConnector(Site tail, Site head, ManhattanRouter router)
public ManhattanRouter getRouter()
public double getBendRadius()
public void repositionLabel()
repositionLabel in class AbstractConnectorpublic void route()
route in interface Connectorroute in class AbstractConnectorpublic void setBendRadius(double r)
getBendRadius()public void setRouter(ManhattanRouter router)
public void translate(double x,
double y)
translate in interface Figuretranslate in class AbstractConnectorx - The x value to be moved.y - The y value to be moved.