}
for (int i = 0; i < points.size() - 1; i++)
{
//Put a create handle on the middle of every segment
list.add(new ConnectionBendpointHandle(connEP,
bendPointIndex,
i,
"create"));
//If the current user bendpoint matches a bend location, show a move handle
if (i < points.size() - 1
&& bendPointIndex < bendPoints.size()
&& currBendPoint.equals(points.getPoint(i + 1)))
{
list.add(new ConnectionBendpointHandle(connEP,
bendPointIndex,
i + 1,
"move"));
//Go to the next user bendpoint