|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.connector.AbstractConnector
diva.canvas.connector.StraightConnector
A Connector that draws itself in a straight line.
| Red |
| Constructor Summary | |
StraightConnector(Site tail,
Site head)
Create a new straight connector between the given sites. |
|
| Method Summary | |
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. |
| Methods inherited from class diva.canvas.connector.AbstractConnector |
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 |
| Methods inherited from class diva.canvas.AbstractFigure |
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface diva.canvas.Figure |
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, setInteractor, setParent, setToolTipText |
| Methods inherited from interface diva.canvas.VisibleComponent |
isVisible, paint, setVisible |
| Methods inherited from interface diva.canvas.CanvasComponent |
getTransformContext, repaint, repaint |
| Methods inherited from interface diva.util.UserObjectContainer |
getUserObject, setUserObject |
| Constructor Detail |
public StraightConnector(Site tail,
Site head)
| Method Detail |
public void repositionLabel()
repositionLabel in class AbstractConnectorpublic void route()
route in interface Connectorroute in class AbstractConnector
public void translate(double x,
double y)
translate in interface Figuretranslate in class AbstractConnector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||