Interface IRotatable<T extends IGeometry>
-
- Type Parameters:
T
- type of the rotation results
- All Known Implementing Classes:
Arc
,BezierCurve
,CubicCurve
,CurvedPolygon
,Ellipse
,Line
,Pie
,PolyBezier
,Polygon
,Polyline
,QuadraticCurve
,Rectangle
,Region
,Ring
,RoundedRectangle
public interface IRotatable<T extends IGeometry>
The
IRotatable
interface collects the out-of-place rotation short-cut methods.Rotation cannot be applied directly to all
IGeometry
s. For example,Rectangle
,Ellipse
,Region
andRoundedRectangle
cannot be slanted. Therefore, you have to specify the result type for the rotation methods via a type parameter.There are two directions of rotation: clock-wise (CW) and counter-clock-wise (CCW). The individual method names reflect the direction of rotation that is used. These are the rotation methods:
getRotatedCCW(Angle)
,getRotatedCCW(Angle, Point)
,getRotatedCCW(Angle, double, double)
,getRotatedCW(Angle)
,getRotatedCW(Angle, Point)
,getRotatedCW(Angle, double, double)
.If you do not specify a
Point
to rotate around, the implementation can appropriately choose one. In most cases, this will be the centerPoint
of the rotated object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getRotatedCCW(Angle angle)
T
getRotatedCCW(Angle angle, double cx, double cy)
T
getRotatedCCW(Angle angle, Point center)
T
getRotatedCW(Angle angle)
T
getRotatedCW(Angle angle, double cx, double cy)
T
getRotatedCW(Angle angle, Point center)
-
-
-
Method Detail
-