U
- The type of vertexV
- The type of the edges
public class NFEConnectionDescriptor<U,V>
extends java.lang.Object
Constructor and Description |
---|
NFEConnectionDescriptor()
Allocates a new connection descriptor
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectableEdge(NFEConnectableEdge<V> connEdge)
Sets a collection of edges to be connected to a vertex
|
void |
addConnectableEdges(java.util.Collection<NFEConnectableEdge<V>> connEdges)
Adds a connectable edge
|
java.util.List<NFEConnectableEdge<V>> |
getConnectableEdges()
Gets a collection of edges to be connected to a vertex
|
U |
getConnectableVertex()
Gets the vertex instance to be connected
|
long |
getConnectingLineLineRuleId()
Gets the line line rule ID which allows the connections described
|
long |
getConnectingLinePointRuleId()
Gets the line point rule ID which allows the connections described
|
java.awt.geom.Point2D |
getConnectionSpatialPoint()
Gets the point in the space where the connecting vertex will be placed after the connection is performed
|
double |
getTolerance()
Gets the tolerance that was used to determine the interaction between the elements in the connection descriptor
|
boolean |
removeConnectableEdge(NFEConnectableEdge<V> connEdge)
Removes an edge from the connectable edges
|
boolean |
removeConnectableEdges(java.util.Collection<NFEConnectableEdge<V>> connEdges)
Removes a group of edges from the connectable edges
|
void |
setConnectableVertex(U vertexElement)
Sets the vertex instance to be connected
|
void |
setConnectingLineLineRuleId(long connLLRuleId)
Sets the line line rule ID which allows the connections described
|
void |
setConnectingLinePointRuleId(long connLPRuleId)
Sets the line point rule ID which allows the connections described
|
void |
setConnectionSpatilPoint(java.awt.geom.Point2D point)
Sets the point in the space where the connecting vertex will be placed after the connection is performed.
|
void |
setTolerance(double tolerance)
Sets the tolerance that was used to determine the interaction between the elements in the connection descriptor
|
public NFEConnectionDescriptor()
public java.awt.geom.Point2D getConnectionSpatialPoint()
public void setConnectionSpatilPoint(java.awt.geom.Point2D point)
point
- a java pointpublic double getTolerance()
public void setTolerance(double tolerance)
tolerance
- a tolerance value, higher or equal to zeropublic U getConnectableVertex()
public void setConnectableVertex(U vertexElement)
vertexElement
- an instance of the class specified to represent a vertex. It may be a point feature element or a nodepublic java.util.List<NFEConnectableEdge<V>> getConnectableEdges()
public void addConnectableEdge(NFEConnectableEdge<V> connEdge)
connEdge
- a collection of instances representing edges such as line feature elements o linkspublic boolean removeConnectableEdge(NFEConnectableEdge<V> connEdge)
connEdge
- a connectable edge to be removedpublic boolean removeConnectableEdges(java.util.Collection<NFEConnectableEdge<V>> connEdges)
connEdges
- a collection of connectable edges to be removedpublic void addConnectableEdges(java.util.Collection<NFEConnectableEdge<V>> connEdges)
connEdges
- an edge instancepublic void setConnectingLinePointRuleId(long connLPRuleId)
connLPRuleId
- a line point rule IDpublic long getConnectingLinePointRuleId()
public void setConnectingLineLineRuleId(long connLLRuleId)
connLLRuleId
- a line line rule IDpublic long getConnectingLineLineRuleId()