Class ImmutableDimension

java.lang.Object
qupath.lib.geom.ImmutableDimension

public class ImmutableDimension extends Object
An immutable alternative to Java's AWT Dimension.
Author:
Pete Bankhead
  • Field Details

    • width

      public final int width
      Width of the ImmutableDimension.
    • height

      public final int height
      Height of the ImmutableDimension.
  • Method Details

    • getInstance

      public static ImmutableDimension getInstance(int width, int height)
      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: