Class Rectangle

java.lang.Object
eu.hansolo.fx.geometry.Rectangle

public class Rectangle extends Object
  • Field Details

    • x

      public int x
    • y

      public int y
    • width

      public int width
    • height

      public int height
  • Constructor Details

    • Rectangle

      public Rectangle()
    • Rectangle

      public Rectangle(BaseBounds b)
    • Rectangle

      public Rectangle(Rectangle r)
    • Rectangle

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

      public Rectangle(int x, int y, int width, int height)
    • Rectangle

      public Rectangle(int width, int height)
  • Method Details

    • setBounds

      public void setBounds(Rectangle r)
    • setBounds

      public void setBounds(int x, int y, int width, int height)
    • setBounds

      public void setBounds(BaseBounds b)
    • contains

      public boolean contains(double cx, double cy)
    • contains

      public boolean contains(int cx, int cy)
    • contains

      public boolean contains(Rectangle r)
    • contains

      public boolean contains(int cx, int cy, int cw, int ch)
    • isOverlapping

      public boolean isOverlapping(Rectangle r)
    • intersection

      public Rectangle intersection(Rectangle r)
    • intersectWith

      public void intersectWith(Rectangle r)
    • translate

      public void translate(int dx, int dy)
    • toRectBounds

      public RectBounds toRectBounds()
    • add

      public void add(int newx, int newy)
    • add

      public void add(Rectangle r)
    • grow

      public void grow(int h, int v)
    • isEmpty

      public boolean isEmpty()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object