protected ConnectionAnchor[] createAnchors() {
   return new ConnectionAnchor[] {AnchorFactory.createTopOrBottomMiddleAnchor(this)};
 }
 @Override
 protected ConnectionAnchor[] createTargetAnchors() {
   return new ConnectionAnchor[] {
     AnchorFactory.createFixedAnchor(mainToggle, isRightToLeft() ? 1.0 : 0, 0.5)
   };
 }