com.esri.arcgis.schematic
Interface INgView

All Superinterfaces:
Serializable
All Known Implementing Classes:
INgViewProxy, NgView

public interface INgView
extends Serializable

Provides access to members that control the graphic view.

Description

A schematic diagram cannot exist without a view. All views of a diagram will display the same network in the same geographic or schematic position, with each view differing only in its zoom level or symbol size. An element selected in one view will be selected in all open views created from the same diagram.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
INgProjectViews, INgDiagram

Method Summary
 void bringToTop(boolean topMost)
          Brings the view to the foreground.
 void close()
          Closes the view.
 INgRasterImage createRasterImage(String imageName, String fName, INgPoint upperLeftCorner, INgPoint lowerRightCorner)
          Creates a background raster image named 'imageName' from the file 'fName' in the view and places this raster image between the 'upperLeftCorner' and 'lowerRightCorner' points.
 INgVectorImage createVectorImage(String imageName, String fName)
          Creates a background vector image named 'imageName' from the file 'fName' in the view.
 void exportAs(int fileType, String fileName)
          Exports the view's content into a BMP or an EMF format image file.
 void fitAll()
          Fits all the elements contained in the view.
 void fitElements(INgElements elements)
          Fits all the elements contained in the 'Elements' list in the view.
 void fitSelection()
          Fits the set of elements currently selected in the view.
 INgDiagram getDiagram()
          Diagram the view is related to.
 void getDisplayArea(INgPoint[] upperLeftCorner, INgPoint[] lowerRightCorner)
          Returns the two 'upperLeftCorner' and 'lowerRightCorner' points corresponding to the upper left and lower right corners of the view display area in user coordinates.
 Object getEffect(int effect)
          Returns the effect 'effect' set for the view (see esriNgViewEffect).
 INgElement getElementAtPoint(INgPoint point)
          Returns the elements located at the position 'point' in the view.
 void getElementsBoundingBox(INgElements elements, INgPoint[] upperLeftCorner, INgPoint[] lowerRightCorner)
          Returns the 'upperLeftCorner' and 'lowerRightCorner' points defining the bounding box of the elements contained in the 'Elements' list.
 INgElements getElementsInZone(INgPoints pts)
          Returns a list of all the elements contained in the area defined by the list of points 'pts' in the view.
 void getExtent(INgPoint[] upperLeftCorner, INgPoint[] lowerRightCorner)
          Returns the 'upperLeftCorner' and 'lowerRightCorner' points defining the extend of the view.
 int getHandle()
          The handle of the view window.
 INgInformation getInformationAtPoint(INgPoint point)
          Returns information about the element located at the 'point' point in the view.
 INgLegend getLegend()
          Legend related to the view.
 INgLegendDescription getLegendDescription()
          Legend description related to the view.
 String getName()
          Name of the view.
 void getPosition(INgPoint[] upperLeftCorner, INgPoint[] lowerRightCorner)
          Returns the screen coordinates (in pixels unit) of the view 'upperLeftCorner' and 'lowerRightCorner' points.
 INgRasterImages getRasterImages()
          List of the background raster images related to the view.
 INgElements getSelectedElements()
          List of the elements currently selected in the view.
 INgFlags getSelectedFlags()
          List of the flags currently selected in the view.
 String getTitle()
          View window title.
 INgVectorImages getVectorImages()
          List of the background vector images related to the view.
 boolean isEffectSet(int effect)
          Indicates if the effect 'effect' related to the view is set (see esriNgViewEffect).
 boolean isMaximized()
          Indicates if the view is maximized.
 boolean isMinimized()
          Indicates if the view is minimized.
 void maximize()
          Maximizes the view.
 void minimize()
          Minimizes the view.
 void move(INgPoint upperLeftCorner, INgPoint lowerRightCorner)
          Moves and resizes the view so that its upper left and lower left corners coincide with the 'upperLeftCorner' and 'lowerRightCorner' points.
 void paintOnDC(int hDC, double xMin, double yMin, double xMax, double yMax, int left, int right, int top, int bottom, double rotation)
          Displays the view in the 'hDC' device context.
 void printView(String viewTitle, boolean hideSetupDialog)
          Prints the view.
 void printWithTitleBlock(int position, INgDrawing titleBlock, String viewTitle, boolean hideSetupDialog)
          Prints the view with a title block.
 void redraw(int mode)
          Redraws the elements displayed in the view according to the 'mode' redrawing option.
 void removeEffect(int effect)
          Restores the default effect 'effect' set for the view.
 void restore()
          Restores the view to its position prior to being minimized or maximized.
 void selectAll(boolean redraw)
          Selects all the elements contained in the view.
 void setActive()
          Activates the view.
 void setEffect(int effect, Object effValue)
          Modifies the effect 'effect' for the view (see esriNgViewEffect).
 void setTitle(String pVal)
          View window title.
 void unselectAll(boolean redraw)
          Deselects all the elements currently selected in the view.
 void zoomIn(INgPoint upperLeftCorner, INgPoint lowerRightCorner, int zoomMode)
          Zooms in on the area enclosed between the view 'upperLeftCorner' and 'lowerRightCorner' points.
 

