使用Graphics2D实现,很简单的。参考JAVA提供的例子

解决方案 »

  1.   

    使用Graphics2D实现,很简单的。参考JAVA提供的例子
    use this java.awt.geom  packageand draw use xxx2D
    AffineTransform class to rotate
    :rotate(double theta, double x, double y) 
              Concatenates this transform with a transform that rotates coordinates around an anchor point.void setTransform(AffineTransform Tx) 
              Sets this transform to a copy of the transform in the specified AffineTransform object.
      

  2.   

    图标直接使用image对象保存,在画到Graphics2D的时候执行旋转、设置显示位置(如果在MOUSEMOVE事件中则就是“拖来拖去”的效果)