public class Cluster extends Object implements Clusterable
| Constructor and Description |
|---|
Cluster(Cluster parent,
double titleWidth,
double titleHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBloc(Block b) |
Block |
getBlock(int uid) |
Collection<Block> |
getContents() |
Cluster |
getParent() |
Point2D |
getPosition() |
Collection<Block> |
getRecursiveContents() |
Dimension2D |
getSize() |
Collection<Cluster> |
getSubClusters() |
double |
getTitleHeight() |
double |
getTitleWidth() |
int |
getUid() |
void |
moveSvek(double deltaX,
double deltaY) |
void |
setHeight(double height) |
void |
setWidth(double width) |
void |
setX(double x) |
void |
setY(double y) |
public Cluster(Cluster parent, double titleWidth, double titleHeight)
public Collection<Cluster> getSubClusters()
public Collection<Block> getRecursiveContents()
public int getUid()
public void addBloc(Block b)
public Cluster getParent()
getParent in interface Clusterablepublic Collection<Block> getContents()
public Block getBlock(int uid)
public Point2D getPosition()
getPosition in interface Positionablepublic Dimension2D getSize()
getSize in interface Positionablepublic final void setX(double x)
public final void setY(double y)
public final void setWidth(double width)
public final void setHeight(double height)
public final double getTitleWidth()
public final double getTitleHeight()
Copyright © 2017. All rights reserved.