net.coobird.thumbnailator.geometry
Interface Size
- All Known Implementing Classes:
- AbsoluteSize, RelativeSize
public interface Size
This interface is implemented by classes which calculate the size of an
object inside of an enclosing object.
- Since:
- 0.3.4
- Author:
- coobird
Method Summary |
Dimension |
calculate(int width,
int height)
Calculates the size of the object. |
calculate
Dimension calculate(int width,
int height)
- Calculates the size of the object.
- Parameters:
width
- Width of the object which encloses the object
for which the size should be determined.height
- Height of the object which encloses the object
for which the size should be determined.
- Returns:
- Calculated size of the object.
- Throws:
IllegalArgumentException
- If the width and/or height is less than
or equal to 0
.
Copyright © 2014. All rights reserved.