org.grinvin

Interface MutableEmbeddingModel

All Superinterfaces:
Embedding, EmbeddingModel, EmbeddingView
Known Implementing Classes:
DefaultEmbeddingModel

public interface MutableEmbeddingModel
extends Embedding, EmbeddingModel

Interface combining the functionality of EmbeddingModel and Embedding.

Method Summary

void
setCoordinates(Vertex[] vertices, double[][] coordinates)
Perform a bulk change to the coordinates.

Methods inherited from interface org.grinvin.Embedding

copy, copy, setCoordinates, setDimension

Methods inherited from interface org.grinvin.EmbeddingModel

addEmbeddingListener, removeEmbeddingListener

Methods inherited from interface org.grinvin.EmbeddingView

getCoordinates, getDimension, getPeer

Method Details

setCoordinates

public void setCoordinates(Vertex[] vertices,
                           double[][] coordinates)
Perform a bulk change to the coordinates. Listeners are informed once using an 'embedding changed' after all coordinates have been changed.
Parameters:
vertices - Array of vertices whose coordinates are to be changed
coordinates - Array of corresponding new coordinates.