public interface IAdvancedDimension extends IDimension
Modifier and Type | Method and Description |
---|---|
IDimension |
expand(int dw,
int dh)
Expands the current dimension
|
IDimension |
getDimensionCopy() |
void |
scale(double amount)
Changes the current dimension
|
IDimension |
setDimension(IDimension dimension)
Sets the width and height of the dimension.
|
IDimension |
setDimension(int width,
int height)
Sets the width and height of the dimension.
|
getHeight, getWidth, setHeight, setWidth
IDimension getDimensionCopy()
IDimension setDimension(int width, int height)
width
- the new width of the dimensionheight
- the new height of the dimensionIDimension setDimension(IDimension dimension)
dimension
- the dimension which contains the new width and heightvoid scale(double amount)
amount
- width and height of the dimension will be multiplied with this
amountIDimension expand(int dw, int dh)
dw
- this value will be added to the widthdh
- this value will be added to the height