public class Block extends java.lang.Object implements Clusterable
Constructor and Description |
---|
Block(int uid,
double width,
double height,
Cluster parent) |
Modifier and Type | Method and Description |
---|---|
Cluster |
getParent() |
java.awt.geom.Point2D |
getPosition() |
Dimension2D |
getSize() |
int |
getUid() |
void |
moveSvek(double deltaX,
double deltaY) |
void |
setCenterX(double center) |
void |
setCenterY(double center) |
void |
setX(double x) |
void |
setY(double y) |
java.lang.String |
toString() |
java.lang.String |
toStringPosition() |
public Block(int uid, double width, double height, Cluster parent)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringPosition()
public int getUid()
public Cluster getParent()
getParent
in interface Clusterable
public java.awt.geom.Point2D getPosition()
getPosition
in interface Positionable
public Dimension2D getSize()
getSize
in interface Positionable
public void setCenterX(double center)
public void setCenterY(double center)
public final void setX(double x)
public final void setY(double y)