T - Type of elementpublic class ElementPlacement<T> extends Object
| Constructor and Description |
|---|
ElementPlacement(Point p1,
Point p2) |
ElementPlacement(T element,
Point p1,
Point p2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int x,
int y)
Tels if given coordinates are inside element placement's coordinates
topLeft and bottomRight
inclusively. |
boolean |
equals(Object o) |
Point |
getBottomRight() |
T |
getElement() |
int |
getHeight() |
Point |
getTopLeft() |
int |
getWidth() |
int |
hashCode() |
void |
setBottomRight(Point bottomRight) |
void |
setElement(T element) |
void |
setTopLeft(Point topLeft) |
String |
toString() |
public boolean contains(int x,
int y)
topLeft and bottomRight
inclusively.x - x coordinate.y - y coordinate.public Point getTopLeft()
public void setTopLeft(Point topLeft)
public Point getBottomRight()
public void setBottomRight(Point bottomRight)
public T getElement()
public void setElement(T element)
public int getHeight()
public int getWidth()
Copyright © 2018. All rights reserved.