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
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
and
RoundedRectangle
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 center
Point
of the rotated object.
-
Method Summary
Modifier and TypeMethodDescriptiongetRotatedCCW
(Angle angle) getRotatedCCW
(Angle angle, double cx, double cy) getRotatedCCW
(Angle angle, Point center) getRotatedCW
(Angle angle) getRotatedCW
(Angle angle, double cx, double cy) getRotatedCW
(Angle angle, Point center)
-
Method Details
-
getRotatedCCW
-
getRotatedCCW
-
getRotatedCCW
-
getRotatedCW
-
getRotatedCW
-
getRotatedCW
-