org.eclipse.birt.chart.computation
Class RotatedRectangle

java.lang.Object
  extended by org.eclipse.birt.chart.computation.Polygon
      extended by org.eclipse.birt.chart.computation.RotatedRectangle

public final class RotatedRectangle
extends Polygon

RotatedRectangle


Method Summary
 Point[] asPoints()
          Returns points as Point objects.
 Point getRectSize()
          returns the size of the rectangle.
 int[] getSwtPoints()
          Returns points as a single array, [x1,y1,x2,y2,...]
 void shiftVertices(double dOffset)
          Shifts both X,Y values by given offset.
 void shiftXVertices(double dOffset)
          Shifts all X-value by given offset.
 void shiftYVertices(double dOffset)
          Shifts all Y-value by given offset.
 
Methods inherited from class org.eclipse.birt.chart.computation.Polygon
add, add, contains, getBounds, getPoint, getPoints, intersects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSwtPoints

public final int[] getSwtPoints()
Returns points as a single array, [x1,y1,x2,y2,...]

Returns:

shiftXVertices

public final void shiftXVertices(double dOffset)
Shifts all X-value by given offset.

Parameters:
dOffset -

shiftYVertices

public final void shiftYVertices(double dOffset)
Shifts all Y-value by given offset.

Parameters:
dOffset -

shiftVertices

public final void shiftVertices(double dOffset)
Shifts both X,Y values by given offset.

Parameters:
dOffset -

asPoints

public final Point[] asPoints()
Returns points as Point objects.

Returns:

getRectSize

public final Point getRectSize()
returns the size of the rectangle.

Returns:


Copyright © 2005-2008 Actuate Corp. All rights reserved.