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 Size
empty()
Returns an emptySize
with zero width and height.default int
height()
Returns the vertical dimension.default boolean
isEmpty()
Returnstrue
if this size is empty.static Size
of
(int width, int height) Returns theSize
instance for the givenwidth
andheight
values.default int
width()
Returns the horizontal dimension.
-
Method Details
-
empty
Returns an emptySize
with zero width and height. -
of
Returns theSize
instance for the givenwidth
andheight
values.- Throws:
IllegalArgumentException
- whenwidth
orheight
is negative
-
width
default int width()Returns the horizontal dimension. -
height
default int height()Returns the vertical dimension. -
isEmpty
default boolean isEmpty()Returnstrue
if this size is empty.
-