protected void drawConnectorCenters(Canvas c){
  List<Connection> connections=mBlock.getAllConnections();
  Paint paint=new Paint();
  paint.setStyle(Paint.Style.FILL);
  for (int i=0; i < connections.size(); i++) {
    Connection conn=connections.get(i);
    if (conn.inDragMode()) {
      if (conn.isConnected()) {
        paint.setColor(Color.RED);
      }
 else {
        paint.setColor(Color.MAGENTA);
      }
    }
 else {
      if (conn.isConnected()) {
        paint.setColor(Color.GREEN);
      }
 else {
        paint.setColor(Color.CYAN);
      }
    }
    mTempWorkspacePoint.set(conn.getPosition().x - mBlock.getPosition().x,conn.getPosition().y - mBlock.getPosition().y);
    mHelper.workspaceToVirtualViewDelta(mTempWorkspacePoint,mTempConnectionPosition);
    if (mHelper.useRtl()) {
      mTempConnectionPosition.x+=mBlockViewSize.x;
    }
    c.drawCircle(mTempConnectionPosition.x,mTempConnectionPosition.y,10,paint);
  }
}

protected void drawConnectorCenters ( Canvas c ) { List < Connection > connections = mBlock . getAllConnections ( ) ; Paint paint = new Paint ( ) ; paint . setStyle ( Paint . Style . FILL ) ; for ( int i = 0 ; i < connections . size ( ) ; i ++ ) { Connection conn = connections . get ( i ) ; if ( conn . inDragMode ( ) ) { if ( conn . isConnected ( ) ) { paint . setColor ( Color . RED ) ; } else { paint . setColor ( Color . MAGENTA ) ; } } else { if ( conn . isConnected ( ) ) { paint . setColor ( Color . GREEN ) ; } else { paint . setColor ( Color . CYAN ) ; } } mTempWorkspacePoint . set ( conn . getPosition ( ) . x - mBlock . getPosition ( ) . x , conn . getPosition ( ) . y - mBlock . getPosition ( ) . y ) ; mHelper . workspaceToVirtualViewDelta ( mTempWorkspacePoint , mTempConnectionPosition ) ; if ( mHelper . useRtl ( ) ) { mTempConnectionPosition . x += mBlockViewSize . x ; } c . drawCircle ( mTempConnectionPosition . x , mTempConnectionPosition . y , 10 , paint ) ; } }
this is a developer testing function subclasses can call to draw dots at the model ' s location of all connections on this block . never called by default .
