    01: import java.util.ArrayList;
    02:
    03: /**
    04:    An edge that is shaped like a line with up to
    05:    three segments with an arrowhead
    06: */
    07: public class ClassRelationshipEdge extends SegmentedLineEdge
    08: {
    09:    /**
    10:       Constructs a straight edge.
    11:    */
    12:    public ClassRelationshipEdge()
    13:    {
    14:       bentStyle = BentStyle.STRAIGHT;
    15:    }
    16:
    17:    /**
    18:       Sets the bentStyle property
    19:       @param newValue the bent style
    20:    */
    21:    public void setBentStyle(BentStyle newValue) { bentStyle = newValue; }
    22:    /**
    23:       Gets the bentStyle property
    24:       @return the bent style
    25:    */
    26:    public BentStyle getBentStyle() { return bentStyle; }
    27:
    28:    public ArrayList getPoints()
    29:    {
    30:       return bentStyle.getPath(getStart().getBounds(),
    31:          getEnd().getBounds());
    32:    }
    33:
    34:    private BentStyle bentStyle;
    35: }