|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgProject
public class NgProject
Project object.
| Constructor Summary | |
|---|---|
NgProject()
Constructs a NgProject using ArcGIS Engine. |
|
NgProject(Object obj)
Construct a NgProject using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
addAlgorithm(String cLSID,
ISchematicAlgorithm algorithm)
Adds the specified schematic algorithm to the project. |
void |
addDataSource(INgDataSource dataSource)
Adds the specified data source into the project. |
void |
addINgProjectEventsListener(INgProjectEvents theListener)
addINgProjectEventsListener. |
void |
addISchematicAlgorithmEventsListener(ISchematicAlgorithmEvents theListener)
addISchematicAlgorithmEventsListener. |
void |
addTrace(String cLSID,
ISchematicAlgorithm algorithm)
Adds the specified schematic network trace analyst to the project. |
void |
addUserAttributes(Object userAttributes,
String attributesSetName)
Adds the specified attributes set into the project. |
void |
addUserProcedures(Object userProcedures,
String proceduresSetName)
Adds the specified procedures set into the project. |
void |
afterExecuteAlgorithm(ISchematicAlgorithmEventsAfterExecuteAlgorithmEvent theEvent)
Fires after any schematic algorithm execution on any view. |
boolean |
beforeExecuteAlgorithm(ISchematicAlgorithmEventsBeforeExecuteAlgorithmEvent theEvent)
Fires before any schematic algorithm execution on any view. |
void |
beginWaitCursor()
Enables the wait cursor. |
void |
close()
Closes the currently opened schematic session. |
INgBehavior |
createBehavior(String evtName,
int metaType,
String objectType)
Creates the behavior to respond to the event 'evtName' on the metatype 'metaType' for the object type named 'objectType'. |
INgDiagramType |
createDiagramType(String diagTypeName,
INgDiagramType parent)
Creates a new diagram type named 'diagTypeName'. |
INgElementType |
createElementType(String eltTypeName,
int type,
INgElementType parent,
boolean createGroup)
Creates a new element type named 'eltTypeName' whose type is 'Type'. |
INgFlagModel |
createFlagModel(String flagModelName)
Creates a new flag mode named 'flagModelName' for the project. |
INgPatternModel |
createPatternModel(String patternModelName,
int type,
String text)
Creates a new pattern model named 'patternModelName' for the project. |
void |
dblClick(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
Occurs when a mouse button is double clicked when the project tool is active. |
void |
deleteAttributeSets()
Deletes all the attribute sets associated with the project. |
void |
deleteDataSources()
Deletes all the data sources associated with the project. |
void |
deleteProcedureSets()
Deletes all the procedure sets associated with the project. |
void |
endWaitCursor()
Disables the wait cursor. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
INgView |
getActiveView()
Current active view in the project. |
ISchematicAlgorithm |
getAlgorithm(String cLSID)
Returns the specified schematic algorithm defined for the project. |
ISchematicAlgorithms |
getAlgorithms()
List of the schematic algorithms defined for the project. |
ISchematicAlgorithmSheet |
getAlgorithmSheet()
Properties page of the schematic algorithm. |
ISchematicAlgorithmSheet |
getAnalystSheet()
Properties page of the schematic network trace analyst. |
INgBehaviors |
getBehaviors()
List of the behaviors defined for the project. |
INgBehaviors |
getBehaviors2(int metaType,
String objTypeName)
Returns the list of the behaviors defined for the metatype 'metaType'. |
static String |
getClsid()
getClsid. |
void |
getColorIndex(short red,
short green,
short blue,
int[] colorIndex)
Returns the color index corresponding to the specified RGB values in the project. |
INgDataSource |
getDataSource(String dataSourceName)
Returns the datasource named 'dataSourceName'. |
INgDataSources |
getDataSources()
List of the datasources defined for the project. |
INgDiagramType |
getDiagramType(String dgTypeName)
Returns the diagram type named 'dgTypeName' implemented by the project. |
INgDiagramTypes |
getDiagramTypes()
List of the diagram types associated with the project. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the project (see esriNgProjectEffect). |
INgElementType |
getElementType(String eltTypeName)
Returns the element type named 'eltTypeName' implemented by the project. |
INgElementTypes |
getElementTypes()
List of the element types associated with the project. |
INgFlagModel |
getFlagModel(String flagModelName)
Returns the flag model named 'flagModelName' implemented by the project. |
INgFlagModels |
getFlagModels()
List of the flag models implemented by the project. |
void |
getFontIndex(String fontName,
int[] fontIndex)
Returns the font index corresponding to font named 'fontName' in the project. |
String |
getHelpFile()
Name of the online help file. |
Object |
getHighlightingEffect(int effect)
Returns the effect 'effect' used for highlighting the elements when they are selected (see esriNgHighlightingEffectType). |
int |
getInteractorMode()
Returns the currently active interaction (see esriNgInteractorMode). |
INgDiagrams |
getOpenedDiagrams()
List of the diagrams currently opened in the project. |
INgViews |
getOpenedViews()
List of the views that are currently open in the project. |
INgPatternModel |
getPatternModel(String patternModelName)
Returns the pattern model named 'patternModelName' implemented by the project. |
INgPatternModels |
getPatternModels()
List of the pattern models implemented by the project. |
void |
getPrintableArea(double[] width,
double[] height)
Returns the current printing area defined in the printer configuration dialog box. |
String |
getProjectFileName()
Full pathname of the '.ini' file used to initialize the project. |
int |
getSaveMode()
Saving mode for the schematic session. |
void |
getScreenSize(int[] width,
int[] height)
Returns the screen 'width' and 'height' in pixels units. |
INgElements |
getSelectedElements()
List of the elements currently selected in the project. |
INgFlags |
getSelectedFlags()
List of the flags currently selected in the project. |
INgSymbol |
getSymbol(String symbolName)
Returns the symbol named 'symbolName'. |
void |
getTileArea(INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
Returns the 'upperLeftCorner' and 'lowerRightCorner' points enclosing the area used to position the schematic windows. |
ISchematicAlgorithm |
getTrace(String cLSID)
Returns the specified schematic network trace analyst defined for the project. |
ISchematicAlgorithms |
getTraces()
List of the schematic network trace analysts defined for the project. |
INgUserAttributeSets |
getUserAttributeSets()
List of the user attibute sets defined for the project. |
INgUserProcedureSets |
getUserProcedureSets()
List of the user procedure sets defined for the project. |
int |
hashCode()
the hashcode for this object |
void |
initialize(String fName)
Initializes the project based on the parameters contained in the file 'fName'. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the project is set (see esriNgProjectEffect). |
boolean |
isHighlightingEffectSet(int effect)
Indicates if the effect 'effect' used for highlighting the elements when they are selected is set. |
boolean |
isProjectOpen()
Indicates if the schematic session is open. |
boolean |
isSpatialEnvironment()
Indicates if the event occured in ArcMap. |
void |
keyDown(INgView view,
int keyCode,
int shift)
Occurs when a key on the keyboard is pressed when the project tool is active. |
void |
keyUp(INgView view,
int keyCode,
int shift)
Occurs when a key on the keyboard is released when the project tool is active. |
void |
mouseDown(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
Occurs when a mouse button is pressed when the project tool is active. |
void |
mouseMove(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
Occurs when the mouse is moved when the project tool is active. |
void |
mouseUp(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
Occurs when a mouse button is released when the project tool is active. |
void |
open(boolean restoreSession,
boolean selectIfNotSet)
Opens the schematic session associated with the project. |
INgDiagram |
openDiagram(INgDiagramType diagType,
String diagramName,
boolean restore)
Opens the diagram named 'diagramName' implemented by the specified diagram type. |
void |
openDiagramForm()
Opens the predefined Schematics dialog-box that allows to select a type of diagram and a diagram. |
void |
printSetup()
Opens the default printer configuration dialog box. |
void |
refreshToolbars()
Triggers the 'OnRefreshToolbar' predefined callback. |
void |
reloadSymbol(String symbolName)
Reloads the symbol named 'symbolName' in the project. |
void |
removeAlgorithm(String cLSID)
Removes the specified schematic algorithm from the project. |
void |
removeAlgorithms()
Remove all the schematic algorithms from the project. |
void |
removeHighlightingEffect(int effect)
Removes the effect 'effect' used for highlighting the elements when they are selected (see esriNgHighlightingEffectType). |
void |
removeINgProjectEventsListener(INgProjectEvents theListener)
removeINgProjectEventsListener. |
void |
removeISchematicAlgorithmEventsListener(ISchematicAlgorithmEvents theListener)
removeISchematicAlgorithmEventsListener. |
void |
removeTrace(String cLSID)
Removes the specified schematic network trace analyst to the project. |
void |
removeTraces()
Remove all the schematic network trace analysts from the project. |
void |
replaceDataSource(INgDataSource oldDataSource,
INgDataSource newDataSource)
Changes the specified old datasource by the specified new datasource in the project. |
void |
restoreSession(String sessionName)
Restores the session named 'sessionName'; that is, restores the views to their last saved position and display state. |
void |
save(String projectFilePath,
String projectFileName)
Saves all the parameters that define the project. |
void |
saveSession(String sessionName)
Saves the schematic session associated with the project. |
void |
sendEvent(String evtName,
int metaType,
String objectType,
String objectName)
Sends the event 'eventName' to the object named 'objectName' that is implemented by the object type named 'objectType' of the 'metatype' metatype. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the project (see esriNgProjectEffect). |
void |
setHelpFile(String pVal)
Name of the online help file. |
void |
setHighlightingEffect(int effect,
Object effValue)
Modifies the effect 'effect' used for highlighting the elements when they are selected (see esriNgHighlightingEffectType). |
void |
setInteractorMode(int mode,
INgElementType typeToDigit,
int digitType)
Enables the interaction mode 'mode' (see esriNgInteractorMode). |
void |
setProjectFileName(String pVal)
Full pathname of the '.ini' file used to initialize the project. |
void |
setSaveMode(int pVal)
Saving mode for the schematic session. |
void |
setSpatialEnvironment(boolean pVal)
Indicates if the event occured in ArcMap. |
void |
setStatus(String status)
Triggers the OnStatusChange' predefined callback. |
void |
setTileArea(INgPoint upperLeftCorner,
INgPoint lowerRightCorner)
Defines the area enclosed between the 'upperLeftCorner' and 'lowerRightCorner' points that will be used to position the schematic windows. |
void |
setTraceLevel(int level)
Enable the program tracing in 'level' mode. |
void |
terminate()
Puts an end to the schematic session and removes all the schematic components created in memory. |
void |
tileViews(int mode)
Arranges the views according to the 'mode' tile views option (see esriNgTileViewMode). |
void |
unselectAll()
Deselects all elements that are currently selected in all the opened views. |
void |
unsetTileArea()
Restores the default area used to position the view windows. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public NgProject()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NgProject(Object obj)
throws IOException
obj to NgProject.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgProject theNgProject = (NgProject) obj;| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void addINgProjectEventsListener(INgProjectEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.schematic.INgProjectEvents interface.
IOException - If there are communications problems.
public void removeINgProjectEventsListener(INgProjectEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.schematic.INgProjectEvents interface.
IOException - If there are communications problems.
public void addISchematicAlgorithmEventsListener(ISchematicAlgorithmEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.schematic.ISchematicAlgorithmEvents interface.
IOException - If there are communications problems.
public void removeISchematicAlgorithmEventsListener(ISchematicAlgorithmEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.schematic.ISchematicAlgorithmEvents interface.
IOException - If there are communications problems.
public INgView getActiveView()
throws IOException,
AutomationException
getActiveView in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagrams getOpenedDiagrams()
throws IOException,
AutomationException
getOpenedDiagrams in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectViews.getOpenedViews()
public INgElements getSelectedElements()
throws IOException,
AutomationException
getSelectedElements in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getSelectedElements()
public INgDiagramTypes getDiagramTypes()
throws IOException,
AutomationException
getDiagramTypes in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getDiagramType(String)
public INgElementTypes getElementTypes()
throws IOException,
AutomationException
getElementTypes in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getElementType(String)
public void initialize(String fName)
throws IOException,
AutomationException
initialize in interface INgProjectfName - The fName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.terminate()
public void terminate()
throws IOException,
AutomationException
terminate in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.initialize(String)
public void addDataSource(INgDataSource dataSource)
throws IOException,
AutomationException
addDataSource in interface INgProjectdataSource - A reference to a com.esri.arcgis.schematic.INgDataSource (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getDataSource(String),
INgProject.getDataSources()
public void addUserProcedures(Object userProcedures,
String proceduresSetName)
throws IOException,
AutomationException
The name of that set of procedures is proceduresSetName; it is that name that Schematics uses to reference this set of associated procedures.
addUserProcedures in interface INgProjectuserProcedures - A reference to another Automation Object (IDispatch) (in)proceduresSetName - The proceduresSetName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getUserProcedureSets()
public void addUserAttributes(Object userAttributes,
String attributesSetName)
throws IOException,
AutomationException
The name of that set of attributes is attributesSetName; it is that name that Schematics uses to reference this set of associated attributes.
addUserAttributes in interface INgProjectuserAttributes - A reference to another Automation Object (IDispatch) (in)attributesSetName - The attributesSetName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getUserAttributeSets()
public void open(boolean restoreSession,
boolean selectIfNotSet)
throws IOException,
AutomationException
If the project is not already initialized (Initialize method), either the selectIfNotSet parameter value is TRUE and Schematics opens the Open MS Window dialog box so that the user can indicate the full pathname of the desired Schematics .ini file that contains the project definition, or the selectIfNotSet parameter value is FALSE and Schematics creates a new empty .ini file in the application's currently active directory.
If the restoreSession parameter is set to TRUE, this method restores all the views to their last saved position and display state (scale, text and symbol sizes...).
Note: If you did not save the diagrams that were open when the session was last saved, the layout of the elements in these diagrams is not restored when the session is opened: the elements associated with the diagrams are positioned based on their database coordinates or on their last saved positions. Indeed, when you save your schematic session, you save the current position and display state of the schematic windows, but their contents (that make up the diagrams) is not saved.
About events managed during the project opening...
When the INgProject’s Open method is triggered, several Schematics event procedures are successively fired:
(3) (OnInitApplication)
(4) AfterOpenProject
(5) OnRefreshToolbar
The following lines detail the Schematics running way during the project opening:
(1) The BeforeInitProject event is fired.
(2) If no .ini file has been set (that is, the ProjectFileName INgProject property is not set) or if the .ini file doesn't exist and if the selectIfNotSet parameter of the Open method is True (default value), the Open MS window form automatically opens allowing you to select the desired .ini file.
When the .ini file is known, the BeforeOpenProject event is fired
(3) Then, the schematic project opens: That is, the project parameters file is loaded. If an error happens during the project parameters file reading, Schematics sets the session status to Closed and the session opening is interrupted.
If no error happens, and if an OnInitApplication event has been declared in the project parameters file, the associated treatments are executed. At the end of this step, Schematics sets the session status to Open.
(4) Then, the AfterOpenProject event is fired
(5) If the restoreSession parameter of the INgProject’s Open method is True (default value), the session is restored according to its last saving: all the views are opened to their last saved position and display state (scale, text and symbol sizes...).
The OnRefreshToolbar event is fired.
open in interface INgProjectrestoreSession - The restoreSession (in, optional, pass true if not required)selectIfNotSet - The selectIfNotSet (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectViews.restoreSession(String),
INgProject.isProjectOpen()
public void close()
throws IOException,
AutomationException
If you have changed a diagram since the beginning of the session and have not saved it yet, depending on the SaveMode property value of this diagram, you may be asked if you want to save the changes. If you have not saved the current schematic session, depending on the SaveMode property value set for your project, you may be asked to do so before closing.
Note also that the Schematics BeforeCloseProject and AfterCloseProject events automatically fire when you use this method.
About events managed during the project closure
When the INgProject’s Close method is triggered is triggered, several Schematics event procedures are successively fired:
(4) BeforeCloseDiagram , BeforeCloseView, IsViewDestroyedByFramework
The following lines detail the Schematics running way during the project closure:
(1) If the session is already closed, the running is interrupted. The BeforeCloseProject event is fired.
(2) If diagrams are opened, for each opened diagram, Schematics checks its SaveMode property:
. Either the SaveMode INgDiagram property returns esriNgNotSaveByFramework, or the IsDiagramSavedByFramework event procedure returns False, and in these both cases, Schematics doesn’t charge of the diagram saving.
. Either the SaveMode INgDiagram property returns esriNgSaveByFramework, or it returns esriNgSaveUndefined but the IsDiagramSavedByFramework event procedure returns True, and in these both cases, Schematics charges of the diagram saving: a predefined form is automatically opened and end-user is asked if he wants to save the changes for the current diagram.
(3) Next, Schematics takes interest about the session saving:
- Either the SaveMode INgProjectViews property returns esriNgNotSaveByFramework, or the IsSessionSavedByFramework event procedure returns False, and in these both cases, Schematics doesn’t charge of the session saving.
- Or the SaveMode INgProjectViews property returns esriNgSaveByFramework, or it returns esriNgSaveUndefined but the IsSessionSavedByFramework event procedure returns True, and in these both cases, Schematics charges of the session saving: a predefined form is automatically opened and end-user is asked if he wants to save the currently open session.
(4) Then, the running concerns the closing of all the open diagrams (if such open diagrams exists.).
For each open diagram,
The BeforeCloseDiagram event is fired.
Next, the diagram's elements are removed. Then, for each its related opened views, the BeforeCloseView event is fired. If the legend sub-window is displayed in the view, it is deleted.
If the IsViewDestroyedByFramework event procedure returns True, Schematics charges of the view destruction.
(5) The AfterCloseProject event is triggered.
close in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void openDiagramForm()
throws IOException,
AutomationException
The diagrams available from the dialog’s dropdown lists are those defined in the schematic project parameters file. You select them by their type and name.
- If the diagram chosen was saved during a previous session for instance, it is loaded and restored with the page layout thus and then saved.
- If elements relating to this diagram were created or removed in the database since it was last saved, these modifications are reflected in the display (those elements that were removed no longer appear in the diagram and those that were created are displayed).
Note that when this method is triggered, the IsDiagramOpenedByFramework event function is automatically called. If this event returns FALSE, the Schematics predefined ‘Select diagram to open’ dialog box is not brought up.
openDiagramForm in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.openDiagram(com.esri.arcgis.schematic.INgDiagramType, String, boolean),
INgProjectEvents.isDiagramOpenedByFramework(com.esri.arcgis.schematic.INgProjectEventsIsDiagramOpenedByFrameworkEvent)
public void unselectAll()
throws IOException,
AutomationException
unselectAll in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.unselectAll(boolean)
public INgDiagramType getDiagramType(String dgTypeName)
throws IOException,
AutomationException
getDiagramType in interface INgProjectdgTypeName - The dgTypeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getDiagramTypes(),
INgProjectBuilder.createDiagramType(String, com.esri.arcgis.schematic.INgDiagramType)
public INgElementType getElementType(String eltTypeName)
throws IOException,
AutomationException
getElementType in interface INgProjecteltTypeName - The eltTypeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getElementTypes(),
INgProjectBuilder.createElementType(String, int, com.esri.arcgis.schematic.INgElementType, boolean)
public INgFlagModel getFlagModel(String flagModelName)
throws IOException,
AutomationException
getFlagModel in interface INgProjectflagModelName - The flagModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getFlagModels(),
INgProjectBuilder.createFlagModel(String)
public int getInteractorMode()
throws IOException,
AutomationException
getInteractorMode in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.setInteractorMode(int, com.esri.arcgis.schematic.INgElementType, int)
public void setInteractorMode(int mode,
INgElementType typeToDigit,
int digitType)
throws IOException,
AutomationException
In the case of the esriNgModeDigit interactor mode, the method also allows specifying the type of elements to be digitized and the digitizing mode (see esriNgDigitType list).
setInteractorMode in interface INgProjectmode - A com.esri.arcgis.schematic.esriNgInteractorMode constant (in)typeToDigit - A reference to a com.esri.arcgis.schematic.INgElementType (in, optional, pass 0 if not required)digitType - A com.esri.arcgis.schematic.esriNgDigitType constant (in, optional, pass 0 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getInteractorMode()
public void setTraceLevel(int level)
throws IOException,
AutomationException
The trace function can be run at three levels:
- esriNgErrorLevel; that is the program is traced and returned errors only.
- esriNgWarningLevel; that is the program is traced and returned errors and warning messages.
- esriNgInformationLevel; that is the program is traced and returned errors, warning messages and information messages (for instance, messages indicating the end of a procedure).
setTraceLevel in interface INgProjectlevel - A com.esri.arcgis.schematic.esriNgTraceLevel constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectEvents.onTrace(com.esri.arcgis.schematic.INgProjectEventsOnTraceEvent)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgProjectEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.isEffectSet(int),
INgProject.setHighlightingEffect(int, java.lang.Object),
INgProject.getEffect(int)
public INgDiagram openDiagram(INgDiagramType diagType,
String diagramName,
boolean restore)
throws IOException,
AutomationException
The diagramType INgDiagramType interface must already exist.
The diagramName parameter must be consistent with the diagram name identifier definition for its associated diagram type.
If the query returning all the diagrams of this type is set to NULL (that is, if there is only one diagram of this type), any diagramName can be used: all the associated diagrams represent the same network.
If there is more than one diagram of this type, the diagramName parameter syntax must follow that of the identifier defined for this diagram type otherwise the diagram that will be opened, will be empty!
Note that if the chosen open diagram was previously saved, it is loaded and restored with the page layout thus and then saved.
Several Schematic event procedures are automatically chained during a diagram opening. For more details on these events' chaining, please see the Remarks section available from the INgDiagram Open method help-page.
openDiagram in interface INgProjectdiagType - A reference to a com.esri.arcgis.schematic.INgDiagramType (in)diagramName - The diagramName (in)restore - The restore (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.openDiagramForm(),
INgDiagramType.openDiagram(String, boolean)
public INgPatternModel getPatternModel(String patternModelName)
throws IOException,
AutomationException
getPatternModel in interface INgProjectpatternModelName - The patternModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getPatternModels(),
INgProjectBuilder.createPatternModel(String, int, String)
public Object getEffect(int effect)
throws IOException,
AutomationException
getEffect in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgProjectEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.isEffectSet(int),
INgProject.setEffect(int, java.lang.Object),
INgProject.getHighlightingEffect(int)
public boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some project effects (see the List of the project effect default values, below). For all these effects, the IsEffectSet method returns True. For the others effects (those that are not automatically set), the IsEffectSet method returns True only if the effect has been set:
- Either when defining the project's characteristics through ArcGIS Schematics Designer,
- Or by calling the SetEffect method in the program code.
List of the project effect default values
esriNgProjectFitMargin: 0.05.
esriNgProjectFitAllMargin: 0.02.
esriNgProjectFitMarginMode: esriNgRelativeMargin.
esriNgProjectFitAllMarginMode: esriNgRelativeMargin.
esriNgProjectFolderPath: Folder named "GraphicFolder" according to the ".ini" file location
esriNgProjectBackupPath: Folder named "GraphicBackup" according to the ".ini" file location
esriNgProjectSymbolPath: Folder named "Cgm" according to the ".ini" file location
esriNgProjectSymbolClipping: False
esriNgProjectSymbolScaling: 1
esriNgProjectLinkLabelDistance: 1
esriNgProjectInterlineSpacing: 0.1
esriNgProjectLineColor: 1 (red)
esriNgProjectLineStyle: esriNgSolid
esriNgProjectLineWidth: 1
esriNgprojectFillColor: 1 (red)
esriNgProjectFillStyle: esriNgSolid
esriNgProjectHatchStyle: esriNgHatchHorizontal
esriNgProjectTextAlignment: esriNgBottomLeft
esriNgProjectTextAngle: 0
esriNgProjectTextColor: 1 (red)
esriNgProjectTextSize: 1
For more details, see Project Effects Definition.
isEffectSet in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgProjectEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.setEffect(int, java.lang.Object),
INgProject.isHighlightingEffectSet(int),
INgProject.getEffect(int)
public boolean isProjectOpen()
throws IOException,
AutomationException
isProjectOpen in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.close(),
INgProject.open(boolean, boolean)
public void beginWaitCursor()
throws IOException,
AutomationException
beginWaitCursor in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.endWaitCursor()
public void endWaitCursor()
throws IOException,
AutomationException
endWaitCursor in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.beginWaitCursor()
public INgSymbol getSymbol(String symbolName)
throws IOException,
AutomationException
The specified symbolName CGM file must be located in the CGM folder. If it is not, the GetSymbol function returns Nothing.
Note: The symbolName parameter must be passed to the function without the .cgm extension.
getSymbol in interface INgProjectsymbolName - The symbolName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void sendEvent(String evtName,
int metaType,
String objectType,
String objectName)
throws IOException,
AutomationException
The event eventName must be already defined (eventName is the UserEventName defined for a behavior).
sendEvent in interface INgProjectevtName - The evtName (in)metaType - A com.esri.arcgis.schematic.esriNgMetaType constant (in)objectType - The objectType (in)objectName - The objectName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgFlagModels getFlagModels()
throws IOException,
AutomationException
getFlagModels in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getFlagModel(String)
public INgPatternModels getPatternModels()
throws IOException,
AutomationException
getPatternModels in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getPatternModel(String)
public INgFlags getSelectedFlags()
throws IOException,
AutomationException
getSelectedFlags in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getSelectedFlags()
public INgDataSources getDataSources()
throws IOException,
AutomationException
getDataSources in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getDataSource(String)
public INgUserAttributeSets getUserAttributeSets()
throws IOException,
AutomationException
getUserAttributeSets in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.addUserAttributes(java.lang.Object, String)
public INgUserProcedureSets getUserProcedureSets()
throws IOException,
AutomationException
getUserProcedureSets in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.addUserProcedures(java.lang.Object, String)
public INgDataSource getDataSource(String dataSourceName)
throws IOException,
AutomationException
getDataSource in interface INgProjectdataSourceName - The dataSourceName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.addDataSource(com.esri.arcgis.schematic.INgDataSource),
INgProject.getDataSources()
public String getProjectFileName()
throws IOException,
AutomationException
getProjectFileName in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setProjectFileName(String pVal)
throws IOException,
AutomationException
setProjectFileName in interface INgProjectpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getHighlightingEffect(int effect)
throws IOException,
AutomationException
getHighlightingEffect in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgHighlightingEffectType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.isHighlightingEffectSet(int),
INgProject.getEffect(int),
INgProject.setHighlightingEffect(int, java.lang.Object)
public void setHighlightingEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setHighlightingEffect in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgHighlightingEffectType constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.setEffect(int, java.lang.Object),
INgProject.isHighlightingEffectSet(int),
INgProject.getHighlightingEffect(int)
public void removeHighlightingEffect(int effect)
throws IOException,
AutomationException
removeHighlightingEffect in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgHighlightingEffectType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.isHighlightingEffectSet(int),
INgProject.setHighlightingEffect(int, java.lang.Object),
INgProject
public boolean isHighlightingEffectSet(int effect)
throws IOException,
AutomationException
The 'effect' effect has been set:
- Either through ArcGIS Schematics Designer when defining the Highlight tab parameters for the open project,
- Or by calling the SetHighlightingEffect method in your program code.
isHighlightingEffectSet in interface INgProjecteffect - A com.esri.arcgis.schematic.esriNgHighlightingEffectType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.isEffectSet(int),
INgProject.getHighlightingEffect(int),
INgProject.setHighlightingEffect(int, java.lang.Object)
public String getHelpFile()
throws IOException,
AutomationException
getHelpFile in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHelpFile(String pVal)
throws IOException,
AutomationException
setHelpFile in interface INgProjectpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refreshToolbars()
throws IOException,
AutomationException
refreshToolbars in interface INgProjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectEvents.onRefreshToolbar(com.esri.arcgis.schematic.INgProjectEventsOnRefreshToolbarEvent)
public void setStatus(String status)
throws IOException,
AutomationException
setStatus in interface INgProjectstatus - The status (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgBehaviors getBehaviors()
throws IOException,
AutomationException
getBehaviors in interface INgProjectBuilderIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectBuilder.getBehaviors()
public INgFlagModel createFlagModel(String flagModelName)
throws IOException,
AutomationException
createFlagModel in interface INgProjectBuilderflagModelName - The flagModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getFlagModels()
public INgPatternModel createPatternModel(String patternModelName,
int type,
String text)
throws IOException,
AutomationException
createPatternModel in interface INgProjectBuilderpatternModelName - The patternModelName (in)type - A com.esri.arcgis.schematic.esriNgPatternType constant (in)text - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getPatternModels()
public INgElementType createElementType(String eltTypeName,
int type,
INgElementType parent,
boolean createGroup)
throws IOException,
AutomationException
This element type can inherit the ‘parent’ element type (optional parameter). The createGroup parameter specifies if the associated element group must be created or not. The default value for the createGroup parameter is True; that is by default, all newly created element type is directly related to its own graphic group.
createElementType in interface INgProjectBuildereltTypeName - The eltTypeName (in)type - A com.esri.arcgis.schematic.esriNgElementTypeEnum constant (in)parent - A reference to a com.esri.arcgis.schematic.INgElementType (in, optional, pass 0 if not required)createGroup - The createGroup (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getElementTypes()
public INgDiagramType createDiagramType(String diagTypeName,
INgDiagramType parent)
throws IOException,
AutomationException
createDiagramType in interface INgProjectBuilderdiagTypeName - The diagTypeName (in)parent - A reference to a com.esri.arcgis.schematic.INgDiagramType (in, optional, pass 0 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getDiagramTypes()
public INgBehavior createBehavior(String evtName,
int metaType,
String objectType)
throws IOException,
AutomationException
createBehavior in interface INgProjectBuilderevtName - The evtName (in)metaType - A com.esri.arcgis.schematic.esriNgMetaType constant (in)objectType - The objectType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectBuilder.getBehaviors()
public void save(String projectFilePath,
String projectFileName)
throws IOException,
AutomationException
The parameters projectFilePath and projectFileName are optional. By default if they are not specified, Schematics overwrites the current session's parameters file.
Note that the specified projectFilePath must already exist because Schematics does not create nonexistent folders.
save in interface INgProjectBuilderprojectFilePath - The projectFilePath (in, optional, pass if not required)projectFileName - The projectFileName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgBehaviors getBehaviors2(int metaType,
String objTypeName)
throws IOException,
AutomationException
getBehaviors2 in interface INgProjectBuildermetaType - A com.esri.arcgis.schematic.esriNgMetaType constant (in)objTypeName - The objTypeName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteDataSources()
throws IOException,
AutomationException
deleteDataSources in interface INgProjectBuilderIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectBuilder.replaceDataSource(com.esri.arcgis.schematic.INgDataSource, com.esri.arcgis.schematic.INgDataSource),
INgProject.addDataSource(com.esri.arcgis.schematic.INgDataSource)
public void deleteAttributeSets()
throws IOException,
AutomationException
deleteAttributeSets in interface INgProjectBuilderIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.addUserAttributes(java.lang.Object, String)
public void deleteProcedureSets()
throws IOException,
AutomationException
deleteProcedureSets in interface INgProjectBuilderIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.addUserProcedures(java.lang.Object, String)
public void replaceDataSource(INgDataSource oldDataSource,
INgDataSource newDataSource)
throws IOException,
AutomationException
replaceDataSource in interface INgProjectBuilderoldDataSource - A reference to a com.esri.arcgis.schematic.INgDataSource (in)newDataSource - A reference to a com.esri.arcgis.schematic.INgDataSource (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectBuilder.deleteDataSources(),
INgProject.addDataSource(com.esri.arcgis.schematic.INgDataSource)
public void getColorIndex(short red,
short green,
short blue,
int[] colorIndex)
throws IOException,
AutomationException
getColorIndex in interface INgProjectBuilderred - The red (in)green - The green (in)blue - The blue (in)colorIndex - The colorIndex (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getFontIndex(String fontName,
int[] fontIndex)
throws IOException,
AutomationException
getFontIndex in interface INgProjectBuilderfontName - The fontName (in)fontIndex - The fontIndex (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reloadSymbol(String symbolName)
throws IOException,
AutomationException
reloadSymbol in interface INgProjectBuildersymbolName - The symbolName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISchematicAlgorithmSheet getAlgorithmSheet()
throws IOException,
AutomationException
getAlgorithmSheet in interface INgProjectAlgorithmIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAnalyst.getAnalystSheet()
public void addAlgorithm(String cLSID,
ISchematicAlgorithm algorithm)
throws IOException,
AutomationException
addAlgorithm in interface INgProjectAlgorithmcLSID - The cLSID (in)algorithm - A reference to a com.esri.arcgis.schematic.ISchematicAlgorithm (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAlgorithm(String cLSID)
throws IOException,
AutomationException
removeAlgorithm in interface INgProjectAlgorithmcLSID - The cLSID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAlgorithm.removeAlgorithms()
public ISchematicAlgorithms getAlgorithms()
throws IOException,
AutomationException
getAlgorithms in interface INgProjectAlgorithmIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAlgorithm.getAlgorithm(String)
public void removeAlgorithms()
throws IOException,
AutomationException
removeAlgorithms in interface INgProjectAlgorithmIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAlgorithm.removeAlgorithm(String)
public ISchematicAlgorithm getAlgorithm(String cLSID)
throws IOException,
AutomationException
getAlgorithm in interface INgProjectAlgorithmcLSID - The cLSID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAlgorithm.getAlgorithms()
public ISchematicAlgorithmSheet getAnalystSheet()
throws IOException,
AutomationException
getAnalystSheet in interface INgProjectAnalystIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAlgorithm.getAlgorithmSheet()
public void addTrace(String cLSID,
ISchematicAlgorithm algorithm)
throws IOException,
AutomationException
addTrace in interface INgProjectAnalystcLSID - The cLSID (in)algorithm - A reference to a com.esri.arcgis.schematic.ISchematicAlgorithm (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAnalyst.getTraces()
public void removeTrace(String cLSID)
throws IOException,
AutomationException
removeTrace in interface INgProjectAnalystcLSID - The cLSID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAnalyst.removeTraces()
public ISchematicAlgorithms getTraces()
throws IOException,
AutomationException
getTraces in interface INgProjectAnalystIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAnalyst.getTrace(String)
public void removeTraces()
throws IOException,
AutomationException
removeTraces in interface INgProjectAnalystIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAnalyst.removeTrace(String)
public ISchematicAlgorithm getTrace(String cLSID)
throws IOException,
AutomationException
getTrace in interface INgProjectAnalystcLSID - The cLSID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectAnalyst.getTraces()
public void mouseDown(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
throws IOException,
AutomationException
mouseDown in interface INgProjectToolview - A reference to a com.esri.arcgis.schematic.INgView (in)button - The button (in)shift - The shift (in)xScreen - The xScreen (in)yScreen - The yScreen (in)xWindow - The xWindow (in)yWindow - The yWindow (in)xUser - The xUser (in)yUser - The yUser (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectTool.mouseUp(com.esri.arcgis.schematic.INgView, int, int, int, int, int, int, double, double),
INgProjectTool.mouseMove(com.esri.arcgis.schematic.INgView, int, int, int, int, int, int, double, double)
public void mouseMove(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
throws IOException,
AutomationException
mouseMove in interface INgProjectToolview - A reference to a com.esri.arcgis.schematic.INgView (in)button - The button (in)shift - The shift (in)xScreen - The xScreen (in)yScreen - The yScreen (in)xWindow - The xWindow (in)yWindow - The yWindow (in)xUser - The xUser (in)yUser - The yUser (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectTool.mouseDown(com.esri.arcgis.schematic.INgView, int, int, int, int, int, int, double, double),
INgProjectTool.mouseUp(com.esri.arcgis.schematic.INgView, int, int, int, int, int, int, double, double)
public void mouseUp(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
throws IOException,
AutomationException
mouseUp in interface INgProjectToolview - A reference to a com.esri.arcgis.schematic.INgView (in)button - The button (in)shift - The shift (in)xScreen - The xScreen (in)yScreen - The yScreen (in)xWindow - The xWindow (in)yWindow - The yWindow (in)xUser - The xUser (in)yUser - The yUser (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectTool.mouseDown(com.esri.arcgis.schematic.INgView, int, int, int, int, int, int, double, double),
INgProjectTool.mouseMove(com.esri.arcgis.schematic.INgView, int, int, int, int, int, int, double, double)
public void dblClick(INgView view,
int button,
int shift,
int xScreen,
int yScreen,
int xWindow,
int yWindow,
double xUser,
double yUser)
throws IOException,
AutomationException
dblClick in interface INgProjectToolview - A reference to a com.esri.arcgis.schematic.INgView (in)button - The button (in)shift - The shift (in)xScreen - The xScreen (in)yScreen - The yScreen (in)xWindow - The xWindow (in)yWindow - The yWindow (in)xUser - The xUser (in)yUser - The yUser (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void keyDown(INgView view,
int keyCode,
int shift)
throws IOException,
AutomationException
keyDown in interface INgProjectToolview - A reference to a com.esri.arcgis.schematic.INgView (in)keyCode - The keyCode (in)shift - The shift (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectTool.keyUp(com.esri.arcgis.schematic.INgView, int, int)
public void keyUp(INgView view,
int keyCode,
int shift)
throws IOException,
AutomationException
keyUp in interface INgProjectToolview - A reference to a com.esri.arcgis.schematic.INgView (in)keyCode - The keyCode (in)shift - The shift (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectTool.keyDown(com.esri.arcgis.schematic.INgView, int, int)
public boolean isSpatialEnvironment()
throws IOException,
AutomationException
isSpatialEnvironment in interface INgProjectToolIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpatialEnvironment(boolean pVal)
throws IOException,
AutomationException
setSpatialEnvironment in interface INgProjectToolpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getPrintableArea(double[] width,
double[] height)
throws IOException,
AutomationException
getPrintableArea in interface INgProjectViewswidth - The width (out: use single element array)height - The height (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.printView(String, boolean)
public void getScreenSize(int[] width,
int[] height)
throws IOException,
AutomationException
getScreenSize in interface INgProjectViewswidth - The width (out: use single element array)height - The height (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getTileArea(INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
getTileArea in interface INgProjectViewsupperLeftCorner - A reference to a com.esri.arcgis.schematic.INgPoint (out: use single element array)lowerRightCorner - A reference to a com.esri.arcgis.schematic.INgPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectViews.setTileArea(com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint),
INgProjectViews.unsetTileArea(),
INgProjectViews.tileViews(int)
public void setTileArea(INgPoint upperLeftCorner,
INgPoint lowerRightCorner)
throws IOException,
AutomationException
setTileArea in interface INgProjectViewsupperLeftCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)lowerRightCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectViews.getTileArea(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[]),
INgProjectViews.unsetTileArea(),
INgProjectViews.tileViews(int)
public INgViews getOpenedViews()
throws IOException,
AutomationException
getOpenedViews in interface INgProjectViewsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void restoreSession(String sessionName)
throws IOException,
AutomationException
The sessionName parameter is optional. By default, if that name is not specified, the RestoreSession method restores the session associated with the .ini file specified at the time the application was opened.
Note that if you did not save the diagrams that were open when the session was last saved, the layout of the elements in these diagrams is not restored when the session is opened: the elements associated with the diagrams positioned based on their database coordinates or on their last saved positions. Indeed, when you save a schematic session, you save the current position and display state of the schematic windows (scale, text and symbol sizes…), but their contents (that make up the diagrams) are not saved.
restoreSession in interface INgProjectViewssessionName - The sessionName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveSession(String sessionName)
throws IOException,
AutomationException
This method saves all open schematic views with their characteristics (diagram name, window size and position, zoom factor, text and symbol sizes).The next time the session is opened again, all the views will be restored to the display state they were saved in.
The sessionName parameter is optional. By default, if that name is not specified, Schematics saves the current opened session under the session file which name is as your .ini file (that is, as your project's file name) with the .ses extension.
Saving session under another session name allows you to save different display states and schematic windows positions.
Note: When you save a session, the contents of the diagrams (position of the elements, page layout) is not saved. Only the positions of the schematic windows and their current display state are saved.
saveSession in interface INgProjectViewssessionName - The sessionName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void printSetup()
throws IOException,
AutomationException
printSetup in interface INgProjectViewsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSaveMode()
throws IOException,
AutomationException
By default, saving mode value is "esriNgSaveUndefined".
- With the esriNgSaveUndefined mode, when you close your session, you are asked if you want to save it.
- With the esriNgSaveByFramework mode, Schematics automatically saves your session without asking you if you want to save changes.
- With the esriNgNotSaveByFramework mode, Schematics doesn't save the changes.
getSaveMode in interface INgProjectViewsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSaveMode(int pVal)
throws IOException,
AutomationException
setSaveMode in interface INgProjectViewspVal - A com.esri.arcgis.schematic.esriNgSaveModeType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void tileViews(int mode)
throws IOException,
AutomationException
Note#1: Whatever the mode chosen, if the area used to tile the schematic view windows has not been defined before (by calling the SetTileArea method), Schematics looks for the largest free area remaining on the screen in relation to your application's main window to determine the available space for tiling the schematic views.
Note#2: The TileViews method ignores minimized view windows.
tileViews in interface INgProjectViewsmode - A com.esri.arcgis.schematic.esriNgTileViewMode constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectViews.setTileArea(com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint),
INgProjectViews.unsetTileArea()
public void unsetTileArea()
throws IOException,
AutomationException
unsetTileArea in interface INgProjectViewsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectViews.setTileArea(com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint),
INgProjectViews.getTileArea(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[]),
INgProjectViews.tileViews(int)
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean beforeExecuteAlgorithm(ISchematicAlgorithmEventsBeforeExecuteAlgorithmEvent theEvent)
throws IOException,
AutomationException
beforeExecuteAlgorithm in interface ISchematicAlgorithmEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicAlgorithmEvents.afterExecuteAlgorithm(com.esri.arcgis.schematic.ISchematicAlgorithmEventsAfterExecuteAlgorithmEvent)
public void afterExecuteAlgorithm(ISchematicAlgorithmEventsAfterExecuteAlgorithmEvent theEvent)
throws IOException,
AutomationException
afterExecuteAlgorithm in interface ISchematicAlgorithmEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicAlgorithmEvents.beforeExecuteAlgorithm(com.esri.arcgis.schematic.ISchematicAlgorithmEventsBeforeExecuteAlgorithmEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||