|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.DefaultObservableList
org.progeeks.graph.ObservableAdjacencyList
public class ObservableAdjacencyList
An ObservableList subclass the presents a view of a graph node's adjacency set, with optional filtering.
Constructor Summary | |
---|---|
ObservableAdjacencyList()
Creates an empty list associated with the property name "list". |
|
ObservableAdjacencyList(com.phoenixst.plexus.Graph graph,
java.lang.Object node)
Creates a list view of the unfiltered adjacency set of the specified node in the specified graph. |
|
ObservableAdjacencyList(com.phoenixst.plexus.Graph graph,
java.lang.Object node,
EdgeDefinition edgeDef)
Creates a list view of the adjacency set defined by the specified graph, node, and edge definition. |
|
ObservableAdjacencyList(com.phoenixst.plexus.Graph graph,
java.lang.Object node,
org.apache.commons.collections.Predicate filter)
Creates a list view of the adjacency set defined by the specified graph, node, and traverser filter. |
|
ObservableAdjacencyList(java.lang.String propertyName)
Creates an empty list associated with the specified property name. |
|
ObservableAdjacencyList(java.lang.String propertyName,
com.phoenixst.plexus.Graph graph,
java.lang.Object node)
Creates a list view of the unfiltered adjacency set of the specified node in the specified graph. |
|
ObservableAdjacencyList(java.lang.String propertyName,
com.phoenixst.plexus.Graph graph,
java.lang.Object node,
EdgeDefinition edgeDef)
Creates a list view of the adjacency set defined by the specified graph, node, and edge definition. |
|
ObservableAdjacencyList(java.lang.String propertyName,
com.phoenixst.plexus.Graph graph,
java.lang.Object node,
EdgeDefinition edgeDef,
boolean removeOrphans)
Creates a list view of the adjacency set defined by the specified graph, node, and edge definition. |
|
ObservableAdjacencyList(java.lang.String propertyName,
com.phoenixst.plexus.Graph graph,
java.lang.Object node,
org.apache.commons.collections.Predicate filter)
Creates a list view of the adjacency set defined by the specified graph, node, and traverser filter The list will be associated with the specified property name. |
|
ObservableAdjacencyList(java.lang.String propertyName,
com.phoenixst.plexus.Graph graph,
java.lang.Object node,
org.apache.commons.collections.Predicate filter,
boolean removeOrphans)
Creates a list view of the adjacency set defined by the specified graph, node, and traverser filter The list will be associated with the specified property name. |
Method Summary | |
---|---|
protected boolean |
cache(java.lang.Object o)
Adds the object directly to the cache and fires the appropriate events. |
EdgeDefinition |
getEdgeDefinition()
|
org.apache.commons.collections.Predicate |
getFilter()
|
com.phoenixst.plexus.Graph |
getGraph()
|
java.lang.Object |
getNode()
|
boolean |
getRemoveOrphans()
Returns the flag used to control orphan removal. |
protected void |
resetListCache()
|
void |
setEdgeDefinition(EdgeDefinition edgeDef)
|
void |
setFilter(org.apache.commons.collections.Predicate filter)
|
void |
setGraph(com.phoenixst.plexus.Graph graph)
|
void |
setNode(java.lang.Object node)
|
void |
setRemoveOrphans(boolean removeOrphans)
Set to true to cause the list to remove orphaned nodes when removing edges. |
protected boolean |
uncache(java.lang.Object o)
Adds the object directly to the cache and fires the appropriate events. |
Methods inherited from class org.progeeks.util.DefaultObservableList |
---|
add, add, addAll, addAll, addPropertyChangeListener, clear, clone, contains, containsAll, equals, fireElementsInserted, fireElementsModified, fireElementsRemoved, firePropertyChangeEvent, get, getPropertyName, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removePropertyChangeListener, retainAll, set, setList, size, subList, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObservableAdjacencyList()
public ObservableAdjacencyList(java.lang.String propertyName)
public ObservableAdjacencyList(com.phoenixst.plexus.Graph graph, java.lang.Object node, EdgeDefinition edgeDef)
public ObservableAdjacencyList(com.phoenixst.plexus.Graph graph, java.lang.Object node, org.apache.commons.collections.Predicate filter)
public ObservableAdjacencyList(java.lang.String propertyName, com.phoenixst.plexus.Graph graph, java.lang.Object node, EdgeDefinition edgeDef)
public ObservableAdjacencyList(java.lang.String propertyName, com.phoenixst.plexus.Graph graph, java.lang.Object node, EdgeDefinition edgeDef, boolean removeOrphans)
public ObservableAdjacencyList(java.lang.String propertyName, com.phoenixst.plexus.Graph graph, java.lang.Object node, org.apache.commons.collections.Predicate filter)
public ObservableAdjacencyList(java.lang.String propertyName, com.phoenixst.plexus.Graph graph, java.lang.Object node)
public ObservableAdjacencyList(com.phoenixst.plexus.Graph graph, java.lang.Object node)
public ObservableAdjacencyList(java.lang.String propertyName, com.phoenixst.plexus.Graph graph, java.lang.Object node, org.apache.commons.collections.Predicate filter, boolean removeOrphans)
Method Detail |
---|
public final void setGraph(com.phoenixst.plexus.Graph graph)
public com.phoenixst.plexus.Graph getGraph()
public void setNode(java.lang.Object node)
public java.lang.Object getNode()
public void setEdgeDefinition(EdgeDefinition edgeDef)
public EdgeDefinition getEdgeDefinition()
public void setFilter(org.apache.commons.collections.Predicate filter)
public org.apache.commons.collections.Predicate getFilter()
public void setRemoveOrphans(boolean removeOrphans)
public boolean getRemoveOrphans()
protected boolean cache(java.lang.Object o)
protected boolean uncache(java.lang.Object o)
protected void resetListCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |