Class Dimension

  • All Implemented Interfaces:
    Dimension2D

    public class Dimension
    extends java.lang.Object
    implements Dimension2D
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height  
      int width  
    • Constructor Summary

      Constructors 
      Constructor Description
      Dimension​(int width, int height)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getHeight()  
      double getWidth()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • width

        public int width
      • height

        public int height
    • Constructor Detail

      • Dimension

        public Dimension​(int width,
                         int height)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object