|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.geomgraph.TopologyLocation
public class TopologyLocation
A TopologyLocation is the labelling of a GraphComponent's topological relationship to a single Geometry.
If the parent component is an area edge, each side and the edge itself have a topological location. These locations are named
The possible values of a topological location are {Location.NONE, Location.EXTERIOR, Location.BOUNDARY, Location.INTERIOR}
The labelling is stored in an array location[j] where where j has the values ON, LEFT, RIGHT
Constructor Summary | |
---|---|
TopologyLocation(int on)
|
|
TopologyLocation(int[] location)
|
|
TopologyLocation(int on,
int left,
int right)
Constructs a TopologyLocation specifying how points on, to the left of, and to the right of some GraphComponent relate to some Geometry. |
|
TopologyLocation(TopologyLocation gl)
|
Method Summary | |
---|---|
boolean |
allPositionsEqual(int loc)
|
void |
flip()
|
int |
get(int posIndex)
|
int[] |
getLocations()
|
boolean |
isAnyNull()
|
boolean |
isArea()
|
boolean |
isEqualOnSide(TopologyLocation le,
int locIndex)
|
boolean |
isLine()
|
boolean |
isNull()
|
void |
merge(TopologyLocation gl)
merge updates only the NULL attributes of this object with the attributes of another. |
void |
setAllLocations(int locValue)
|
void |
setAllLocationsIfNull(int locValue)
|
void |
setLocation(int locValue)
|
void |
setLocation(int locIndex,
int locValue)
|
void |
setLocations(int on,
int left,
int right)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TopologyLocation(int[] location)
public TopologyLocation(int on, int left, int right)
Location
public TopologyLocation(int on)
public TopologyLocation(TopologyLocation gl)
Method Detail |
---|
public int get(int posIndex)
public boolean isNull()
public boolean isAnyNull()
public boolean isEqualOnSide(TopologyLocation le, int locIndex)
public boolean isArea()
public boolean isLine()
public void flip()
public void setAllLocations(int locValue)
public void setAllLocationsIfNull(int locValue)
public void setLocation(int locIndex, int locValue)
public void setLocation(int locValue)
public int[] getLocations()
public void setLocations(int on, int left, int right)
public boolean allPositionsEqual(int loc)
public void merge(TopologyLocation gl)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |