public class Node extends GraphComponent
| Modifier and Type | Field and Description |
|---|---|
protected Point |
coord |
protected EdgeEndStar |
edges |
label| Constructor and Description |
|---|
Node(Point coord,
EdgeEndStar edges) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EdgeEnd e)
Add the edge to the list of edges at this node
|
protected void |
computeIM(IntersectionMatrix im)
Basic nodes do not compute IMs
|
Point |
getCoordinate() |
EdgeEndStar |
getEdges() |
boolean |
isIncidentEdgeInResult()
Tests whether any incident edge is flagged as
being in the result.
|
boolean |
isIsolated()
An isolated component is one that does not intersect or touch any other
component.
|
void |
mergeLabel(Label label2)
To merge labels for two nodes,
the merged location for each LabelElement is computed.
|
void |
mergeLabel(Node n) |
void |
print(PrintStream out) |
void |
setLabel(int argIndex,
Location onLocation) |
void |
setLabelBoundary(int argIndex)
Updates the label of a node to BOUNDARY,
obeying the mod-2 boundaryDetermination rule.
|
String |
toString() |
getLabel, isCovered, isCoveredSet, isInResult, isVisited, setCovered, setInResult, setLabel, setVisited, updateIMprotected Point coord
protected EdgeEndStar edges
public Node(Point coord, EdgeEndStar edges)
public void add(EdgeEnd e)
protected void computeIM(IntersectionMatrix im)
computeIM in class GraphComponentpublic Point getCoordinate()
getCoordinate in class GraphComponentpublic EdgeEndStar getEdges()
public boolean isIncidentEdgeInResult()
true if any indicident edge in the in the resultpublic boolean isIsolated()
GraphComponentisIsolated in class GraphComponentpublic void mergeLabel(Label label2)
public void mergeLabel(Node n)
public void print(PrintStream out)
public void setLabel(int argIndex,
Location onLocation)
public void setLabelBoundary(int argIndex)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.