Method Detail

getEffect

Object getEffect(int effect)
                 throws IOException,
                        AutomationException
Returns the effect 'effect' set for the view (see esriNgViewEffect).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.setEffect(int, java.lang.Object), INgView.removeEffect(int), INgView.isEffectSet(int)

setEffect

void setEffect(int effect,
               Object effValue)
               throws IOException,
                      AutomationException
Modifies the effect 'effect' for the view (see esriNgViewEffect).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
effValue - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getEffect(int), INgView.removeEffect(int), INgView.isEffectSet(int)

removeEffect

void removeEffect(int effect)
                  throws IOException,
                         AutomationException
Restores the default effect 'effect' set for the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getEffect(int), INgView.setEffect(int, java.lang.Object), INgView.isEffectSet(int)

isEffectSet

boolean isEffectSet(int effect)
                    throws IOException,
                           AutomationException
Indicates if the effect 'effect' related to the view is set (see esriNgViewEffect).

Description

By default, Schematics automatically sets default values for some view effects (see the List of the View effect default values, below). For all these effects, the IsEffectSet method returns True. For the others effects (those that are not automatically set by default), the IsEffectSet method returns True only if the effect has been set:

- Either when defining the associated diagram type's characteristics through ArcGIS Schematics Designer,

- Or by calling the SetEffect method in the project.


List of the View effect default values

esriNgViewBackgroundColor: 7 (white).

esriNgViewLabelScaling: 1.

esriNgViewSymbolScaling: 1.


For more details, see View Effects Definitions.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
Returns:
The isSet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getEffect(int), INgView.setEffect(int, java.lang.Object), INgView.removeEffect(int)

fitSelection

void fitSelection()
                  throws IOException,
                         AutomationException
Fits the set of elements currently selected in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.fitAll(), INgView.fitElements(com.esri.arcgis.schematic.INgElements)

fitElements

void fitElements(INgElements elements)
                 throws IOException,
                        AutomationException
