com.esri.arcgis.cartoUI
Class ScaleTracker

java.lang.Object
  extended by com.esri.arcgis.cartoUI.ScaleTracker
All Implemented Interfaces:
IScaleTracker, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class ScaleTracker
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IScaleTracker

COM Class 'ScaleTracker'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriCartoUI.olb'

Description 'Tracker for scale operations.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.display.IScaleTracker
IID, IID2dc98f3b_38aa_11d3_9f3c_00c04f6bc979, xxDummy
 
Constructor Summary
ScaleTracker()
          Constructs a ScaleTracker using ArcGIS Engine.
ScaleTracker(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ScaleTracker theScaleTracker = (ScaleTracker) obj;
 
Method Summary
 void addGeometry(IGeometry geometry)
          Adds a geometry to be scaled.
 void clearGeometry()
          Clears all the geometries.
 boolean deactivate()
          Cancel tracking.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IPoint getOrigin()
          The scale origin.
 double getScaleFactor()
          The scale factor.
 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 release()
          Release a ScaleTracker.
 void setDisplayByRef(IScreenDisplay rhs1)
          The display used by the tracker.
 void setOrigin(IPoint anchor)
          The scale origin.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScaleTracker

public ScaleTracker()
             throws java.io.IOException,
                    java.net.UnknownHostException
Constructs a ScaleTracker using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

ScaleTracker

public ScaleTracker(java.lang.Object obj)
             throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ScaleTracker theScaleTracker = (ScaleTracker) obj;

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

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

getClsid

public static java.lang.String getClsid()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a ScaleTracker.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setDisplayByRef

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

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

getCursor

public int getCursor()
              throws java.io.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.

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

refresh

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

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

onMouseDown

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

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

onMouseMove

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

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

onMouseUp

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

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

onKeyDown

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

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

deactivate

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

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

setOrigin

public void setOrigin(IPoint anchor)
               throws java.io.IOException,
                      AutomationException
The scale origin.

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

getOrigin

public IPoint getOrigin()
                 throws java.io.IOException,
                        AutomationException
The scale origin.

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

addGeometry

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

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

clearGeometry

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

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

getScaleFactor

public double getScaleFactor()
                      throws java.io.IOException,
                             AutomationException
The scale factor.

Specified by:
getScaleFactor in interface IScaleTracker
Returns:
The factor
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.