Interface Size
-
- All Known Implementing Classes:
AbsoluteSize,RelativeSize
public interface SizeThis interface is implemented by classes which calculate the size of an object inside of an enclosing object.- Since:
- 0.3.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Dimensioncalculate(int width, int height)Calculates the size of the object.
-
-
-
Method Detail
-
calculate
java.awt.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:
java.lang.IllegalArgumentException- If the width and/or height is less than or equal to0.
-
-