Package diva.canvas.connector
Interface Connector
- 
- All Superinterfaces:
- CanvasComponent,- Figure,- UserObjectContainer,- VisibleComponent
 - All Known Implementing Classes:
- AbstractConnector,- ArcConnector,- KielerLayoutArcConnector,- KielerLayoutConnector,- LinkManhattanConnector,- ManhattanConnector,- StraightConnector
 
 public interface Connector extends Figure A Connector is a figure that draws itself between two sites on other figures. To do so, it requires two references to sites on other figures.- Version:
- $Id$
- Author:
- Michael Shilman, John Reekie
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description SitegetHeadSite()Get the site that marks the "head" of the connector.SitegetTailSite()Get the site that marks the "tail" of the connector.voidheadMoved()Inform the connector that the head site has moved.voidreroute()Tell the connector to re-route itself.voidroute()Tell the connector to route itself completely, using all available information.voidsetHeadSite(Site s)Set the site that marks the "head" of the connector.voidsetTailSite(Site s)Set the site that marks the "tail" of the connector.voidtailMoved()Inform the connector that the tail site has moved.- 
Methods inherited from interface diva.canvas.CanvasComponentgetTransformContext, repaint, repaint
 - 
Methods inherited from interface diva.canvas.Figurecontains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform, translate
 - 
Methods inherited from interface diva.util.UserObjectContainergetUserObject, setUserObject
 - 
Methods inherited from interface diva.canvas.VisibleComponentisVisible, paint, paint, setVisible
 
- 
 
- 
- 
- 
Method Detail- 
getHeadSiteSite getHeadSite() Get the site that marks the "head" of the connector.- Returns:
- the "head" site.
 
 - 
getTailSiteSite getTailSite() Get the site that marks the "tail" of the connector.- Returns:
- The "tail" site
 
 - 
headMovedvoid headMoved() Inform the connector that the head site has moved. The connector is expected to reroute itself using an efficient means as is available. Repaint the figure.
 - 
reroutevoid reroute() Tell the connector to re-route itself. In general, implementations of this method should be more efficient than route(). Repaint the figure.
 - 
routevoid route() Tell the connector to route itself completely, using all available information. Repaint the figure.
 - 
setHeadSitevoid setHeadSite(Site s) Set the site that marks the "head" of the connector.- Parameters:
- s- The "head" site
 
 - 
setTailSitevoid setTailSite(Site s) Set the site that marks the "tail" of the connector.- Parameters:
- s- The "tail" site
 
 - 
tailMovedvoid tailMoved() Inform the connector that the tail site has moved. The connector is expected to reroute itself using an efficient means as is available. Repaint the figure.
 
- 
 
-