public void drawmap(Graphics g) throws Exception{
        Graphics2D g2d=(Graphics2D) g;
        //清屏
        g2d.clearRect(0, 0, WIDTH, HEIGHT);
        g2d.setColor(Color.white);
        g2d.fill3DRect(0, 0, WIDTH, HEIGHT,true);
        //画笔颜色
        g2d.setColor(Color.BLUE);
        g2d.setFont(new Font("隶书", Font.PLAIN, 45));
        g2d.drawString(title, 200, 30);
        //站点
        g2d.setColor(Color.RED);
        g2d.setFont(new Font("宋体", Font.PLAIN, 10));

        File f = new File("");
        InputStream input = new FileInputStream(f);
        BufferedReader b = new BufferedReader(new InputStreamReader(input));
        //StringBuffer buffer = new StringBuffer();
        String value = b.readLine();
        int k = 0;
        while(value != null){//如果行不为空

            //buffer.append(" "+value);
            //把该行转换为数组
            String[] temp = value.toString().replaceFirst(" ","").split("\\s+");
            //int [] number = new int[temp.length];
            float[] number = new float[temp.length];
            for(int i=0;i<temp.length;i++){
                try{
                    //number[i] = Integer.parseInt(temp[i]);
                    number[i] = Float.parseFloat(temp[i]);
                    //System.out.print(number[i]+" ");
                }catch(Exception e){
                    System.out.println("文件中存在非数字字符!");
                }
            }
            //画图
            for(int j=1;j<number.length-2;)
            {

//                            Line2D.Float((number[j]/1000+3150)/rate,
//                                        (number[j+1]/1000-1950)/rate,
//                                       (number[j+2]/1000+3150)/rate,
//                                        (number[j+1]/1000-1950)/rate);

                g2d.drawLine((int)((number[j]/1000+3150)/rate),
                        (int)((number[j+1]/1000-1950)/rate),
                        (int)((number[j+2]/1000+3150)/rate),
                        (int)((number[j+3]/1000-1950)/rate));
                j+=2;
            }
            // System.out.println("\n");
            value = b.readLine();//读取下一行
            k++;
            if (k==100){
                break;
            }
        }
    }