com.vividsolutions.jts.geomgraph
Class GraphComponent
java.lang.Object
com.vividsolutions.jts.geomgraph.GraphComponent
public abstract class GraphComponent
extends java.lang.Object
A GraphComponent is the parent class for the objects'
that form a graph. Each GraphComponent can carry a
Label.
label
protected Label label
GraphComponent
public GraphComponent()
GraphComponent
public GraphComponent(Label label)
computeIM
protected abstract void computeIM(IntersectionMatrix im)
compute the contribution to an IM for this component
getCoordinate
public abstract Coordinate getCoordinate()
- a coordinate in this component (or null, if there are none)
getLabel
public Label getLabel()
isCovered
public boolean isCovered()
isCoveredSet
public boolean isCoveredSet()
isInResult
public boolean isInResult()
isIsolated
public abstract boolean isIsolated()
An isolated component is one that does not intersect or touch any other
component. This is the case if the label has valid locations for
only a single Geometry.
- true if this component is isolated
isVisited
public boolean isVisited()
setCovered
public void setCovered(boolean isCovered)
setInResult
public void setInResult(boolean isInResult)
setLabel
public void setLabel(Label label)
setVisited
public void setVisited(boolean isVisited)
updateIM
public void updateIM(IntersectionMatrix im)
Update the IM with the contribution for this component.
A component only contributes if it has a labelling for both parent geometries