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
    • 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 to 0.