fcmodeler.view
Interface EdgeFigure

All Superinterfaces:
diva.canvas.CanvasComponent, diva.canvas.connector.Connector, diva.canvas.Figure, PermanentFigure, diva.util.UserObjectContainer, diva.canvas.VisibleComponent
All Known Implementing Classes:
AbstractEdgeFigure

public interface EdgeFigure
extends diva.canvas.connector.Connector, PermanentFigure

A Figure representing an edge. EdgeFigure paints some type of line between two node figures. Different concrete implementation classes can determine exactly what type of line is used (straight, Bezier curve, etc.).

EdgeFigure is a PermanentFigure. Therefore, it must provide accessor methods for both its permanent figure and the one used for painting. Additionally, EdgeFigure supports dynamic changing of arrowheads.

Since:
JDK1.3
Version:
$Revision: 1.5 $
Author:
Julie Dickerson , Zach Cox

Method Summary
 diva.canvas.toolbox.PaintedShape getFigure()
          Returns the PaintedShape used for painting this edge figure.
 diva.canvas.connector.ConnectorEnd getHeadEnd()
          Returns the arrowhead used at the head end of this edge figure.
 diva.canvas.toolbox.PaintedShape getPermanentFigure()
          Returns the PaintedShape used for permanent visual attribute storage in this edge figure.
 diva.canvas.connector.ConnectorEnd getTailEnd()
          Returns the arrowhead used at the tail end of this edge figure.
 void setHeadEnd(diva.canvas.connector.ConnectorEnd end)
          Sets the arrowhead at the head end of this edge figure to the specified ConnectorEnd.
 void setTailEnd(diva.canvas.connector.ConnectorEnd end)
          Sets the arrowhead at the tail end of this edge figure to the specified ConnectorEnd.
 
Methods inherited from interface diva.canvas.connector.Connector
getHeadSite, getTailSite, headMoved, reroute, route, setHeadSite, setTailSite, tailMoved
 
Methods inherited from interface diva.canvas.Figure
contains, getBounds, getInteractor, getLayer, getShape, hit, intersects, setInteractor, setParent, transform, translate
 
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, paint, setVisible
 
Methods inherited from interface diva.canvas.CanvasComponent
getParent, getTransformContext, repaint, repaint
 
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
 
Methods inherited from interface fcmodeler.view.PermanentFigure
usePermanents
 

Method Detail

getFigure

public diva.canvas.toolbox.PaintedShape getFigure()
Returns the PaintedShape used for painting this edge figure.
Returns:
the PaintedShape used for painting this edge figure.

getHeadEnd

public diva.canvas.connector.ConnectorEnd getHeadEnd()
Returns the arrowhead used at the head end of this edge figure.
Returns:
the arrowhead used at the head end of this edge figure.

getPermanentFigure

public diva.canvas.toolbox.PaintedShape getPermanentFigure()
Returns the PaintedShape used for permanent visual attribute storage in this edge figure.
Returns:
the PaintedShape used for permanent visual attribute storage in this edge figure.

getTailEnd

public diva.canvas.connector.ConnectorEnd getTailEnd()
Returns the arrowhead used at the tail end of this edge figure.
Returns:
the arrowhead used at the tail end of this edge figure.

setHeadEnd

public void setHeadEnd(diva.canvas.connector.ConnectorEnd end)
Sets the arrowhead at the head end of this edge figure to the specified ConnectorEnd.
Parameters:
end - the new head end arrowhead for this edge figure.

setTailEnd

public void setTailEnd(diva.canvas.connector.ConnectorEnd end)
Sets the arrowhead at the tail end of this edge figure to the specified ConnectorEnd.
Parameters:
end - the new tail end arrowhead for this edge figure.