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 渠上月 阅读(284) 评论(0)  编辑  收藏 所属分类: java tips

只有注册用户登录后才能发表评论。


网站导航: