public interface IMutableSize extends ISize
This interface provides read and write access to the size. It extends the read only interface ISize
.
ISize
,
MutableSize
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Gets the height of this instance.
|
double |
getWidth()
Gets the width of this instance.
|
default void |
resize(double newWidth,
double newHeight)
Sets the coordinates of the size to the given values.
|
default void |
resize(ISize newSize)
Sets the coordinates of the size to the given values.
|
default void |
resize(SizeD newSize)
Sets the values of the size to the given values.
|
void |
setHeight(double value)
Sets the height of this instance.
|
void |
setWidth(double value)
Sets the width of this instance.
|
double getHeight()
Implementations may adjust the values internally, e.g. to automatically snap the values to grid sizes. So depending on context the value that can be read might not necessarily be the exact same value that has just been written.
getHeight
in interface ISize
ISize.getHeight()
,
setHeight(double)
double getWidth()
Implementations may adjust the values internally, e.g. to automatically snap the values to grid sizes. So depending on context the value that can be read might not necessarily be the exact same value that has just been written.
getWidth
in interface ISize
ISize.getWidth()
,
setWidth(double)
default void resize(double newWidth, double newHeight)
newWidth
- The new x coordinatenewHeight
- The new y coordinatedefault void resize(ISize newSize)
newSize
- The new location.default void resize(SizeD newSize)
newSize
- The new location.void setHeight(double value)
Implementations may adjust the values internally, e.g. to automatically snap the values to grid sizes. So depending on context the value that can be read might not necessarily be the exact same value that has just been written.
value
- The Height to set.ISize.getHeight()
,
getHeight()
void setWidth(double value)
Implementations may adjust the values internally, e.g. to automatically snap the values to grid sizes. So depending on context the value that can be read might not necessarily be the exact same value that has just been written.
value
- The Width to set.ISize.getWidth()
,
getWidth()