/*
   * This method is called every time a mouse event is triggered.
   * This program will only handle mouse clicks.
   */
  public void mouseMoved(MouseEvent e) {
    if (e.getX() > infoWidth) {
      for (StepFunctionLine l : lines) {
        if (l.contains(e.getX(), e.getY())) {
          // l.color=(new Color(255,0,0));
          l.drawArea = true;
          l.highlight = true;
          l.displayInfo(e.getX(), e.getY());

        } else {
          l.highlight = false;
          // l.color=l.defaultColor;
          l.drawArea = false;
        }
      }
    }

    repaint();
  }