|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.graph.filters.GeneralVertexAcceptFilter
edu.uci.ics.jung.graph.filters.impl.AlphabeticVertexFilter
public class AlphabeticVertexFilter
A small example filter that accepts vertices that are alphabetically past the input value.
| Constructor Summary | |
|---|---|
AlphabeticVertexFilter(String threshhold,
StringLabeller sl,
boolean acceptAboveThreshold)
|
|
| Method Summary | |
|---|---|
boolean |
acceptVertex(Vertex vert)
Passes the vertex if its StringLabeller value compares over (or under) the threshold. |
String |
getName()
Returns a name for this: AlphabeticFilter(>"TestString") |
StringLabeller |
getStringLabeller()
Returns the String Labeller being used by this filter to check vertices with. |
String |
getThreshhold()
|
boolean |
isAcceptThoseAboveThreshhold()
Returns the current direction of the comparison: True if this accepts only strings above the threshhold, otherwise, accepts only strings at or below the threshhold. |
void |
setAcceptThoseAboveThreshhold(boolean acceptThoseAboveThreshhold)
Sets the acceptThoseAboveThreshhold: if true, this accepts values over the threshhold; if false, this accepts values up to and including the threshhold, but not above it. |
void |
setStringLabeller(StringLabeller stringLabeller)
Sets the stringLabeller. |
void |
setThreshhold(String threshhold)
Sets the threshhold. |
| Methods inherited from class edu.uci.ics.jung.graph.filters.GeneralVertexAcceptFilter |
|---|
filter, filter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.uci.ics.jung.graph.filters.EfficientFilter |
|---|
filter |
| Methods inherited from interface edu.uci.ics.jung.graph.filters.Filter |
|---|
filter |
| Constructor Detail |
|---|
public AlphabeticVertexFilter(String threshhold,
StringLabeller sl,
boolean acceptAboveThreshold)
| Method Detail |
|---|
public boolean acceptVertex(Vertex vert)
acceptVertex in class GeneralVertexAcceptFilterpublic String getName()
getName in interface Filterpublic boolean isAcceptThoseAboveThreshhold()
public String getThreshhold()
public void setAcceptThoseAboveThreshhold(boolean acceptThoseAboveThreshhold)
acceptThoseAboveThreshhold - public void setThreshhold(String threshhold)
threshhold - The threshhold to setpublic StringLabeller getStringLabeller()
public void setStringLabeller(StringLabeller stringLabeller)
stringLabeller - The stringLabeller to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||