Fits all the elements contained in the 'Elements' list in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
elements - A reference to a com.esri.arcgis.schematic.INgElements (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.fitAll(), INgView.fitSelection()

zoomIn

void zoomIn(INgPoint upperLeftCorner,
            INgPoint lowerRightCorner,
            int zoomMode)
            throws IOException,
                   AutomationException
Zooms in on the area enclosed between the view 'upperLeftCorner' and 'lowerRightCorner' points.

Description

The zoom executed is either a constant scale zoom or a standard zoom, depending on the value assigned to the zoomMode parameter (see esriNgZoomMode list)

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
upperLeftCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
lowerRightCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
zoomMode - A com.esri.arcgis.schematic.esriNgZoomMode constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.setInteractorMode(int, com.esri.arcgis.schematic.INgElementType, int)

getLegend

INgLegend getLegend()
                    throws IOException,
                           AutomationException
Legend related to the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgLegend
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDiagram

INgDiagram getDiagram()
                      throws IOException,
                             AutomationException
Diagram the view is related to.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgDiagram
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

String getName()
               throws IOException,
                      AutomationException
Name of the view.

Description

By default, the name of a view is formatted as follows DiagramTypeName::#::DiagramName

where:

- DiagramTypeName, is the diagram type name associated with the view.

- DaigramName, is the diagram name associated with the view.


Do not mistake the default view name for the default view title whose format is as follows: DiagramTypeName::DiagramName.

Note that if view titles can be modified, this is not the case of view names.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getTitle()

getSelectedElements

INgElements getSelectedElements()
                                throws IOException,
                                       AutomationException
List of the elements currently selected in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgElements
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.fitSelection(), INgProject.getSelectedElements()

createRasterImage

INgRasterImage createRasterImage(String imageName,
                                 String fName,
                                 INgPoint upperLeftCorner,
                                 INgPoint lowerRightCorner)
                                 throws IOException,
                                        AutomationException
Creates a background raster image named 'imageName' from the file 'fName' in the view and places this raster image between the 'upperLeftCorner' and 'lowerRightCorner' points.

Description

The background raster image named imageName associated with the file fileName is placed in between the two upperLeftCorner and lowerRightCorner NgPoints.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
imageName - The imageName (in)
fName - The fName (in)
upperLeftCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
lowerRightCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
Returns:
A reference to a com.esri.arcgis.schematic.INgRasterImage
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.createVectorImage(String, String)

createVectorImage

INgVectorImage createVectorImage(String imageName,
                                 String fName)
                                 throws IOException,
                                        AutomationException
Creates a background vector image named 'imageName' from the file 'fName' in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
imageName - The imageName (in)
fName - The fName (in)
Returns:
A reference to a com.esri.arcgis.schematic.INgVectorImage
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)

getRasterImages

INgRasterImages getRasterImages()
                                throws IOException,
                                       AutomationException
List of the background raster images related to the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgRasterImages
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getVectorImages(), INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)

getVectorImages

INgVectorImages getVectorImages()
                                throws IOException,
                                       AutomationException
List of the background vector images related to the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgVectorImages
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getRasterImages(), INgView.createVectorImage(String, String)

printView

void printView(String viewTitle,
               boolean hideSetupDialog)
               throws IOException,
                      AutomationException
Prints the view.

Description

If the view is to be printed with a title, the matching character string must be passed as a parameter to the function.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
viewTitle - The viewTitle (in, optional, pass if not required)
hideSetupDialog - The hideSetupDialog (in, optional, pass false if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectEvents.isPrintMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsPrintMadeByFrameworkEvent), INgView.printWithTitleBlock(int, com.esri.arcgis.schematic.INgDrawing, String, boolean)

printWithTitleBlock

void printWithTitleBlock(int position,
                         INgDrawing titleBlock,
                         String viewTitle,
                         boolean hideSetupDialog)
                         throws IOException,
                                AutomationException
Prints the view with a title block.

Description

The titleBlock title block to be printed and its print position must be specified (see esriNgTitleBlockPosition list).

If the view is to be printed with a title, the matching character string must be passed as a parameter to the function (title).

By default, the optional hideSetupDialog is set to False: when the printing is launched, Schematics automatically brings up the printing dialog box.

Remarks

When you print a view, Schematics prints the current schematic view window contents: the elements situated out of the current display area are not printed!

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
position - A com.esri.arcgis.schematic.esriNgTitleBlockPosition constant (in)
titleBlock - A reference to a com.esri.arcgis.schematic.INgDrawing (in)
viewTitle - The viewTitle (in, optional, pass if not required)
hideSetupDialog - The hideSetupDialog (in, optional, pass false if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.printView(String, boolean), INgProjectEvents.isPrintMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsPrintMadeByFrameworkEvent)

getDisplayArea

