|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.systemUI.SystemMouseCursor
public class SystemMouseCursor
A helper object working with mouse cursor.
The SystemMouseCursor object is primarily used when developing with the Java and C++ API. It provides some commonly used mouse cursors and provides access to the OLE_HANDLE of a mouse cursor.
Constructor Summary | |
---|---|
SystemMouseCursor()
Constructs a SystemMouseCursor using ArcGIS Engine. |
|
SystemMouseCursor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SystemMouseCursor theSystemMouseCursor = (SystemMouseCursor) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getCursor()
Currently loaded mouse cursor. |
int |
hashCode()
the hashcode for this object |
void |
load(int mouseCursorType)
Loads system provided mouse cursor. |
void |
loadFromFile(String fileName)
Loads mouse cursor from file. |
void |
setCursor(int mouseCursor)
Currently loaded mouse cursor. |
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 SystemMouseCursor() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SystemMouseCursor(Object obj) throws IOException
SystemMouseCursor theSystemMouseCursor = (SystemMouseCursor) obj;
obj
to SystemMouseCursor
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void load(int mouseCursorType) throws IOException, AutomationException
Loads a pre-defined mouse cursor into the SystemMouseCursor. Use the Cursor property to get the handle to the newly loaded cursor.
load
in interface ISystemMouseCursor
mouseCursorType
- A com.esri.arcgis.systemUI.esriSystemMouseCursor constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadFromFile(String fileName) throws IOException, AutomationException
The LoadFromFile method creates a SystemMouseCursor based upon the data in the specified file. Files containing cursor data may be in either cursor (.cur) or animated cursor (.ani) format. If file name uses relative path, the path must be relative to current application executable. Use the Cursor property to get the handle to the newly loaded cursor.
loadFromFile
in interface ISystemMouseCursor
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCursor() throws IOException, AutomationException
The handle of the mouse cursor that is currently loaded into the SystemMouseCursor using the Load or LoadFromFile methods.
getCursor
in interface ISystemMouseCursor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCursor(int mouseCursor) throws IOException, AutomationException
setCursor
in interface ISystemMouseCursor
mouseCursor
- The mouseCursor (A COM typedef) (in)
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 |