Class PolygonGraph
- java.lang.Object
-
- org.openjump.core.graph.polygongraph.PolygonGraph
-
public class PolygonGraph extends Object
-
-
Field Summary
Fields Modifier and Type Field Description ArrayList<PolygonGraphEdge>edgesArrayList<PolygonGraphNode>nodes
-
Constructor Summary
Constructors Constructor Description PolygonGraph(FeatureCollection polygonFeatures)PolygonGraph(Collection<Feature> polygonFeatures)creates a new polygon graph objects and populates it with the feature deliveredPolygonGraph(Collection<Feature> polygonFeatures, TaskMonitor monitor)creates a new polygon graph objects and populates it with the feature delivered
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreatePolygonGraphFrom(Collection<Feature> fc, TaskMonitor monitor)FeatureCollectiongetCommonBoundaries(PolygonGraphNode node)FeatureCollectiongetEdgesBetweenInterriorPoints()FeatureCollectiongetNodesAsInterriorPoint()FeatureCollectiongetNonSharedBoundaries()FeatureCollectiongetSharedBoundaries()
-
-
-
Field Detail
-
edges
public ArrayList<PolygonGraphEdge> edges
-
nodes
public ArrayList<PolygonGraphNode> nodes
-
-
Constructor Detail
-
PolygonGraph
public PolygonGraph(Collection<Feature> polygonFeatures)
creates a new polygon graph objects and populates it with the feature delivered- Parameters:
polygonFeatures- a collection of polygonal features
-
PolygonGraph
public PolygonGraph(Collection<Feature> polygonFeatures, TaskMonitor monitor)
creates a new polygon graph objects and populates it with the feature delivered- Parameters:
polygonFeatures- a collection of polygonal featuresmonitor- can be null, used to cancel operation
-
PolygonGraph
public PolygonGraph(FeatureCollection polygonFeatures)
-
-
Method Detail
-
createPolygonGraphFrom
public void createPolygonGraphFrom(Collection<Feature> fc, TaskMonitor monitor)
- Parameters:
fc- a collection of polygonal featuresmonitor- can be null, used to cancel operation
-
getEdgesBetweenInterriorPoints
public FeatureCollection getEdgesBetweenInterriorPoints()
-
getNodesAsInterriorPoint
public FeatureCollection getNodesAsInterriorPoint()
-
getSharedBoundaries
public FeatureCollection getSharedBoundaries()
-
getNonSharedBoundaries
public FeatureCollection getNonSharedBoundaries()
-
getCommonBoundaries
public FeatureCollection getCommonBoundaries(PolygonGraphNode node)
-
-