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 SummaryModifier 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- 
performTranslateTranslates this object horizontally bypoint.xand vertically bypoint.y.- Parameters:
- point- Point which provides translation information
- Since:
- 3.13
 
- 
performTranslateTranslates this object horizontally bydimension.widthand vertically bydimension.height.- Parameters:
- dimension- Dimension which provides translation information
- Since:
- 3.13
 
- 
performTranslateTranslates this object horizontally byinsets.leftand vertically byinsets.top.- Parameters:
- insets- Insets which provides translation information
- Since:
- 3.13
 
- 
performTranslatevoid performTranslate(int dx, int dy) Translates this object horizontally bydxand vertically bydy.- Parameters:
- dx- The amount to translate horizontally
- dy- The amount to translate vertically
- Since:
- 2.0
 
- 
performScalevoid performScale(double factor) Scales this object by the scale factor.- Parameters:
- factor- The scale factor
- Since:
- 2.0
 
 
-