blog.Toby

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            130 隨筆 :: 2 文章 :: 150 評論 :: 0 Trackbacks

          public BufferedImage draw()
           {
            float maxValue = 0;
            float minValue = 0;
            long maxColumn = 0;
            int gridWidth  = 0;
            int gridHeight = 0;
            int beginWidth = 0 ;
            String begindate = "" ;

            BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            Graphics2D g = (Graphics2D)bufferedImage.getGraphics();
            g.setColor(Color.white);
            g.fillRect(0, 0, width, height);
            g.setColor(Color.gray);
            g.drawRect(0, 0, width-1, height-1);
            
            //寫出無數據說明文字
            ArrayList tempDoc = new ArrayList(); 
            String hText1 = "查詢無相關數據,請重新選擇查詢條件!";
            tempDoc.add(hText1);          
            //畫出提示文字
            g.drawString((String)tempDoc.get(0), width - 375  , 40 + gridHeight);   
            
            return bufferedImage;
           }

          posted on 2005-12-28 15:54 渠上月 閱讀(308) 評論(0)  編輯  收藏 所屬分類: java tips
          主站蜘蛛池模板: 嘉鱼县| 昭觉县| 蓝山县| 堆龙德庆县| 香河县| 阳泉市| 门源| 江津市| 修水县| 延安市| 禹州市| 岗巴县| 密云县| 利辛县| 大丰市| 永顺县| 凤山县| 正安县| 儋州市| 上栗县| 怀远县| 滨州市| 芜湖县| 洪泽县| 龙门县| 苍山县| 宁波市| 博野县| 城市| 青川县| 黄梅县| 香港 | 炎陵县| 新竹县| 黄大仙区| 屯昌县| 舟山市| 台南县| 兴国县| 南溪县| 延边|