Class Rectangle2D

java.lang.Object
net.sourceforge.plantuml.awt.geom.Rectangle2D
All Implemented Interfaces:
Shape
Direct Known Subclasses:
Rectangle2D.Double

public class Rectangle2D extends java.lang.Object implements Shape
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
     
    final double
     
    final double
     
    final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rectangle2D(double x, double y, double width, double height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      public final double x
    • y

      public final double y
    • width

      public final double width
    • height

      public final double height
  • Constructor Details

    • Rectangle2D

      public Rectangle2D(double x, double y, double width, double height)
  • Method Details

    • getWidth

      public double getWidth()
    • getHeight

      public double getHeight()
    • getX

      public double getX()
    • getY

      public double getY()
    • getCenterX

      public double getCenterX()
    • getCenterY

      public double getCenterY()
    • getMinX

      public double getMinX()
    • getMaxX

      public double getMaxX()
    • getMinY

      public double getMinY()
    • getMaxY

      public double getMaxY()
    • intersects

      public boolean intersects(Rectangle2D rectangle)
    • contains

      public boolean contains(Point2D point)