Package org.eclipse.graphiti.datatypes
Interface IAdvancedDimension
- All Superinterfaces:
IDimension
- All Known Implementing Classes:
DimensionImpl
The Interface IAdvancedDimension. It provides additional methods for the
dimension data type.
-
Method Summary
Modifier and TypeMethodDescriptionexpand
(int dw, int dh) Expands the current dimensionvoid
scale
(double amount) Changes the current dimensionsetDimension
(int width, int height) Sets the width and height of the dimension.setDimension
(IDimension dimension) Sets the width and height of the dimension.Methods inherited from interface org.eclipse.graphiti.datatypes.IDimension
getHeight, getWidth, setHeight, setWidth
-
Method Details
-
getDimensionCopy
IDimension getDimensionCopy()- Returns:
- An exact copy of the current advanced dimension instance.
-
setDimension
Sets the width and height of the dimension.- Parameters:
width
- the new width of the dimensionheight
- the new height of the dimension- Returns:
- the current instance
-
setDimension
Sets the width and height of the dimension.- Parameters:
dimension
- the dimension which contains the new width and height- Returns:
- the current instance
-
scale
void scale(double amount) Changes the current dimension- Parameters:
amount
- width and height of the dimension will be multiplied with this amount
-
expand
Expands the current dimension- Parameters:
dw
- this value will be added to the widthdh
- this value will be added to the height- Returns:
- the current instance
-