コード例 #1
0
 protected ConnectionAnchor getSourceConnectionAnchor() {
   if (getSource() != null && getSource() instanceof NodeEditPart) {
     NodeEditPart editPart = (NodeEditPart) getSource();
     return editPart.getSourceConnectionAnchor(this);
   }
   return super.getSourceConnectionAnchor();
 }
コード例 #2
0
 protected ConnectionAnchor getTargetConnectionAnchor() {
   if (getTarget() instanceof NodeEditPart) {
     NodeEditPart editPart = (NodeEditPart) getTarget();
     return editPart.getTargetConnectionAnchor(this);
   }
   return super.getTargetConnectionAnchor();
 }