|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.filters.AbstractGraphFilter
public abstract class AbstractGraphFilter
| Field Summary | |
|---|---|
protected java.lang.String |
name
|
| Constructor Summary | |
|---|---|
AbstractGraphFilter()
Creates an anonymous filter. |
|
AbstractGraphFilter(java.lang.String name)
Creates a named filter. |
|
| Method Summary | |
|---|---|
protected abstract java.util.Collection |
getFilteredNodes()
Get the nodes from the graph that pass the filter. |
Graph |
getGraph()
Ask the producer to create a graph. |
protected GraphProducer |
getGraphProducer()
Returns the current graph producer. |
java.lang.String |
getName()
Get the filter's name. |
protected Graph |
getProducersGraph()
Returns the graph from the current producer. |
void |
setProducer(GraphProducer producer)
Set the graph producer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
| Constructor Detail |
|---|
public AbstractGraphFilter()
public AbstractGraphFilter(java.lang.String name)
name - | Method Detail |
|---|
public Graph getGraph()
throws GrandException
GraphProducer
getGraph in interface GraphProducerGrandException - is an error occurs contructing the graph.public void setProducer(GraphProducer producer)
GraphConsumer
setProducer in interface GraphConsumerproducer - the producer to get the graph from.public java.lang.String getName()
GraphFilter
getName in interface GraphFilter
protected abstract java.util.Collection getFilteredNodes()
throws GrandException
UnsupportedOperationExceptionon modification methods.
GrandException - if the filtering cannot be doneprotected final GraphProducer getGraphProducer()
protected final Graph getProducersGraph()
throws GrandException
GrandException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||