|
|||||||||||
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
A small example filter that accepts vertices that are alphabetically past the input value.
Constructor Summary | |
AlphabeticVertexFilter(java.lang.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. |
java.lang.String |
getName()
Returns a name for this: AlphabeticFilter(>"TestString") |
StringLabeller |
getStringLabeller()
Returns the String Labeller being used by this filter to check vertices with. |
java.lang.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(java.lang.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 |
equals, 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(java.lang.String threshhold, StringLabeller sl, boolean acceptAboveThreshold)
Method Detail |
public boolean acceptVertex(Vertex vert)
acceptVertex
in class GeneralVertexAcceptFilter
public java.lang.String getName()
getName
in interface Filter
public boolean isAcceptThoseAboveThreshhold()
public java.lang.String getThreshhold()
public void setAcceptThoseAboveThreshhold(boolean acceptThoseAboveThreshhold)
acceptThoseAboveThreshhold
- public void setThreshhold(java.lang.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 |