Package com.teamdev.jxbrowser.ui
Interface Size
public interface Size
A pair of numbers that in general are used to define dimensions in the two-dimensional space.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Sizeempty()Returns an emptySizewith zero width and height.default intheight()Returns the vertical dimension.default booleanisEmpty()Returnstrueif this size is empty.static Sizeof(int width, int height) Returns theSizeinstance for the givenwidthandheightvalues.default intwidth()Returns the horizontal dimension.
-
Method Details
-
empty
Returns an emptySizewith zero width and height. -
of
Returns theSizeinstance for the givenwidthandheightvalues.- Throws:
IllegalArgumentException- whenwidthorheightis negative
-
width
default int width()Returns the horizontal dimension. -
height
default int height()Returns the vertical dimension. -
isEmpty
default boolean isEmpty()Returnstrueif this size is empty.
-