return (BaseVertex) getModel();
}
private ConnectionAnchor getConnectionAnchor() {
if ( anchor == null ) {
if ( getModel() instanceof BaseVertex ) anchor = new EllipseAnchor( getFigure() );
else
// if Nodes gets extended the conditions above must be updated
throw new IllegalArgumentException( "unexpected model" );
}
return anchor;