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 TypeMethodDescriptionvoidperformScale(double factor) Scales this object by the scale factor.voidperformTranslate(int dx, int dy) Translates this object horizontally bydxand vertically bydy.default voidperformTranslate(Dimension dimension) Translates this object horizontally bydimension.widthand vertically bydimension.height.default voidperformTranslate(Insets insets) Translates this object horizontally byinsets.leftand vertically byinsets.top.default voidperformTranslate(Point point) Translates this object horizontally bypoint.xand vertically bypoint.y.
-
Method Details
-
performTranslate
Translates this object horizontally bypoint.xand vertically bypoint.y.- Parameters:
point- Point which provides translation information- Since:
- 3.13
-
performTranslate
Translates this object horizontally bydimension.widthand vertically bydimension.height.- Parameters:
dimension- Dimension which provides translation information- Since:
- 3.13
-
performTranslate
Translates this object horizontally byinsets.leftand vertically byinsets.top.- Parameters:
insets- Insets which provides translation information- Since:
- 3.13
-
performTranslate
void performTranslate(int dx, int dy) Translates this object horizontally bydxand 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
-