jcreek.cke.graph
Interface CreekModel

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
GraphModel

public interface CreekModel
extends java.io.Serializable


Method Summary
 void addChangeListener(java.beans.PropertyChangeListener listener)
           
 boolean addEntity(VisualEntity node)
           
 boolean addEntityList(VertexList nodes)
           
 boolean addRelation(VisualRelation rel)
           
 boolean addRelationList(RelationList relations)
           
 boolean deleteEntityList(VertexList nodes)
           
 boolean deleteRelationList(RelationList edges)
           
 VisualEntity findVisualEntity(Entity e)
           
 VisualRelation findVisualRelation(Relation rel)
           
 void fireChange()
           
 Relation[] getActiveRelations(VisualEntity ved)
           
 VertexList getEntities()
           
 Graph getGraph()
           
 RelationList getRelations()
           
 VisualEntity[] getSelectedEntities()
           
 void markDirty()
           
 boolean moveEntityList(VertexList vl, int dx, int dy)
           
 void removeChangeListener(java.beans.PropertyChangeListener listener)
           
 boolean removeEntity(Entity e)
           
 void removeEntity(VisualEntity node)
           
 boolean removeEntityList(Entity[] nodes)
           
 boolean removeEntityList(VertexList nodes)
           
 boolean removeRelation(Relation r)
           
 boolean removeRelation(VisualRelation edgeToRemove)
           
 boolean removeRelationList(Relation[] edges)
           
 boolean removeRelationList(RelationList edges)
           
 void replace(Graph grp)
           
 void selectRelations(boolean state, RelationList rList)
           
 void selectVertices(boolean state, VertexList vList)
           
 void setSelected(VisualEntity v, boolean s)
           
 void setSelected(VisualRelation e, boolean s)
           
 void unselectAllEdges()
           
 void unselectAllVertices()
           
 

Method Detail

addEntity

public boolean addEntity(VisualEntity node)

addEntityList

public boolean addEntityList(VertexList nodes)

removeEntity

public void removeEntity(VisualEntity node)

removeEntity

public boolean removeEntity(Entity e)

removeEntityList

public boolean removeEntityList(VertexList nodes)

removeEntityList

public boolean removeEntityList(Entity[] nodes)

deleteEntityList

public boolean deleteEntityList(VertexList nodes)

getEntities

public VertexList getEntities()

getSelectedEntities

public VisualEntity[] getSelectedEntities()

selectVertices

public void selectVertices(boolean state,
                           VertexList vList)

setSelected

public void setSelected(VisualEntity v,
                        boolean s)

unselectAllVertices

public void unselectAllVertices()

findVisualEntity

public VisualEntity findVisualEntity(Entity e)

moveEntityList

public boolean moveEntityList(VertexList vl,
                              int dx,
                              int dy)

addRelation

public boolean addRelation(VisualRelation rel)

addRelationList

public boolean addRelationList(RelationList relations)

getRelations

public RelationList getRelations()

removeRelation

public boolean removeRelation(VisualRelation edgeToRemove)

removeRelation

public boolean removeRelation(Relation r)

removeRelationList

public boolean removeRelationList(RelationList edges)

removeRelationList

public boolean removeRelationList(Relation[] edges)

deleteRelationList

public boolean deleteRelationList(RelationList edges)

selectRelations

public void selectRelations(boolean state,
                            RelationList rList)

setSelected

public void setSelected(VisualRelation e,
                        boolean s)

unselectAllEdges

public void unselectAllEdges()

findVisualRelation

public VisualRelation findVisualRelation(Relation rel)

getActiveRelations

public Relation[] getActiveRelations(VisualEntity ved)

markDirty

public void markDirty()

addChangeListener

public void addChangeListener(java.beans.PropertyChangeListener listener)

removeChangeListener

public void removeChangeListener(java.beans.PropertyChangeListener listener)

fireChange

public void fireChange()

getGraph

public Graph getGraph()

replace

public void replace(Graph grp)


Created at IDI, NTNU by the Artificial Intelligence and Learning group