|
Protege 4.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GraphModel
The GraphModel provides an interface to the data visualised by OWLViz, without assuming what the data is/represents. It provides methods to access parent and child objects of any given object.
| Field Summary | |
|---|---|
static int |
DIRECTION_BACK
The direction of the relationship is from child to parent |
static int |
DIRECTION_BOTH
The relationship is bidirectional - i.e. |
static int |
DIRECTION_FORWARD
The direction of the relationship is from parent to child. |
static int |
DIRECTION_NONE
The relationship does not have a direction. |
| Method Summary | |
|---|---|
void |
addGraphModelListener(GraphModelListener lsnr)
Adds a listener to the model that is notified when events such a Node
addition and removal take place. |
boolean |
contains(Object obj)
Tests whether or not the specified object is contained within the graph model. |
void |
dispose()
Disposed of the graph model. |
int |
getChildCount(Object obj)
Retrives the number of children that the specified object has. |
Iterator |
getChildren(Object obj)
Gets the children of the specified object |
Iterator<GraphModelListener> |
getListeners()
Gets an Iterator that can be used to
traverse and remove listeners. |
int |
getParentCount(Object obj)
Retrives the number of parents that the specified object has. |
Iterator |
getParents(Object obj)
Retrieves the parents of the specified object |
Iterator |
getRelatedObjectsToAdd(Object obj)
In some situations when an object is displayed in a graph it is necessary to display other (related) objects automatically. |
Iterator |
getRelatedObjectsToRemove(Object obj)
In some situations when an object displayed in a graph is made invisible it might be useful to make other related objects invisible. |
int |
getRelationshipDirection(Object parentObject,
Object childObject)
Gets the direction of the relationship. |
Object |
getRelationshipType(Object parentObject,
Object childObject)
Retrieves the type of relationship between the specified objects. |
void |
removeGraphModelListener(GraphModelListener lsnr)
Removes a previously added GraphModelListener. |
| Field Detail |
|---|
static final int DIRECTION_NONE
static final int DIRECTION_FORWARD
static final int DIRECTION_BACK
static final int DIRECTION_BOTH
| Method Detail |
|---|
int getChildCount(Object obj)
obj - The object
Iterator getChildren(Object obj)
int getParentCount(Object obj)
obj - The object
Iterator getParents(Object obj)
obj - The object
boolean contains(Object obj)
obj - The object to test for.
true if the specified object is contained in the model,
or false if the specified object is not contained in the model.
Object getRelationshipType(Object parentObject,
Object childObject)
parentObject - The parent object.childObject - The child object.
String
that represents the name of the relationship, such as "is-a".
int getRelationshipDirection(Object parentObject,
Object childObject)
Edge between two objects to
be customised.
parentObject - The parent object.childObject - The child object.
GraphModel interface. A forward direction
represents and parent-to-child relationship. A back direction represents
a child-to-parent relationship.Iterator getRelatedObjectsToAdd(Object obj)
obj - The object for which related objects are to be
retrieved.
Iterator getRelatedObjectsToRemove(Object obj)
obj - The object being made invisible.
obj
that should also be made invisible.void addGraphModelListener(GraphModelListener lsnr)
Node
addition and removal take place.
lsnr - The listener to be added.void removeGraphModelListener(GraphModelListener lsnr)
GraphModelListener.
lsnr - The listener to be removed.Iterator<GraphModelListener> getListeners()
Iterator that can be used to
traverse and remove listeners.
void dispose()
|
Protege 4.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||