Package org.eclipse.graphiti.datatypes
Interface IAdvancedLocation
- All Superinterfaces:
ILocation
- All Known Implementing Classes:
LocationImpl
The Interface IAdvancedLocation. It provides additional methods for the
location data type.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
scale
(double amount) Changes the current location.setLocation
(int x, int y) Sets the location.setLocation
(ILocation location) Sets the location.translate
(int dx, int dy) Translates the current location.
-
Method Details
-
getLocationCopy
ILocation getLocationCopy()- Returns:
- An exact copy of the current advanced location instance.
-
setLocation
Sets the location.- Parameters:
x
- the new x coordinate of the locationy
- the new y coordinate of the location- Returns:
- the current instance
-
setLocation
Sets the location.- Parameters:
location
- the location which contains the new x and y coordinates- Returns:
- the current instance
-
scale
void scale(double amount) Changes the current location.- Parameters:
amount
- x and y coordinate of the location will be multiplied with this amount
-
translate
Translates the current location.- Parameters:
dx
- this value will be added to the x coordinatedy
- this value will be added to the y coordinate- Returns:
- the current instance
-