void getDisplayArea(INgPoint[] upperLeftCorner,
                    INgPoint[] lowerRightCorner)
                    throws IOException,
                           AutomationException
Returns the two 'upperLeftCorner' and 'lowerRightCorner' points corresponding to the upper left and lower right corners of the view display area in user coordinates.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
upperLeftCorner - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProjectViews.getTileArea(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[]), INgProjectViews.getPrintableArea(double[], double[])

getElementsBoundingBox

void getElementsBoundingBox(INgElements elements,
                            INgPoint[] upperLeftCorner,
                            INgPoint[] lowerRightCorner)
                            throws IOException,
                                   AutomationException
Returns the 'upperLeftCorner' and 'lowerRightCorner' points defining the bounding box of the elements contained in the 'Elements' list.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
elements - A reference to a com.esri.arcgis.schematic.INgElements (in)
upperLeftCorner - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElementsInZone

INgElements getElementsInZone(INgPoints pts)
                              throws IOException,
                                     AutomationException
Returns a list of all the elements contained in the area defined by the list of points 'pts' in the view.

Description

The list of points passed as a parameter must be composed of at least three points.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pts - A reference to a com.esri.arcgis.schematic.INgPoints (in)
Returns:
A reference to a com.esri.arcgis.schematic.INgElements
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getElementAtPoint(com.esri.arcgis.schematic.INgPoint)

close

void close()
           throws IOException,
                  AutomationException
Closes the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgDiagram.close(), INgProjectEvents.beforeCloseView(com.esri.arcgis.schematic.INgProjectEventsBeforeCloseViewEvent)

setActive

void setActive()
               throws IOException,
                      AutomationException
Activates the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.bringToTop(boolean)

bringToTop

void bringToTop(boolean topMost)
                throws IOException,
                       AutomationException
Brings the view to the foreground.

Description

