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 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 boolean containsAny(Point... points)
public boolean containsAny(List<Point> points)
public boolean containsAll(Point... points)
public boolean containsAll(List<Point> points)
Copyright © 2015 Nuxeo SA. All rights reserved.