Class RotatedRectangle
java.lang.Object
org.eclipse.birt.chart.computation.Polygon
org.eclipse.birt.chart.computation.RotatedRectangle
RotatedRectangle
-
Method Summary
Modifier and TypeMethodDescriptionPoint[]asPoints()Returns points as Point objects.returns the size of the rectangle.int[]Returns points as a single array, [x1,y1,x2,y2,...]voidshiftVertices(double dOffset) Shifts both X,Y values by given offset.voidshiftXVertices(double dOffset) Shifts all X-value by given offset.voidshiftYVertices(double dOffset) Shifts all Y-value by given offset.
-
Method Details
-
getSwtPoints
public int[] getSwtPoints()Returns points as a single array, [x1,y1,x2,y2,...]- Returns:
-
shiftXVertices
public void shiftXVertices(double dOffset) Shifts all X-value by given offset.- Parameters:
dOffset-
-
shiftYVertices
public void shiftYVertices(double dOffset) Shifts all Y-value by given offset.- Parameters:
dOffset-
-
shiftVertices
public void shiftVertices(double dOffset) Shifts both X,Y values by given offset.- Parameters:
dOffset-
-
asPoints
Returns points as Point objects.- Returns:
-
getRectSize
returns the size of the rectangle.- Returns:
-