You can also decide to have the view always displayed in the foreground by setting the optional parameter topMost to True.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
topMost - The topMost (in, optional, pass false if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.setActive()

isMinimized

boolean isMinimized()
                    throws IOException,
                           AutomationException
Indicates if the view is minimized.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The res
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.maximize(), INgView.isMaximized(), INgView.minimize()

isMaximized

boolean isMaximized()
                    throws IOException,
                           AutomationException
Indicates if the view is maximized.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The res
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.maximize(), INgView, INgView.minimize()

minimize

void minimize()
              throws IOException,
                     AutomationException
Minimizes the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.maximize(), INgView.isMaximized(), INgView.isMinimized()

maximize

void maximize()
              throws IOException,
                     AutomationException
Maximizes the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.isMaximized(), INgView.minimize(), INgView.isMinimized()

getPosition

void getPosition(INgPoint[] upperLeftCorner,
                 INgPoint[] lowerRightCorner)
                 throws IOException,
                        AutomationException
Returns the screen coordinates (in pixels unit) of the view 'upperLeftCorner' and 'lowerRightCorner' points.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
upperLeftCorner - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.move(com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint), INgView.restore()

move

void move(INgPoint upperLeftCorner,
          INgPoint lowerRightCorner)
          throws IOException,
                 AutomationException
Moves and resizes the view so that its upper left and lower left corners coincide with the 'upperLeftCorner' and 'lowerRightCorner' points.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
upperLeftCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
lowerRightCorner - A reference to a com.esri.arcgis.schematic.INgPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getPosition(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[])

fitAll

void fitAll()
            throws IOException,
                   AutomationException
Fits all the elements contained in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.fitSelection(), INgView.fitElements(com.esri.arcgis.schematic.INgElements)

restore

void restore()
             throws IOException,
                    AutomationException
Restores the view to its position prior to being minimized or maximized.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getPosition(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[])

getElementAtPoint

INgElement getElementAtPoint(INgPoint point)
                             throws IOException,
                                    AutomationException
Returns the elements located at the position 'point' in the view.

Description

If there are more than one element located at the position 'point', GetElementAtPoint returns the element that is topmost.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
point - A reference to a com.esri.arcgis.schematic.INgPoint (in)
Returns:
A reference to a com.esri.arcgis.schematic.INgElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getElementsInZone(com.esri.arcgis.schematic.INgPoints), INgView.getInformationAtPoint(com.esri.arcgis.schematic.INgPoint)

redraw

void redraw(int mode)
            throws IOException,
                   AutomationException
Redraws the elements displayed in the view according to the 'mode' redrawing option.

Description

This parameter is optional. The default mode is esriNgRedrawAll. Schematics redraws all the elements in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
mode - A com.esri.arcgis.schematic.esriNgRedrawMode constant (in, optional, pass 1 if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgDiagram.redraw(int), INgDiagram.refresh()

exportAs

void exportAs(int fileType,
              String fileName)
              throws IOException,
                     AutomationException
Exports the view's content into a BMP or an EMF format image file.

Description

Note#1: fileName parameter is the full path file name the function will generate.

Note#2: As the function doesn't add file extension, type your fileName with the wished extension

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
fileType - A com.esri.arcgis.schematic.esriNgExportFileType constant (in)
fileName - The fileName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

unselectAll

void unselectAll(boolean redraw)
                 throws IOException,
                        AutomationException
Deselects all the elements currently selected in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
redraw - The redraw (in, optional, pass false if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.unselectAll()

getSelectedFlags

INgFlags getSelectedFlags()
                          throws IOException,
                                 AutomationException
List of the flags currently selected in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgFlags
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgProject.getSelectedFlags()

getTitle

String getTitle()
                throws IOException,
                       AutomationException
View window title.

Description

Note that the default view window title is as follows: DiagramTypeName::DiagramName

where:

- DiagramTypeName, is the diagram type name associated with the view.

- DaigramName, is the diagram name associated with the view.


Do not mistake the default view title for the default view name whose format is as follows: DiagramTypeName::#::DiagramName.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getName()

setTitle

void setTitle(String pVal)
              throws IOException,
                     AutomationException
View window title.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

paintOnDC

void paintOnDC(int hDC,
               double xMin,
               double yMin,
               double xMax,
               double yMax,
               int left,
               int right,
               int top,
               int bottom,
               double rotation)
               throws IOException,
                      AutomationException
Displays the view in the 'hDC' device context.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
hDC - The hDC (in)
xMin - The xMin (in, optional, pass 0 if not required)
yMin - The yMin (in, optional, pass 0 if not required)
xMax - The xMax (in, optional, pass 0 if not required)
yMax - The yMax (in, optional, pass 0 if not required)
left - The left (in, optional, pass 0 if not required)
right - The right (in, optional, pass 0 if not required)
top - The top (in, optional, pass 0 if not required)
bottom - The bottom (in, optional, pass 0 if not required)
rotation - The rotation (in, optional, pass 0 if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHandle

int getHandle()
              throws IOException,
                     AutomationException
The handle of the view window.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getInformationAtPoint

INgInformation getInformationAtPoint(INgPoint point)
                                     throws IOException,
                                            AutomationException
Returns information about the element located at the 'point' point in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
point - A reference to a com.esri.arcgis.schematic.INgPoint (in)
Returns:
A reference to a com.esri.arcgis.schematic.INgInformation
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgView.getElementAtPoint(com.esri.arcgis.schematic.INgPoint)

getExtent

void getExtent(INgPoint[] upperLeftCorner,
               INgPoint[] lowerRightCorner)
               throws IOException,
                      AutomationException
Returns the 'upperLeftCorner' and 'lowerRightCorner' points defining the extend of the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
upperLeftCorner - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

selectAll

void selectAll(boolean redraw)
               throws IOException,
                      AutomationException
Selects all the elements contained in the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
redraw - The redraw (in, optional, pass false if not required)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLegendDescription

INgLegendDescription getLegendDescription()
                                          throws IOException,
                                                 AutomationException
Legend description related to the view.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.schematic.INgLegendDescription
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.