|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.framework.IWindowPositionProxy
public class IWindowPositionProxy
Provides access to members that query or modify a window's position, size and state.
The IWindowPosition interface has methods to move and resize a window. Any window object can implement this interface. All the ArcGIS application windows implement this interface.
Commandbars also support IWindowPostion. Use the State property to determine whether a toolbar is floating on the desktop.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IWindowPositionProxy()
|
|
IWindowPositionProxy(Object obj)
|
protected |
IWindowPositionProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getHeight()
The height of the window. |
int |
getLeft()
The distance between the internal left edge of the window and screen. |
int |
getState()
The state of the window. |
int |
getTop()
The distance between the internal top edge of the window and screen. |
int |
getWidth()
The width of the window. |
void |
move(int left,
int top,
int width,
int height)
Moves and optionally resizes the windows in a single function. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setHeight(int height)
The height of the window. |
void |
setLeft(int left)
The distance between the internal left edge of the window and screen. |
void |
setState(int windowState)
The state of the window. |
void |
setTop(int top)
The distance between the internal top edge of the window and screen. |
void |
setWidth(int width)
The width of the window. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IWindowPositionProxy()
public IWindowPositionProxy(Object obj) throws IOException
IOException
protected IWindowPositionProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void setLeft(int left) throws IOException, AutomationException
setLeft
in interface IWindowPosition
left
- The left (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLeft() throws IOException, AutomationException
The Left property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getLeft
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTop(int top) throws IOException, AutomationException
setTop
in interface IWindowPosition
top
- The top (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTop() throws IOException, AutomationException
The Top property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getTop
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWidth(int width) throws IOException, AutomationException
setWidth
in interface IWindowPosition
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getWidth
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeight(int height) throws IOException, AutomationException
setHeight
in interface IWindowPosition
height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getHeight
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void move(int left, int top, int width, int height) throws IOException, AutomationException
You can use the Move method to set the Left, Top, Width, and Height properties all at the same time.
move
in interface IWindowPosition
left
- The left (in)top
- The top (in)width
- The width (in, optional, pass 0 if not required)height
- The height (in, optional, pass 0 if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setState(int windowState) throws IOException, AutomationException
setState
in interface IWindowPosition
windowState
- A com.esri.arcgis.framework.esriWindowState constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getState() throws IOException, AutomationException
The State property uses the esriWindowState enumeration to specify whether the window is normal, minimized, or maximized.
getState
in interface IWindowPosition
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 |