public static void PaintNumbers(Graphics2D g, boolean linear, BigDecimal maxValue, double base, int xShift, int yShift, int plotHeight) {
		g.setColor(Color.BLUE);
		Font font = new Font("Arial", Font.TRUETYPE_FONT, 11);
		g.setFont(font);

		String drawString = "";
		BigDecimal prop = new BigDecimal(Integer.toString(GraphDrawer.PROPORTION));
		for (int i = 0; i <= GraphDrawer.PROPORTION; i++) {
			if (linear) {
				BigDecimal curD = maxValue.divide(prop, 10, BigDecimal.ROUND_CEILING).multiply(new BigDecimal(i + ""));
				drawString = curD.toString();
				if (!drawString.matches("0") && !drawString.matches("0E-10")) {
					double curA = Double.parseDouble("0" + drawString.substring(drawString.indexOf("."), drawString.indexOf(".") + 8));
					drawString = curD.toBigInteger().add(new BigInteger("" + Math.round(curA))).toString();
				}
				else
					drawString = "0";
			} else
				drawString = i == 0 ? "0" : Math.round(Math.pow(base, i)) + "";
			int curY = i * plotHeight / GraphDrawer.PROPORTION;
			drawString = NumberInstance.format(drawString);
			double width = g.getFontMetrics().getStringBounds(drawString, g).getWidth();
			g.drawString(drawString, xShift - (int) width - 2, (int) (yShift - curY) + 5);
		}
	}