public class StraightConnector extends AbstractConnector
Red |
Constructor and Description |
---|
StraightConnector(Site tail,
Site head)
Create a new straight connector between the given
sites.
|
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.
|
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, 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 void repositionLabel()
repositionLabel
in class AbstractConnector
public void route()
route
in interface Connector
route
in class AbstractConnector
public void translate(double x, double y)
translate
in interface Figure
translate
in class AbstractConnector
x
- The x value to be moved.y
- The y value to be moved.