com.esri.arcgis.cartoUI
Class RotateTracker

java.lang.Object
  extended by com.esri.arcgis.cartoUI.RotateTracker
All Implemented Interfaces:
IRotateTracker, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RotateTracker
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRotateTracker

Tracker for rotation operations.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
RotateTracker()
          Constructs a RotateTracker using ArcGIS Engine.
RotateTracker(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RotateTracker theRotateTracker = (RotateTracker) obj;
 
Method Summary
 void addGeometry(IGeometry geometry)
          Adds a geometry to be rotated.
 void addPoint(IGeometry geometry, IMarkerSymbol sym)
          Adds a point and symbol to be rotated.
 void clearGeometry()
          Clears all the geometries.
 boolean deactivate()
          Cancel tracking.
 boolean equals(Object o)
          Compare this object with another
 double getAngle()
          The angle.
static String getClsid()
          getClsid.
 int getCursor()
          If the mouse is over the tracker, return an HCURSOR to indicate legal operations based on mouse's relation to selection handles: move resize, etc.
 IPoint getOrigin()
          The rotation origin.
 int hashCode()
          the hashcode for this object
 boolean onKeyDown(int keyCode)
          Special keypress processing while tracking.
 void onMouseDown()
          Begin tracking move or resize based on the location of the mouse over the tracker handles.
 void onMouseMove(IPoint mapPoint)
          In process move or resize tracking.
 boolean onMouseUp()
          Finish move or resize tracking.
 void refresh()
          Invalidate the portion of the screen covered by the tracker.
 void setDisplayByRef(IScreenDisplay rhs1)
          The display used by the tracker.
 void setOrigin(IPoint anchor)
          The rotation origin.
 
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

RotateTracker

public RotateTracker()
              throws IOException,
                     UnknownHostException
Constructs a RotateTracker using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RotateTracker

public RotateTracker(Object obj)
              throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RotateTracker theRotateTracker = (RotateTracker) obj;

Construct a RotateTracker using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RotateTracker.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

setDisplayByRef

public void setDisplayByRef(IScreenDisplay rhs1)
                     throws IOException,
                            AutomationException
The display used by the tracker.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setDisplayByRef in interface IRotateTracker
Parameters:
rhs1 - A reference to a com.esri.arcgis.display.IScreenDisplay (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCursor

public int getCursor()
              throws IOException,
                     AutomationException
If the mouse is over the tracker, return an HCURSOR to indicate legal operations based on mouse's relation to selection handles: move resize, etc. Return 0 if mouse isn't over tracker.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getCursor in interface IRotateTracker
Returns:
The cursor (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refresh

public void refresh()
             throws IOException,
                    AutomationException
Invalidate the portion of the screen covered by the tracker.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
refresh in interface IRotateTracker
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onMouseDown

public void onMouseDown()
                 throws IOException,
                        AutomationException
Begin tracking move or resize based on the location of the mouse over the tracker handles.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
onMouseDown in interface IRotateTracker
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onMouseMove

public void onMouseMove(IPoint mapPoint)
                 throws IOException,
                        AutomationException
In process move or resize tracking.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
onMouseMove in interface IRotateTracker
Parameters:
mapPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onMouseUp

public boolean onMouseUp()
                  throws IOException,
                         AutomationException
Finish move or resize tracking.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
onMouseUp in interface IRotateTracker
Returns:
The angleChanged
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onKeyDown

public boolean onKeyDown(int keyCode)
                  throws IOException,
                         AutomationException
Special keypress processing while tracking.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
onKeyDown in interface IRotateTracker
Parameters:
keyCode - The keyCode (in)
Returns:
The angleChanged
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deactivate

public boolean deactivate()
                   throws IOException,
                          AutomationException
Cancel tracking.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
deactivate in interface IRotateTracker
Returns:
The complete
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOrigin

public void setOrigin(IPoint anchor)
               throws IOException,
                      AutomationException
The rotation origin.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setOrigin in interface IRotateTracker
Parameters:
anchor - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOrigin

public IPoint getOrigin()
                 throws IOException,
                        AutomationException
The rotation origin.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getOrigin in interface IRotateTracker
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addGeometry

public void addGeometry(IGeometry geometry)
                 throws IOException,
                        AutomationException
Adds a geometry to be rotated.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addGeometry in interface IRotateTracker
Parameters:
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addPoint

public void addPoint(IGeometry geometry,
                     IMarkerSymbol sym)
              throws IOException,
                     AutomationException
Adds a point and symbol to be rotated.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addPoint in interface IRotateTracker
Parameters:
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
sym - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearGeometry

public void clearGeometry()
                   throws IOException,
                          AutomationException
Clears all the geometries.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
clearGeometry in interface IRotateTracker
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAngle

public double getAngle()
                throws IOException,
                       AutomationException
The angle.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getAngle in interface IRotateTracker
Returns:
The angle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.