public class Rectangle extends Object
Constructor and Description |
---|
Rectangle() |
Rectangle(Point topLeft,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
centerOn(int x,
int y) |
boolean |
contains(Point p) |
boolean |
containsAll(List<Point> points) |
boolean |
containsAll(Point... points) |
boolean |
containsAny(List<Point> points) |
boolean |
containsAny(Point... points) |
Point |
getCenter() |
int |
getHeight() |
Point |
getTopLeft() |
int |
getWidth() |
void |
move(int x,
int y) |
void |
setLocation(int x,
int y) |
public Rectangle()
public Rectangle(Point topLeft, int width, int height)
public void move(int x, int y)
public void setLocation(int x, int y)
public void centerOn(int x, int y)
public Point getTopLeft()
public int getWidth()
public int getHeight()
public Point getCenter()
public boolean contains(Point p)
public boolean containsAny(Point... points)
public boolean containsAll(Point... points)
Copyright © 2014 Nuxeo SA. All rights reserved.