protected void rotate(Graphics2D g){
  Double angle=renderRotationAngle;
  if (angle != null) {
    int rotOffsetX=point1.x + (point2.x - point1.x) / 2;
    int rotOffsetY=point1.y + (point2.y - point1.y) / 2;
    g.rotate(angle,rotOffsetX,rotOffsetY);
  }
}

protected void rotate ( Graphics2D g ) { Double angle = renderRotationAngle ; if ( angle != null ) { int rotOffsetX = point1 . x + ( point2 . x - point1 . x ) / 2 ; int rotOffsetY = point1 . y + ( point2 . y - point1 . y ) / 2 ; g . rotate ( angle , rotOffsetX , rotOffsetY ) ; } }
since the omscalingraster changes height and width depending on scale , we need to rotate the image over that point and factor in the scaled height and width of the image . called from within omrasterobject . render ( ) .
