@Override
    public void paintComponent(Graphics g)
    {
        pixelsW = BigDecimal.valueOf(getWidth());
        pixelsH = BigDecimal.valueOf(getHeight());
        horizontalIncrement = right.subtract(left).divide(pixelsW,mc);
        verticalIncrement = bottom.subtract(top).divide(pixelsH,mc);
        for(int x = 0; x < getWidth(); x++)
        {
            for(int y = 0; y < getHeight(); y++)
            {
                g.setColor(mandlebrotColor(x,y));
                g.drawLine(x, y, x, y);
            }
        }
    }