private void risuemPodpisiPodLiniei(GC gc, int x, int y) {     
        double step = (int) Math.sqrt(LastModelingTime + 0.0);
        for (double i = 0; i <= LastModelingTime; i += step) {                       
            int currentPosition = (int)i; // координата х
            сhertocka(gc, currentPosition + x, y, 2);
            String curPosition = currentPosition + "";
            gc.drawString(curPosition, currentPosition + x - (curPosition.length() * 5 / 2), y + 13);
        }
    }