|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.planargraph.GraphComponent
The base class for all graph component classes. Maintains flags of use in generic graph algorithms. Provides two flags:
Field Summary | |
protected boolean |
isMarked
|
protected boolean |
isVisited
|
Constructor Summary | |
GraphComponent()
|
Method Summary | |
boolean |
isMarked()
Tests if a component has been marked at some point during the processing involving this graph. |
boolean |
isVisited()
Tests if a component has been visited during the course of a graph algorithm |
void |
setMarked(boolean isMarked)
Sets the marked flag for this component. |
void |
setVisited(boolean isVisited)
Sets the visited flag for this component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean isMarked
protected boolean isVisited
Constructor Detail |
public GraphComponent()
Method Detail |
public boolean isVisited()
true
if the component has been visitedpublic void setVisited(boolean isVisited)
isVisited
- the desired value of the visited flagpublic boolean isMarked()
true
if the component has been markedpublic void setMarked(boolean isMarked)
isMarked
- the desired value of the marked flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |