Class Rectangle.Float

All Implemented Interfaces:
Geometry, Surface, Serializable, Cloneable
Enclosing class:
Rectangle

public static final class Rectangle.Float extends Rectangle
See Also:
  • Field Details

    • width

      protected float width
    • height

      protected float height
  • Constructor Details

    • Float

      public Float()
    • Float

      public Float(Point coord, double width, double height)
      Parameters:
      coord - Bottom-left coordinates
      width -
      height -
    • Float

      public Float(double x, double y, double width, double height)
    • Float

      public Float(Rectangle rect)
    • Float

      public Float(Rectangle awtRect)
  • Method Details

    • getHeight

      public double getHeight()
      Specified by:
      getHeight in class Rectangle
      Returns:
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in class Rectangle
      Returns:
    • setHeight

      public void setHeight(double height)
      Specified by:
      setHeight in class Rectangle
      Parameters:
      height -
    • setWidth

      public void setWidth(double width)
      Specified by:
      setWidth in class Rectangle
      Parameters:
      width -
    • clone

      public Rectangle clone()
      Description copied from class: DefaultGeometry
      Clones this geometry.
      Specified by:
      clone in interface Geometry
      Specified by:
      clone in class Rectangle
      Returns:
      a deep copy of the current geometry.
    • toString

      public String toString()
      Description copied from interface: Geometry
      Returns information about the current geometry.
      Specified by:
      toString in interface Geometry
      Overrides:
      toString in class Object
      Returns:
      information about the current geometry.
    • sizeOf

      public int sizeOf()
      Returns an approximation in bytes of the memory used by this geometry.
      Returns:
      the memory used by this geometry.
    • getMaxX

      public double getMaxX()
      Specified by:
      getMaxX in class Rectangle
    • getMaxY

      public double getMaxY()
      Specified by:
      getMaxY in class Rectangle
    • getMinX

      public double getMinX()
      Specified by:
      getMinX in class Rectangle
    • getMinY

      public double getMinY()
      Specified by:
      getMinY in class Rectangle