alittlemoyu_xyPlotter/MainSetupProcedure/LineCreationProcedure.pde
void LineCreationKBFSA() {
  if (key >= '0' && key <= '9') {
    No_buffer += key;
  } else if (key == ' ') {
    InputLCBuffer.append(int(No_buffer));
    //point emphasis
    No_buffer = "";
  } else if ((key == ENTER || key == RETURN)&& EOLC == false) {
    if (InputLCBuffer.size() % 2 == 1) {
      InputLCBuffer.append(int(No_buffer));
      No_buffer = "";
      PairCount += 1;
      LCPairCount = PairCount;
    } else {
      InputLCBuffer.remove(InputLCBuffer.size()-1);
      No_buffer = "";
    }
  } else if (key == 'E') {
    EOLC = true;
    pointPair = new LinePointPair[LCPairCount];
    for (int count = 0; count <= LCPairCount-1; count++) {
      pointPair[count] = new LinePointPair(InputLCBuffer.get(count*2), InputLCBuffer.get(count*2+1));
    }
    println("Line input fininsed");
  } else if ((key == ENTER || key == RETURN) && EOLC) {
    ArcCreation();
    println("Arc input started");
  }
}

void LineCreationMFSA(){
  float  min = 100;

  if(mouseButton == LEFT){
    for(int count = 0; count <= InputXAxis.size()-1; count++){
      float distance = dist(InputXAxis.get(count),InputYAxis.get(count),mouseX,mouseY);
      if(distance < min){
        min = distance;
        minno = count;
      }
    }
    InputLCBuffer.append(minno);
  }
  else{
    //Delete the last point.
  }
}
