Java绘图: 使用Graphics类绘制线段、矩形、椭圆/圆弧/扇形、图片、文本 http://blog.youkuaiyun.com/xietansheng/article/details/55669157