public interface Cell extends Cloneable, Persistent
Modifier and Type | Method and Description |
---|---|
Cell |
clone()
Creates a copy of the object.
|
boolean |
contains(double x,
double y) |
double |
getHeight() |
java.awt.geom.Rectangle2D |
getRectangle() |
double |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
intersects(java.awt.geom.Rectangle2D rect) |
boolean |
isContained(java.awt.geom.Rectangle2D rect) |
void |
join(Cell other) |
void |
setHeight(double height) |
void |
setWidth(double width) |
void |
setX(double x) |
void |
setY(double y) |
cloneQuietly, cloneQuietly
loadFromState, saveToState
Cell clone() throws java.lang.CloneNotSupportedException
Cloneable
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
boolean contains(double x, double y)
double getHeight()
double getWidth()
double getX()
double getY()
boolean intersects(java.awt.geom.Rectangle2D rect)
boolean isContained(java.awt.geom.Rectangle2D rect)
void setHeight(double height)
void setWidth(double width)
void setX(double x)
void setY(double y)
void join(Cell other)
java.awt.geom.Rectangle2D getRectangle()