public class DefaultSettableVertexLocationFunction extends java.lang.Object implements SettableVertexLocationFunction
Map-based implementation of
SettableVertexLocationFunction.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
normalized |
protected java.util.Map |
v_locations |
| Constructor and Description |
|---|
DefaultSettableVertexLocationFunction() |
DefaultSettableVertexLocationFunction(VertexLocationFunction vlf) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getLocation(ArchetypeVertex v) |
java.util.Iterator |
getVertexIterator() |
void |
reset() |
void |
setLocation(ArchetypeVertex v,
java.awt.geom.Point2D location) |
protected java.util.Map v_locations
protected boolean normalized
public DefaultSettableVertexLocationFunction()
public DefaultSettableVertexLocationFunction(VertexLocationFunction vlf)
public void setLocation(ArchetypeVertex v, java.awt.geom.Point2D location)
setLocation in interface SettableVertexLocationFunctionpublic java.awt.geom.Point2D getLocation(ArchetypeVertex v)
getLocation in interface VertexLocationFunctionpublic void reset()
public java.util.Iterator getVertexIterator()
getVertexIterator in interface VertexLocationFunction