return new DefaultAccessibleAnchorProvider() {
public List getSourceAnchorLocations() {
List list = new ArrayList();
Vector sourceAnchors = getNodeFigure().getSourceConnectionAnchors();
for (int i=0; i<sourceAnchors.size(); i++) {
ConnectionAnchor anchor = (ConnectionAnchor)sourceAnchors.get(i);
list.add(anchor.getReferencePoint().getTranslated(0, -3));
}
return list;
}
public List getTargetAnchorLocations() {
List list = new ArrayList();
Vector targetAnchors = getNodeFigure().getTargetConnectionAnchors();
for (int i=0; i<targetAnchors.size(); i++) {
ConnectionAnchor anchor = (ConnectionAnchor)targetAnchors.get(i);
list.add(anchor.getReferencePoint().getTranslated(0, 3));
}
return list;
}
};
return super.getAdapter(key);