public class Block extends Object implements Clusterable
Constructor and Description |
---|
Block(int uid,
double width,
double height,
Cluster parent) |
Modifier and Type | Method and Description |
---|---|
Cluster |
getParent() |
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) |
String |
toString() |
String |
toStringPosition() |
public Block(int uid, double width, double height, Cluster parent)
public String toStringPosition()
public int getUid()
public Cluster getParent()
getParent
in interface Clusterable
public 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)
Copyright © 2015. All Rights Reserved.