Class DoubleDimension

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

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

      Constructors 
      Constructor Description
      DoubleDimension() Initializes a new DoubleDimension instance with both width and height set to zero.
      DoubleDimension(Dimension2D d) Initializes a new DoubleDimension instance using another Dimension2D object's data.
      DoubleDimension(double w, double h) Initializes a new DoubleDimension using raw data.
      DoubleDimension(Array<double> d) Initializes a new DoubleDimension through an array of numbers.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      double getWidth()
      double getHeight()
      void setSize(double w, double h)
      • Methods inherited from class java.awt.geom.Dimension2D

        clone, getHeight, getWidth
      • Methods inherited from class java.lang.Object

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

      • DoubleDimension

        DoubleDimension()
        Initializes a new DoubleDimension instance with both width and height set to zero.
      • DoubleDimension

        DoubleDimension(Dimension2D d)
        Initializes a new DoubleDimension instance using another Dimension2D object's data.
        Parameters:
        d - is the objects used to get the data
      • DoubleDimension

        DoubleDimension(double w, double h)
        Initializes a new DoubleDimension using raw data.
        Parameters:
        w - is the double containing the width
        h - is the double containing the height
      • DoubleDimension

        DoubleDimension(Array<double> d)
        Initializes a new DoubleDimension through an array of numbers.
        Parameters:
        d - is a mono-dimensional array of Number.