x1 = leftBorder+(int) Math.abs(hBinAxis*(point.x1-minX));  y1 = TOP+height-Math.abs((vBinAxis*(int)(point.x2-minY)));
x1 = leftBorder+(int) Math.abs(hBin*(point.x1-minX)); y1 = TOP+height-(int) Math.abs(vBin*(point.x2-minY));
    private void drawCurves(Graphics2D g2D, int hFont)    {        Iterator j = ((values).keySet()).iterator();        Iterator k;        Integer key;        PlanePoint point;        ArrayList list;        int x0 = -1, x1 = -1, y0 = -1, y1 = -1;        int c = 0;        while (j.hasNext()) {            key = (Integer) j.next();            g2D.setColor((Color) valuesRef.get(key));            drawLegend(g2D, key.intValue(), c, hFont/4);            list = (ArrayList) values.get(key);            k = list.iterator();            while (k.hasNext()) {                point = (PlanePoint) k.next();                x1 = leftBorder+(int) Math.abs(hBinAxis*(point.x1-minX));                //y1 = TOP+height-(int) (vBinAxis*(int)(point.x2-minY));                y1 = TOP+height-Math.abs((vBinAxis*(int)(point.x2-minY)));                if (x0 != -1 && y0 != -1)                    g2D.drawLine(x0, y0, x1, y1);                x0 = x1;                y0 = y1;            }            x0 = -1;            y0 = -1;            c++;        }      }