Package org.jfree.ui

Class Size2D

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double height
      The height.
      double width
      The width.
    • Constructor Summary

      Constructors 
      Constructor Description
      Size2D()
      Creates a new instance with zero width and height.
      Size2D​(double width, double height)
      Creates a new instance with the specified width and height.
    • Field Detail

      • width

        public double width
        The width.
      • height

        public double height
        The height.
    • Constructor Detail

      • Size2D

        public Size2D()
        Creates a new instance with zero width and height.
      • Size2D

        public Size2D​(double width,
                      double height)
        Creates a new instance with the specified width and height.
        Parameters:
        width - the width.
        height - the height.
    • Method Detail

      • getWidth

        public double getWidth()
        Returns the width.
        Returns:
        The width.
      • setWidth

        public void setWidth​(double width)
        Sets the width.
        Parameters:
        width - the width.
      • getHeight

        public double getHeight()
        Returns the height.
        Returns:
        The height.
      • setHeight

        public void setHeight​(double height)
        Sets the height.
        Parameters:
        height - the height.
      • toString

        public String toString()
        Returns a string representation of this instance, mostly used for debugging purposes.
        Overrides:
        toString in class Object
        Returns:
        A string.
      • equals

        public boolean equals​(Object obj)
        Compares this instance for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.