Package org.eclipse.draw2d.geometry
Interface Translatable
- All Known Implementing Classes:
AbsoluteBendpoint
,CaretInfo
,Dimension
,Point
,PointList
,PrecisionDimension
,PrecisionPoint
,PrecisionRectangle
,Rectangle
public interface Translatable
A translatable object can be translated (or moved) vertically and/or
horizontally.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
performScale
(double factor) Scales this object by the scale factor.void
performTranslate
(int dx, int dy) Translates this object horizontally bydx
and vertically bydy
.default void
performTranslate
(Dimension dimension) Translates this object horizontally bydimension.width
and vertically bydimension.height
.default void
performTranslate
(Insets insets) Translates this object horizontally byinsets.left
and vertically byinsets.top
.default void
performTranslate
(Point point) Translates this object horizontally bypoint.x
and vertically bypoint.y
.
-
Method Details
-
performTranslate
Translates this object horizontally bypoint.x
and vertically bypoint.y
.- Parameters:
point
- Point which provides translation information- Since:
- 3.13
-
performTranslate
Translates this object horizontally bydimension.width
and vertically bydimension.height
.- Parameters:
dimension
- Dimension which provides translation information- Since:
- 3.13
-
performTranslate
Translates this object horizontally byinsets.left
and vertically byinsets.top
.- Parameters:
insets
- Insets which provides translation information- Since:
- 3.13
-
performTranslate
void performTranslate(int dx, int dy) Translates this object horizontally bydx
and vertically bydy
.- Parameters:
dx
- The amount to translate horizontallydy
- The amount to translate vertically- Since:
- 2.0
-
performScale
void performScale(double factor) Scales this object by the scale factor.- Parameters:
factor
- The scale factor- Since:
- 2.0
-