public class TopologyLocation extends Object
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 and Description |
|---|
TopologyLocation(Location on) |
TopologyLocation(Location[] location) |
TopologyLocation(Location on,
Location left,
Location 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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allPositionsEqual(Location loc) |
void |
flip() |
Location |
get(int posIndex) |
Location[] |
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(Location locValue) |
void |
setAllLocationsIfNull(Location locValue) |
void |
setLocation(int locIndex,
Location locValue) |
void |
setLocation(Location locValue) |
void |
setLocations(Location on,
Location left,
Location right) |
String |
toString() |
public TopologyLocation(Location on)
public TopologyLocation(Location on, Location left, Location right)
Locationpublic TopologyLocation(Location[] location)
public TopologyLocation(TopologyLocation gl)
public boolean allPositionsEqual(Location loc)
public void flip()
public Location get(int posIndex)
public Location[] getLocations()
public boolean isAnyNull()
public boolean isArea()
public boolean isEqualOnSide(TopologyLocation le, int locIndex)
public boolean isLine()
public boolean isNull()
public void merge(TopologyLocation gl)
public void setAllLocations(Location locValue)
public void setAllLocationsIfNull(Location locValue)
public void setLocation(int locIndex,
Location locValue)
public void setLocation(Location locValue)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.