org.openjump.core.graph.polygongraph
Class PolygonGraph

java.lang.Object
  extended by org.openjump.core.graph.polygongraph.PolygonGraph

public class PolygonGraph
extends java.lang.Object


Field Summary
 java.util.ArrayList<PolygonGraphEdge> edges
           
 java.util.ArrayList<PolygonGraphNode> nodes
           
 
Constructor Summary
PolygonGraph(java.util.Collection<Feature> polygonFeatures)
          creates a new polygon graph objects and populates it with the feature delivered
PolygonGraph(java.util.Collection<Feature> polygonFeatures, TaskMonitor monitor)
          creates a new polygon graph objects and populates it with the feature delivered
PolygonGraph(FeatureCollection polygonFeatures)
           
 
Method Summary
 void createPolygonGraphFrom(java.util.Collection<Feature> fc, TaskMonitor monitor)
           
 FeatureCollection getCommonBoundaries(PolygonGraphNode node)
           
 FeatureCollection getEdgesBetweenInterriorPoints()
           
 FeatureCollection getNodesAsInterriorPoint()
           
 FeatureCollection getNonSharedBoundaries()
           
 FeatureCollection getSharedBoundaries()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edges

public java.util.ArrayList<PolygonGraphEdge> edges

nodes

public java.util.ArrayList<PolygonGraphNode> nodes
Constructor Detail

PolygonGraph

public PolygonGraph(java.util.Collection<Feature> polygonFeatures)
creates a new polygon graph objects and populates it with the feature delivered

Parameters:
polygonFeatures -

PolygonGraph

public PolygonGraph(java.util.Collection<Feature> polygonFeatures,
                    TaskMonitor monitor)
creates a new polygon graph objects and populates it with the feature delivered

Parameters:
polygonFeatures -
monitor - can be null, used to cancel operation

PolygonGraph

public PolygonGraph(FeatureCollection polygonFeatures)
Method Detail

createPolygonGraphFrom

public void createPolygonGraphFrom(java.util.Collection<Feature> fc,
                                   TaskMonitor monitor)
Parameters:
fc -
monitor - 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)