|
|||||||||
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.controls.IEngineNAWindowProxy
public class IEngineNAWindowProxy
Provides access to the network analysis window.
The IEngineNAWindow interface is the main interface on the IEngineNetworkAnalystEnvironment::NAWindow. It provides methods to access the NALayer and to edit INAContext::NAClasses within the context of an undo/redo operation.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IEngineNAWindowProxy()
|
|
IEngineNAWindowProxy(Object obj)
|
protected |
IEngineNAWindowProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
abortOperation(INAContext pNAContext)
Cancels the operation in progress. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
delayEvents(IEngineNAWindowCategory pCategory,
boolean flag)
Indicates if events should be delayed for a category. |
void |
delayWindowUpdates(boolean flag)
Indicates if window updates should be delayed. |
INALayer |
getActiveAnalysis()
The current analysis shown in the window. |
IEngineNAWindowCategory |
getActiveCategory()
The current category shown in the window. |
IEngineNAWindowCategory |
getCategoryByNAClassName(String name)
The network analysis window by category. |
int |
getHWnd()
The handle to the analysis window. |
IColor |
getItemSelectionColor()
The color used for selected items. |
ISelection |
getSelection()
The current selection in the window. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setActiveAnalysis(INALayer analysisLayer)
The current analysis shown in the window. |
void |
setActiveCategory(IEngineNAWindowCategory category)
The current category shown in the window. |
void |
setItemSelectionColor(IColor color)
The color used for selected items. |
void |
setMessage(String rhs1)
Displays a message at the bottom of the window. |
void |
startOperation(INAContext pNAContext)
Starts an analysis window operation. |
void |
stopOperation(INAContext pNAContext,
String message)
Stops an analysis window operation. |
void |
updateContent(IEngineNAWindowCategory category)
Refresh the window contents. |
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 IEngineNAWindowProxy()
public IEngineNAWindowProxy(Object obj) throws IOException
IOException
protected IEngineNAWindowProxy(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 setMessage(String rhs1) throws IOException, AutomationException
The Message property changes the text at the bottom of the IEngineNetworkAnalystEnvironment::NAWindow.
setMessage
in interface IEngineNAWindow
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INALayer getActiveAnalysis() throws IOException, AutomationException
ActiveAnalysis specifies the active NALayer for the IEngineNetworkAnalystEnvironment::NAWindow. This is the network analysis layer that is shown as the selected layer in the Network Analyst Window's dropdown.
getActiveAnalysis
in interface IEngineNAWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setActiveAnalysis(INALayer analysisLayer) throws IOException, AutomationException
setActiveAnalysis
in interface IEngineNAWindow
analysisLayer
- A reference to a com.esri.arcgis.networkanalyst.INALayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEngineNAWindowCategory getActiveCategory() throws IOException, AutomationException
The ActiveCategory specifies the current category of network locations selected in the IEngineNetworkAnalystEnvironment::NAWindow. Examples of categories include Stops, Barriers, Incidents, Facilities, Routes, etc.
getActiveCategory
in interface IEngineNAWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setActiveCategory(IEngineNAWindowCategory category) throws IOException, AutomationException
setActiveCategory
in interface IEngineNAWindow
category
- A reference to a com.esri.arcgis.controls.IEngineNAWindowCategory (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelection getSelection() throws IOException, AutomationException
Selection returns a reference to the ISelection interface that can be used to manipulate a NALocationObject object within the IEngineNetworkAnalystEnvironment::NAWindow.
On the ISelection interface, use the methods prefixed with "Can" to determine if the other methods are supported. For example, call the CanSelectAll method prior to attempting to call the SelectAll method.
On the ISelection interface, Clear does not unselect the selected NALocationObject. Rather, Clear deletes the selected NALocationObject from the NAClass.
Calling methods on the ISelection interface that modify an NALocationObject object will perform the operation within an undo/redo operation.
getSelection
in interface IEngineNAWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEngineNAWindowCategory getCategoryByNAClassName(String name) throws IOException, AutomationException
getCategoryByNAClassName
in interface IEngineNAWindow
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateContent(IEngineNAWindowCategory category) throws IOException, AutomationException
The UpdateContent method refreshes the specified category or the entire IEngineNetworkAnalystEnvironment::NAWindow.
UpdateContent should be used if the underlying INAContext::NAClasses were updated without events being fired. For example, you should call UpdateContent after using an insert cursor to populate a NALocationFeature object in the "Stops" NAClass. Calling this method will ensure that the IEngineNetworkAnalystEnvironment::NAWindow reflects the current state of the INAContext::NAClasses.
If you pass in a null pointer for the category, the entire IEngineNetworkAnalystEnvironment::NAWindow will be updated.
updateContent
in interface IEngineNAWindow
category
- A reference to a com.esri.arcgis.controls.IEngineNAWindowCategory (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delayEvents(IEngineNAWindowCategory pCategory, boolean flag) throws IOException, AutomationException
DelayEvents notifies the IEngineNetworkAnalystEnvironment::NAWindow to start/stop listening to IObjectClassEvents on a particular NAClass specified by the category or on all the INAContext::NAClasses if no category is passed in.
If the flag parameter is true, the IEngineNetworkAnalystEnvironment::NAWindow will ignore all IObjectClassEvents for the category. If the flag parameter is false, the IEngineNetworkAnalystEnvironment::NAWindow will begin listening to the events.
This method is useful if you are going to be updating alot of NALocationObject objects in a NAClass and want the application to be as responsive as possible. Pass in true to DelayEvents to perform the update on the NAClass, or pass in false to DelayEvents and then call UpdateContent.
delayEvents
in interface IEngineNAWindow
pCategory
- A reference to a com.esri.arcgis.controls.IEngineNAWindowCategory (in)flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delayWindowUpdates(boolean flag) throws IOException, AutomationException
DelayWindowUpdates notifies the IEngineNetworkAnalystEnvironment::NAWindow whether or not to respond to items getting added or deleted to its treeview.
In it's default state, every time an item is added, deleted, or moved in the IEngineNetworkAnalystEnvironment::NAWindow the treeview is recalcuated. If it is known upfront that a lot of changes are going to be made, the process should be to pass true into DelayWindowUpdates, make the changes, and then pass in false to DelayWindowUpdates.
delayWindowUpdates
in interface IEngineNAWindow
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHWnd() throws IOException, AutomationException
The window handle of the IEngineNetworkAnalystEnvironment::NAWindow.
getHWnd
in interface IEngineNAWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IColor getItemSelectionColor() throws IOException, AutomationException
The ItemSelectionColor is the color used to highlight the NALocationObject objects in the IEngineNetworkAnalystEnvironment::NAWindow.
getItemSelectionColor
in interface IEngineNAWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setItemSelectionColor(IColor color) throws IOException, AutomationException
setItemSelectionColor
in interface IEngineNAWindow
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startOperation(INAContext pNAContext) throws IOException, AutomationException
Use StartOperation to start an edit operation on items in a NAClass. It should be followed with a call to StopOperation.
startOperation
in interface IEngineNAWindow
pNAContext
- A reference to a com.esri.arcgis.networkanalyst.INAContext (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopOperation(INAContext pNAContext, String message) throws IOException, AutomationException
Use StartOperation to start an edit operation on items in a NAClass. It should be followed with a call to StopOperation.
stopOperation
in interface IEngineNAWindow
pNAContext
- A reference to a com.esri.arcgis.networkanalyst.INAContext (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void abortOperation(INAContext pNAContext) throws IOException, AutomationException
AbortOperation is used to stop and undo an edit operation already in progress without creating an operation on the stack.
You must call this after a call to StartOperation. You should not call StopOperation after a call to AbortOperation.
abortOperation
in interface IEngineNAWindow
pNAContext
- A reference to a com.esri.arcgis.networkanalyst.INAContext (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |