|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.IGraphProxy
public class IGraphProxy
Provides access to members that manage graphs.
The IGraph interface contains methods and properties which are used in conjunction with geometric networks. Many of the methods, such as Add, Init, Split and Merge are called internally from within other methods. For these methods, there may be an analogous method or series of methods available, consult the specific help file for that method.
The NetworkLoader object should be used for creating or building of geometric networks, in place of the Graph or GeometricNetwork objects.
Since IGeometricNetwork inherits from IGraph, all the methods on IGraph are available to IGeometricNetwork
IGeometricNetworkName
,
IGraph
,
IGraph.transformSet(com.esri.arcgis.system.ISet, int, com.esri.arcgis.geometry.IAffineTransformation2D)
,
IGeometricNetwork.addJunctionWithSubsumption(com.esri.arcgis.geodatabase.ISimpleJunctionFeature, int, com.esri.arcgis.geodatabase.ISimpleJunctionFeature)
,
IGraph.split(com.esri.arcgis.geodatabase.IEdgeFeature, com.esri.arcgis.geometry.IGeometry)
,
IGeometricNetwork
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IGraphProxy()
|
|
IGraphProxy(Object obj)
|
protected |
IGraphProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
add(IFeature newFeature)
Adds the preexisting Feature to the graph. |
void |
addFeatureClass(IFeatureClass featureClass,
String enabledFieldName,
int role,
String ancillaryRoleFieldName)
Add the FeatureClass to this graph. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
deleteSet(ISet featuresToDelete)
Removes the set of Feature from the graph. |
IDisplayFeedback |
getDisplayFeedback(IFeature feature,
ISet features,
IPoint point)
The DisplayFeedback. |
IFeatureDataset |
getFeatureDataset()
The FeatureDataset associated with the graph. |
void |
init(IFeatureDataset dataset,
int graphID,
String graphName,
boolean buildNormalizedTables,
boolean createGraph)
Initializes the graph. |
boolean |
isVertexBasedStretching()
The stretching model to nearest vertex (true) or junction (false) based stretching. |
IEnumFeature |
merge(IEnumFeature mergingFeatures)
Merges the Features together, returning the newly created Feature. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setVertexBasedStretching(boolean vertexBased)
The stretching model to nearest vertex (true) or junction (false) based stretching. |
ISet |
split(IEdgeFeature splittingEdge,
IGeometry point)
Split the feature. |
void |
transformSet(ISet features,
int type,
IAffineTransformation2D tranformation)
Repositions all specified NetworkFeatures and any topologically connected NetworkFeatures. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IGraphProxy()
public IGraphProxy(Object obj) throws IOException
IOException
protected IGraphProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void add(IFeature newFeature) throws IOException, AutomationException
The IGraph:Add method is meant for internal use only.
There is no need to call INetworkFeature::CreateNetworkElements or INetworkFeature::Connect as these are handled internally by IFeature::Store
add
in interface IGraph
newFeature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addFeatureClass(IFeatureClass featureClass, String enabledFieldName, int role, String ancillaryRoleFieldName) throws IOException, AutomationException
addFeatureClass
in interface IGraph
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)enabledFieldName
- The enabledFieldName (in)role
- A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)ancillaryRoleFieldName
- The ancillaryRoleFieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteSet(ISet featuresToDelete) throws IOException, AutomationException
deleteSet
in interface IGraph
featuresToDelete
- A reference to a com.esri.arcgis.system.ISet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IWorkspaceEdit
,
ISpatialCacheManager
,
IWorkspaceEditEvents
,
Editor
,
IFeatureClass.createFeature()
public IFeatureDataset getFeatureDataset() throws IOException, AutomationException
Returns a reference to the feature dataset in which the graph exists.
getFeatureDataset
in interface IGraph
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDisplayFeedback getDisplayFeedback(IFeature feature, ISet features, IPoint point) throws IOException, AutomationException
getDisplayFeedback
in interface IGraph
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)features
- A reference to a com.esri.arcgis.system.ISet (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(IFeatureDataset dataset, int graphID, String graphName, boolean buildNormalizedTables, boolean createGraph) throws IOException, AutomationException
The IGraph::Init method is called internally during the process of creating a Geometric Network and should be called independently.
init
in interface IGraph
dataset
- A reference to a com.esri.arcgis.geodatabase.IFeatureDataset (in)graphID
- The graphID (in)graphName
- The graphName (in)buildNormalizedTables
- The buildNormalizedTables (in)createGraph
- The createGraph (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumFeature merge(IEnumFeature mergingFeatures) throws IOException, AutomationException
The Merge method is not currently implemented.
merge
in interface IGraph
mergingFeatures
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet split(IEdgeFeature splittingEdge, IGeometry point) throws IOException, AutomationException
split
in interface IGraph
splittingEdge
- A reference to a com.esri.arcgis.geodatabase.IEdgeFeature (in)point
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeometricNetworkName
,
IWorkspaceEdit
,
IGraph
,
ISpatialCacheManager
,
IGraph.transformSet(com.esri.arcgis.system.ISet, int, com.esri.arcgis.geometry.IAffineTransformation2D)
,
IGeometricNetwork.addJunctionWithSubsumption(com.esri.arcgis.geodatabase.ISimpleJunctionFeature, int, com.esri.arcgis.geodatabase.ISimpleJunctionFeature)
,
IWorkspaceEditEvents
,
IGraph.split(com.esri.arcgis.geodatabase.IEdgeFeature, com.esri.arcgis.geometry.IGeometry)
,
IGeometricNetwork
,
Editor
,
IFeatureClass.createFeature()
public void transformSet(ISet features, int type, IAffineTransformation2D tranformation) throws IOException, AutomationException
TransformSet will maintain connectivity between network features, there is no need to call Connect or RebuildConnectivity after TransformSet to establish connectivity. The type of stretching that is employed during TransformSet can be changed using the VertexBasedStretching property.
transformSet
in interface IGraph
features
- A reference to a com.esri.arcgis.system.ISet (in)type
- A com.esri.arcgis.geodatabase.esriTransformType constant (in)tranformation
- A reference to a com.esri.arcgis.geometry.IAffineTransformation2D (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IWorkspaceEdit
,
ISpatialCacheManager
,
IWorkspaceEditEvents
,
Editor
,
IFeatureClass.createFeature()
public boolean isVertexBasedStretching() throws IOException, AutomationException
VertexBasedStretching controls the stretching model for the specified graph: vertex (true) or junction (false) based stretching. Vertex based stretching modifies features to the nearest vertex(es), while junction based stretching will proportionally modify the feature to the nearest junction(s).
The VertexBasedStretching property should be used to set or get the stretching model when edits are being made to the workspace using the IWorkspaceEdit interface. During an edit session in the Editor, VertexBasedStretching can be used to get the stretching model but cannot be used to set the stretching model. In this case IEditProperties::StretchGeometry overwrites VertexBasedStretching and should be used to set the desired stretching model.
isVertexBasedStretching
in interface IGraph
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkUpdate
,
IForwardStar
,
IGraph
,
INetworkClass.getNetworkAncillaryRole()
,
INetworkWorkspace
,
INetworkClass.getGeometricNetwork()
,
INetworkClass.getFieldToWeightMapping(int)
,
IUtilityNetwork
,
INetwork
public void setVertexBasedStretching(boolean vertexBased) throws IOException, AutomationException
setVertexBasedStretching
in interface IGraph
vertexBased
- The vertexBased (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkUpdate
,
IWorkspaceEdit
,
IForwardStar
,
ISpatialCacheManager
,
IGraph
,
INetworkClass.getNetworkAncillaryRole()
,
INetworkWorkspace
,
IWorkspaceEditEvents
,
INetworkClass.getGeometricNetwork()
,
Editor
,
INetworkClass.getFieldToWeightMapping(int)
,
IFeatureClass.createFeature()
,
IUtilityNetwork
,
INetwork
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |