|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INgView
Provides access to members that control the graphic view.
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.
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 |
|---|
Object getEffect(int effect)
throws IOException,
AutomationException
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.setEffect(int, java.lang.Object),
INgView.removeEffect(int),
INgView.isEffectSet(int)
void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getEffect(int),
INgView.removeEffect(int),
INgView.isEffectSet(int)
void removeEffect(int effect)
throws IOException,
AutomationException
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getEffect(int),
INgView.setEffect(int, java.lang.Object),
INgView.isEffectSet(int)
boolean isEffectSet(int effect)
throws IOException,
AutomationException
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.
effect - A com.esri.arcgis.schematic.esriNgViewEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getEffect(int),
INgView.setEffect(int, java.lang.Object),
INgView.removeEffect(int)
void fitSelection()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.fitAll(),
INgView.fitElements(com.esri.arcgis.schematic.INgElements)
void fitElements(INgElements elements)
throws IOException,
AutomationException
elements - A reference to a com.esri.arcgis.schematic.INgElements (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.fitAll(),
INgView.fitSelection()
void zoomIn(INgPoint upperLeftCorner,
INgPoint lowerRightCorner,
int zoomMode)
throws IOException,
AutomationException
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)
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.setInteractorMode(int, com.esri.arcgis.schematic.INgElementType, int)
INgLegend getLegend()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgDiagram getDiagram()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getName()
throws IOException,
AutomationException
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.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getTitle()
INgElements getSelectedElements()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.fitSelection(),
INgProject.getSelectedElements()
INgRasterImage createRasterImage(String imageName,
String fName,
INgPoint upperLeftCorner,
INgPoint lowerRightCorner)
throws IOException,
AutomationException
The background raster image named imageName associated with the file fileName is placed in between the two upperLeftCorner and lowerRightCorner NgPoints.
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.createVectorImage(String, String)
INgVectorImage createVectorImage(String imageName,
String fName)
throws IOException,
AutomationException
imageName - The imageName (in)fName - The fName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)
INgRasterImages getRasterImages()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getVectorImages(),
INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)
INgVectorImages getVectorImages()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getRasterImages(),
INgView.createVectorImage(String, String)
void printView(String viewTitle,
boolean hideSetupDialog)
throws IOException,
AutomationException
If the view is to be printed with a title, the matching character string must be passed as a parameter to the function.
viewTitle - The viewTitle (in, optional, pass if not required)hideSetupDialog - The hideSetupDialog (in, optional, pass false if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectEvents.isPrintMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsPrintMadeByFrameworkEvent),
INgView.printWithTitleBlock(int, com.esri.arcgis.schematic.INgDrawing, String, boolean)
void printWithTitleBlock(int position,
INgDrawing titleBlock,
String viewTitle,
boolean hideSetupDialog)
throws IOException,
AutomationException
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.
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!
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.printView(String, boolean),
INgProjectEvents.isPrintMadeByFramework(com.esri.arcgis.schematic.INgProjectEventsIsPrintMadeByFrameworkEvent)
void getDisplayArea(INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
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)
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.getPrintableArea(double[], double[])
void getElementsBoundingBox(INgElements elements,
INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgElements getElementsInZone(INgPoints pts)
throws IOException,
AutomationException
The list of points passed as a parameter must be composed of at least three points.
pts - A reference to a com.esri.arcgis.schematic.INgPoints (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getElementAtPoint(com.esri.arcgis.schematic.INgPoint)
void close()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagram.close(),
INgProjectEvents.beforeCloseView(com.esri.arcgis.schematic.INgProjectEventsBeforeCloseViewEvent)
void setActive()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.bringToTop(boolean)
void bringToTop(boolean topMost)
throws IOException,
AutomationException
You can also decide to have the view always displayed in the foreground by setting the optional parameter topMost to True.
topMost - The topMost (in, optional, pass false if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.setActive()
boolean isMinimized()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.maximize(),
INgView.isMaximized(),
INgView.minimize()
boolean isMaximized()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.maximize(),
INgView,
INgView.minimize()
void minimize()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.maximize(),
INgView.isMaximized(),
INgView.isMinimized()
void maximize()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.isMaximized(),
INgView.minimize(),
INgView.isMinimized()
void getPosition(INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.move(com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint),
INgView.restore()
void move(INgPoint upperLeftCorner,
INgPoint lowerRightCorner)
throws IOException,
AutomationException
upperLeftCorner - 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.INgView.getPosition(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[])
void fitAll()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.fitSelection(),
INgView.fitElements(com.esri.arcgis.schematic.INgElements)
void restore()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getPosition(com.esri.arcgis.schematic.INgPoint[], com.esri.arcgis.schematic.INgPoint[])
INgElement getElementAtPoint(INgPoint point)
throws IOException,
AutomationException
If there are more than one element located at the position 'point', GetElementAtPoint returns the element that is topmost.
point - A reference to a com.esri.arcgis.schematic.INgPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getElementsInZone(com.esri.arcgis.schematic.INgPoints),
INgView.getInformationAtPoint(com.esri.arcgis.schematic.INgPoint)
void redraw(int mode)
throws IOException,
AutomationException
This parameter is optional. The default mode is esriNgRedrawAll. Schematics redraws all the elements in the view.
mode - A com.esri.arcgis.schematic.esriNgRedrawMode constant (in, optional, pass 1 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagram.redraw(int),
INgDiagram.refresh()
void exportAs(int fileType,
String fileName)
throws IOException,
AutomationException
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
fileType - A com.esri.arcgis.schematic.esriNgExportFileType constant (in)fileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void unselectAll(boolean redraw)
throws IOException,
AutomationException
redraw - The redraw (in, optional, pass false if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.unselectAll()
INgFlags getSelectedFlags()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getSelectedFlags()
String getTitle()
throws IOException,
AutomationException
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.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getName()
void setTitle(String pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getHandle()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgInformation getInformationAtPoint(INgPoint point)
throws IOException,
AutomationException
point - A reference to a com.esri.arcgis.schematic.INgPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.getElementAtPoint(com.esri.arcgis.schematic.INgPoint)
void getExtent(INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void selectAll(boolean redraw)
throws IOException,
AutomationException
redraw - The redraw (in, optional, pass false if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgLegendDescription getLegendDescription()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||