Class Dimensions


  • public class Dimensions
    extends java.lang.Object
    This class represents the dimensions of two-dimensional images.
    • Constructor Summary

      Constructors 
      Constructor Description
      Dimensions​(int width, int height)
      Constructs a new Dimensions object with the given width and height.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Returns the height component.
      int getWidth()
      Returns the width component.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Dimensions

        public Dimensions​(int width,
                          int height)
        Constructs a new Dimensions object with the given width and height.
        Parameters:
        width - the width component
        height - the height component
    • Method Detail

      • getWidth

        public int getWidth()
        Returns the width component.
        Returns:
        the width component
      • getHeight

        public int getHeight()
        Returns the height component.
        Returns:
        the height component