org.grinvin.graphs

Class EmbeddingModelSupport


public class EmbeddingModelSupport
extends java.lang.Object

Helper class for implementations of EmbeddingModel. Models can delegate listener management and notification to an object of this class.

Method Summary

void
addEmbeddingListener(EmbeddingListener l)
void
fireCoordinatesChanged(Vertex vertex)
Notify all listeners of the fact that coordinates of a vertex were changed.
void
fireDimensionChanged(int oldDimension)
Notify all listeners of the fact that the dimension of the embedding was changed.
void
fireEmbeddingChanged()
Notify all listeners of a bulk change to this embedding.
void
removeEmbeddingListener(EmbeddingListener l)

Method Details

addEmbeddingListener

public void addEmbeddingListener(EmbeddingListener l)

fireCoordinatesChanged

public void fireCoordinatesChanged(Vertex vertex)
Notify all listeners of the fact that coordinates of a vertex were changed.

fireDimensionChanged

public void fireDimensionChanged(int oldDimension)
Notify all listeners of the fact that the dimension of the embedding was changed.

fireEmbeddingChanged

public void fireEmbeddingChanged()
Notify all listeners of a bulk change to this embedding.

removeEmbeddingListener

public void removeEmbeddingListener(EmbeddingListener l)