public class RandomVertexLocationDecorator extends java.lang.Object implements VertexLocationFunction
| Constructor and Description |
|---|
RandomVertexLocationDecorator(java.awt.Dimension d) |
RandomVertexLocationDecorator(java.awt.Dimension d,
int seed) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getLocation(ArchetypeVertex v) |
java.util.Iterator |
getVertexIterator() |
void |
reset()
Resets all vertex locations returned by
getLocation
to new (random) locations. |
public RandomVertexLocationDecorator(java.awt.Dimension d)
public RandomVertexLocationDecorator(java.awt.Dimension d,
int seed)
public void reset()
getLocation
to new (random) locations.public java.awt.geom.Point2D getLocation(ArchetypeVertex v)
getLocation in interface VertexLocationFunctionpublic java.util.Iterator getVertexIterator()
getVertexIterator in interface VertexLocationFunction