|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.schematic.INgProjectViewsProxy
public class INgProjectViewsProxy
Provides access to members that control the view windows positioning and the printer configuration.
INgProject,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgProjectViewsProxy()
|
|
INgProjectViewsProxy(Object obj)
|
protected |
INgProjectViewsProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
INgViews |
getOpenedViews()
List of the views that are currently open in the project. |
void |
getPrintableArea(double[] width,
double[] height)
Returns the current printing area defined in the printer configuration dialog box. |
int |
getSaveMode()
Saving mode for the schematic session. |
void |
getScreenSize(int[] width,
int[] height)
Returns the screen 'width' and 'height' in pixels units. |
void |
getTileArea(INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
Returns the 'upperLeftCorner' and 'lowerRightCorner' points enclosing the area used to position the schematic windows. |
void |
printSetup()
Opens the default printer configuration dialog box. |
void |
readExternal(ObjectInput in)
|
void |
removeListener(String iidStr,
Object theListener)
|
void |
restoreSession(String sessionName)
Restores the session named 'sessionName'; that is, restores the views to their last saved position and display state. |
void |
saveSession(String sessionName)
Saves the schematic session associated with the project. |
void |
setSaveMode(int pVal)
Saving mode for the schematic session. |
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 |
tileViews(int mode)
Arranges the views according to the 'mode' tile views option (see esriNgTileViewMode). |
void |
unsetTileArea()
Restores the default area used to position the view windows. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public INgProjectViewsProxy()
public INgProjectViewsProxy(Object obj)
throws IOException
IOException
protected INgProjectViewsProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
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 writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||