Style Intelligence v12.0

inetsoft.report
Class RotationTransformer

java.lang.Object
  extended by inetsoft.report.RotationTransformer

public class RotationTransformer
extends Object

RotationTransformer is used to transform point or shape when the PainterPaintable is rotated 90 or 270 degree.


Field Summary
protected  Point origin
           
protected  inetsoft.report.internal.PainterPaintable paintable
           
protected  AffineTransform trans
           
 
Constructor Summary
RotationTransformer(Point origin, inetsoft.report.internal.PainterPaintable pt)
          Constructor.
 
Method Summary
protected  Point convertCoordinate(Point point)
          Convert a coordinate from math to java or from java to math.
protected  inetsoft.report.internal.RectangleRegion createPaintingRectangle(String name, Point[] ps)
          Create painting rectangle for 90 rotation.
protected  inetsoft.report.internal.Region getLocDimDescripingRegion(inetsoft.report.internal.Region region)
          Get the rectangle and ellipse region of the original region.
 Point getOriginal2RotatedPos(Point point)
          Get the position mapped from original to rotated.
 inetsoft.report.internal.Region getPaintingRegion(inetsoft.report.internal.Region region)
          Get the painting region of the original region.
protected  inetsoft.report.internal.Region getPointsDiscriptingRegion(inetsoft.report.internal.PolygonRegion region)
          Get the polygon region of the original region.
 Point getRotated2OriginalPos(Point point)
          Get the position mapped from rotated to original.
static RotationTransformer getRotationTransformer(Point origin, inetsoft.report.internal.PainterPaintable pt)
          Get the RotationTransformer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trans

protected AffineTransform trans

paintable

protected inetsoft.report.internal.PainterPaintable paintable

origin

protected Point origin
Constructor Detail

RotationTransformer

public RotationTransformer(Point origin,
                           inetsoft.report.internal.PainterPaintable pt)
Constructor.

Method Detail

getRotationTransformer

public static RotationTransformer getRotationTransformer(Point origin,
                                                         inetsoft.report.internal.PainterPaintable pt)
Get the RotationTransformer.

Parameters:
origin - the origin point.
pt - the paitable.
Returns:
the RotationTransformer.

getRotated2OriginalPos

public Point getRotated2OriginalPos(Point point)
Get the position mapped from rotated to original.


getOriginal2RotatedPos

public Point getOriginal2RotatedPos(Point point)
                             throws NoninvertibleTransformException
Get the position mapped from original to rotated.

Throws:
NoninvertibleTransformException

getPaintingRegion

public inetsoft.report.internal.Region getPaintingRegion(inetsoft.report.internal.Region region)
Get the painting region of the original region.


getLocDimDescripingRegion

protected inetsoft.report.internal.Region getLocDimDescripingRegion(inetsoft.report.internal.Region region)
Get the rectangle and ellipse region of the original region.


getPointsDiscriptingRegion

protected inetsoft.report.internal.Region getPointsDiscriptingRegion(inetsoft.report.internal.PolygonRegion region)
Get the polygon region of the original region.


createPaintingRectangle

protected inetsoft.report.internal.RectangleRegion createPaintingRectangle(String name,
                                                                           Point[] ps)
Create painting rectangle for 90 rotation.


convertCoordinate

protected Point convertCoordinate(Point point)
Convert a coordinate from math to java or from java to math.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.