T
- the implementing typepublic interface IScalable<T extends IGeometry>
The IScalable
interface collects all scaling short-cut methods.
The scale(double)
, scale(double, double)
,
scale(double, Point)
, scale(double, double, double)
,
scale(double, double, Point)
and
scale(double, double, double, double)
methods are directly applied
to the calling object. They scale it by the given factor(s) around the given
Point
or an appropriate default.
On the other hand, the getScaled(double)
,
getScaled(double, double)
, getScaled(double, Point)
,
getScaled(double, double, double)
,
getScaled(double, double, Point)
and
getScaled(double, double, double, double)
methods are applied to a
copy of the calling object.
If you do not specify the relative Point
for the scaling, the
implementation will appropriately choose one. In most cases, this will be the
center of the scaled object.
Modifier and Type | Method and Description |
---|---|
T |
getScaled(double factor)
Scales a copy of the calling object by the given factor relative to its
center
Point . |
T |
getScaled(double fx,
double fy)
Scales a copy of the calling object by the given factors relative to its
center
Point . |
T |
getScaled(double factor,
double cx,
double cy)
Scales a copy of the calling object by the given factor relative to the
given center
Point (cx, cy). |
T |
getScaled(double fx,
double fy,
double cx,
double cy)
Scales a copy of the calling object by the given factors relative to the
given center
Point (cx, cy). |
T |
getScaled(double fx,
double fy,
Point center)
Scales a copy of the calling object by the given factors relative to the
given center
Point . |
T |
getScaled(double factor,
Point center)
Scales a copy of the calling object by the given factor relative to the
given center
Point . |
T |
scale(double factor)
Scales the calling object by the given factor relative to its center
Point . |
T |
scale(double fx,
double fy)
Scales the calling object by the given factors relative to the given
center
Point . |
T |
scale(double factor,
double cx,
double cy)
Scales the calling object by the given factor relative to the given
center
Point (cx, cy). |
T |
scale(double fx,
double fy,
double cx,
double cy)
Scales the calling object by the given factors relative to the given
center
Point (cx, cy). |
T |
scale(double fx,
double fy,
Point center)
Scales the calling object by the given factors relative to the given
center
Point . |
T |
scale(double factor,
Point center)
Scales the calling object by the given factor relative to the given
center
Point . |
T getScaled(double factor)
Point
.factor
- scale-factorT getScaled(double fx, double fy)
Point
.fx
- x-scale-factorfy
- y-scale-factorT getScaled(double factor, double cx, double cy)
Point
(cx, cy).T getScaled(double fx, double fy, double cx, double cy)
Point
(cx, cy).T getScaled(double fx, double fy, Point center)
Point
.fx
- x-scale-factorfy
- y-scale-factorcenter
- relative Point
for the scalingT getScaled(double factor, Point center)
Point
.factor
- scale-factorcenter
- relative Point
for the scalingT scale(double factor)
Point
.factor
- scale-factorthis
for convenienceT scale(double fx, double fy)
Point
.fx
- x-scale-factorfy
- y-scale-factorthis
for convenienceT scale(double factor, double cx, double cy)
Point
(cx, cy).T scale(double fx, double fy, double cx, double cy)
Point
(cx, cy).T scale(double fx, double fy, Point center)
Point
.fx
- x-scale-factorfy
- y-scale-factorcenter
- relative Point
for the scalingthis
for convenienceCopyright (c) 2014 itemis AG, and others. All rights reserved.