| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.graph.GraphComponent
A GraphElement represents a component of a graph.
| Nested Class Summary | 
| Nested classes inherited from class org.geotools.feature.Feature | 
org.geotools.feature.Feature.NULL | 
| Constructor Summary | |
GraphComponent(org.geotools.feature.Feature feature)
Creates a graph component.  | 
|
| Method Summary | |
abstract  com.vividsolutions.jts.geom.Geometry | 
buildGeometry()
Builds the geometry used to represent the component spatially.  | 
 int | 
compareTo(java.lang.Object other)
Compares this graph component to another  | 
abstract  java.util.Collection | 
getAdjacentElements()
Returns any adjacent components of similar type.  | 
 java.lang.Object | 
getAttribute(int index)
Implementation of getAttribute.  | 
 java.lang.Object | 
getAttribute(java.lang.String xPath)
Implementation of getAttribute.  | 
 java.lang.Object[] | 
getAttributes(java.lang.Object[] attributes)
Implementation of getAttributes.  | 
 com.vividsolutions.jts.geom.Envelope | 
getBounds()
Implementation of getBounds.  | 
 int | 
getCount()
Returns the count associated with this component.  | 
 com.vividsolutions.jts.geom.Geometry | 
getDefaultGeometry()
Implementation of getDefaultGeometry.  | 
 org.geotools.feature.Feature | 
getFeature()
Returns the underlying feature represented by the component.  | 
 org.geotools.feature.FeatureType | 
getFeatureType()
Implementation of getFeatureType.  | 
 java.lang.String | 
getID()
Implementation of getID.  | 
 int | 
getNumberOfAttributes()
Implementation of getNumberOfAttributes.  | 
 org.geotools.feature.FeatureCollection | 
getParent()
Implementation of getParent.  | 
 org.geotools.feature.FeatureType | 
getSchema()
Returns the FeatureSchema used to represent the graph component as a Feature.  | 
 boolean | 
isVisited()
Determines if the componenet has been marked as visited.  | 
static org.geotools.feature.FeatureType | 
schema()
Returns a FeatureSchema used to represent the graph component as a Feature.  | 
 void | 
setAttribute(int position,
             java.lang.Object val)
Implementation of setAttribute.  | 
 void | 
setAttribute(java.lang.String xPath,
             java.lang.Object attribute)
Implementation of setAttribute.  | 
 void | 
setAttributes(java.lang.Object[] attributes)
Implementation of setAttributes.  | 
 void | 
setCount(int count)
Sets the count associated with the component.  | 
 void | 
setDefaultGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Implementation of setDefaultGeometry.  | 
 void | 
setParent(org.geotools.feature.FeatureCollection collection)
Implementation of setParent.  | 
 void | 
setVisited(boolean visited)
Marks the component as being visited/unvisited.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public GraphComponent(org.geotools.feature.Feature feature)
feature - Underlying Feature represented by the component.Feature| Method Detail | 
public static org.geotools.feature.FeatureType schema()
FeatureSchema, 
Featurepublic org.geotools.feature.Feature getFeature()
public boolean isVisited()
public void setVisited(boolean visited)
visited - True = visited, false = unvisited.public int getCount()
public void setCount(int count)
count - public org.geotools.feature.FeatureType getSchema()
Feature#getSchema()public int compareTo(java.lang.Object other)
Comparable#compareTo(jObject)public abstract com.vividsolutions.jts.geom.Geometry buildGeometry()
public abstract java.util.Collection getAdjacentElements()
public org.geotools.feature.FeatureCollection getParent()
getParent in interface org.geotools.feature.FeatureFeature.getParent()public void setParent(org.geotools.feature.FeatureCollection collection)
setParent in interface org.geotools.feature.Featurecollection - Feature.setParent(org.geotools.feature.FeatureCollection)public org.geotools.feature.FeatureType getFeatureType()
getFeatureType in interface org.geotools.feature.FeatureFeature.getFeatureType()public java.lang.String getID()
getID in interface org.geotools.feature.FeatureFeature.getID()public java.lang.Object[] getAttributes(java.lang.Object[] attributes)
getAttributes in interface org.geotools.feature.Featureattributes - 
Feature.getAttributes(java.lang.Object[])public java.lang.Object getAttribute(java.lang.String xPath)
getAttribute in interface org.geotools.feature.FeaturexPath - 
Feature.getAttribute(java.lang.String)public java.lang.Object getAttribute(int index)
getAttribute in interface org.geotools.feature.Featureindex - 
Feature.getAttribute(int)
public void setAttribute(int position,
                         java.lang.Object val)
                  throws org.geotools.feature.IllegalAttributeException,
                         java.lang.ArrayIndexOutOfBoundsException
setAttribute in interface org.geotools.feature.Featureposition - val - 
org.geotools.feature.IllegalAttributeException
java.lang.ArrayIndexOutOfBoundsExceptionFeature.setAttribute(int, java.lang.Object)public int getNumberOfAttributes()
getNumberOfAttributes in interface org.geotools.feature.FeatureFeature.getNumberOfAttributes()
public void setAttributes(java.lang.Object[] attributes)
                   throws org.geotools.feature.IllegalAttributeException
setAttributes in interface org.geotools.feature.Featureattributes - 
org.geotools.feature.IllegalAttributeExceptionFeature.setAttributes(java.lang.Object[])
public void setAttribute(java.lang.String xPath,
                         java.lang.Object attribute)
                  throws org.geotools.feature.IllegalAttributeException
setAttribute in interface org.geotools.feature.FeaturexPath - attribute - 
org.geotools.feature.IllegalAttributeExceptionFeature.setAttribute(java.lang.String, java.lang.Object)public com.vividsolutions.jts.geom.Geometry getDefaultGeometry()
getDefaultGeometry in interface org.geotools.feature.FeatureFeature.getDefaultGeometry()
public void setDefaultGeometry(com.vividsolutions.jts.geom.Geometry geometry)
                        throws org.geotools.feature.IllegalAttributeException
setDefaultGeometry in interface org.geotools.feature.Featuregeometry - 
org.geotools.feature.IllegalAttributeExceptionFeature.setDefaultGeometry(com.vividsolutions.jts.geom.Geometry)public com.vividsolutions.jts.geom.Envelope getBounds()
getBounds in interface org.geotools.feature.FeatureFeature.getBounds()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||