Package qupath.lib.geom
Class ImmutableDimension
java.lang.Object
qupath.lib.geom.ImmutableDimension
An immutable alternative to Java's AWT Dimension.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintGet the ImmutableDimension height.static ImmutableDimensiongetInstance(int width, int height) Get an ImmutableDimension representing the specified width and height.intgetWidth()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:
-