Package qupath.lib.geom
Class ImmutableDimension
java.lang.Object
qupath.lib.geom.ImmutableDimension
An immutable alternative to Java's AWT Dimension.
- Author:
- Pete Bankhead
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the ImmutableDimension height.static ImmutableDimension
getInstance
(int width, int height) Get an ImmutableDimension representing the specified width and height.int
getWidth()
Get the ImmutableDimension width.
-
Field Details
-
width
public final int widthWidth of the ImmutableDimension. -
height
public final int heightHeight of the ImmutableDimension.
-
-
Method Details
-
getInstance
Get an ImmutableDimension representing the specified width and height.- Parameters:
width
-height
-- Returns:
-
getWidth
public int getWidth()Get the ImmutableDimension width.- Returns:
-
getHeight
public int getHeight()Get the ImmutableDimension height.- Returns:
-