com.esri.arcgis.enginecore
Class GraphicTracker

java.lang.Object
  extended by com.esri.arcgis.enginecore.GraphicTracker
All Implemented Interfaces:
IGraphicTracker, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class GraphicTracker
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGraphicTracker

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

Description 'A collection of Graphics that will be displayed on a Map or Globe' 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.enginecore.IGraphicTracker
IID, IID8aac2f0d_6020_44fb_bb2c_94a153ad7500, xxDummy
 
Constructor Summary
GraphicTracker()
          Constructs a GraphicTracker using ArcGIS Engine.
GraphicTracker(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GraphicTracker theGraphicTracker = (GraphicTracker) obj;
 
Method Summary
 int add(IGeometry pGeometry, IGraphicTrackerSymbol pGraphicTrackerSymbol)
          Adds a new graphic from the given geometry and symbol.
 void addIActiveViewEventsListener(IActiveViewEvents theListener)
          addIActiveViewEventsListener.
 IGraphicTrackerSymbol createSymbol(ISymbol pSymbol2D, ISymbol pSymbol3D)
          Creates a Graphic Tracker symbol given a 2D and a 3D symbol.
 IGraphicTrackerSymbol createSymbolFromPath(java.lang.String pathTo2D, java.lang.String pathTo3D)
          Creates a Graphic Tracker symbol given a path to a 2D symbol and a path to a 3D symbol.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getCount()
          Indicates the number of graphics in the collection.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void highlight(int id, boolean bHighlight)
          Emphasizes the graphic.
 int hitTest(int x, int y)
          Returns the ID of the first graphic touched by the input window coordinates.
 void initialize(java.lang.Object pMapOrGlobe)
          Sets the Map or Globe that will be used to render the Graphic Tracker.
 boolean isSuspendUpdate()
          Disables automatic refreshing of the display until unsuspended or until the display is explicitly refreshed.
 void moveTo(int id, double x, double y, double z)
          Moves the given graphic to the location specified by the input map coordinates.
 void release()
          Release a GraphicTracker.
 void remove(int id)
          Removes the graphic specified by the supplied ID.
 void removeAll()
          Removes all graphics from the collection.
 void removeIActiveViewEventsListener(IActiveViewEvents theListener)
          removeIActiveViewEventsListener.
 void replace(int id, IGeometry pGeometry, IGraphicTrackerSymbol pGraphicTrackerSymbol)
          Creates a new graphic which will replace the element specified by the given ID.
 void setElevationMode(int id, int eElevation)
          Sets the elevation mode for the given graphic.
 void setGeometry(int id, IGeometry pGeometry)
          Sets a new geometry for the given graphic.
 void setLabel(int id, java.lang.String newLabel)
          Sets a label for the given graphic.
 void setOrientationMode(int id, int eOrientation)
          Sets the orientation mode for the given graphic.
 void setPointOrientation(int id, double dPitch, double dRoll, double dYaw)
          Sets the orientation for the given point graphic.
 void setPointSymbolSize(int id, double size)
          Sets the symbol size for the given point graphic.
 void setScaleMode(int id, int eScale)
          Sets the scaling mode for the given graphic.
 void setSuspendUpdate(boolean suspendUpdate)
          Disables automatic refreshing of the display until unsuspended or until the display is explicitly refreshed.
 void setSymbol(int id, IGraphicTrackerSymbol pGraphicTrackerSymbol)
          Sets a new symbol for the given graphic.
 void setTextSymbol(int id, ISimpleTextSymbol pSymbol)
          Sets the text symbol for the given graphic.
 void setTransparency(int id, int lTransparency)
          Sets the transparency for the given graphic.
 void setVisible(int id, boolean bVisible)
          Sets the visibility for the given graphic.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicTracker

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

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

GraphicTracker

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

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

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

addIActiveViewEventsListener

public void addIActiveViewEventsListener(IActiveViewEvents theListener)
                                  throws java.io.IOException
addIActiveViewEventsListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.carto.IActiveViewEvents interface.
Throws:
java.io.IOException - If there are communications problems.

removeIActiveViewEventsListener

public void removeIActiveViewEventsListener(IActiveViewEvents theListener)
                                     throws java.io.IOException
removeIActiveViewEventsListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.carto.IActiveViewEvents interface.
Throws:
java.io.IOException - If there are communications problems.

release

public void release()
Release a GraphicTracker.

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

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
Indicates the number of graphics in the collection.

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

createSymbol

public IGraphicTrackerSymbol createSymbol(ISymbol pSymbol2D,
                                          ISymbol pSymbol3D)
                                   throws java.io.IOException,
                                          AutomationException
Creates a Graphic Tracker symbol given a 2D and a 3D symbol.

Specified by:
createSymbol in interface IGraphicTracker
Parameters:
pSymbol2D - A reference to a com.esri.arcgis.display.ISymbol (in)
pSymbol3D - A reference to a com.esri.arcgis.display.ISymbol (in)
Returns:
A reference to a com.esri.arcgis.enginecore.IGraphicTrackerSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createSymbolFromPath

public IGraphicTrackerSymbol createSymbolFromPath(java.lang.String pathTo2D,
                                                  java.lang.String pathTo3D)
                                           throws java.io.IOException,
                                                  AutomationException
Creates a Graphic Tracker symbol given a path to a 2D symbol and a path to a 3D symbol.

Specified by:
createSymbolFromPath in interface IGraphicTracker
Parameters:
pathTo2D - The pathTo2D (in)
pathTo3D - The pathTo3D (in)
Returns:
A reference to a com.esri.arcgis.enginecore.IGraphicTrackerSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(IGeometry pGeometry,
               IGraphicTrackerSymbol pGraphicTrackerSymbol)
        throws java.io.IOException,
               AutomationException
Adds a new graphic from the given geometry and symbol. The returned Id should be used to manage the graphic.

Specified by:
add in interface IGraphicTracker
Parameters:
pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pGraphicTrackerSymbol - A reference to a com.esri.arcgis.enginecore.IGraphicTrackerSymbol (in)
Returns:
The id
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int id)
            throws java.io.IOException,
                   AutomationException
Removes the graphic specified by the supplied ID.

Specified by:
remove in interface IGraphicTracker
Parameters:
id - The id (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

public void removeAll()
               throws java.io.IOException,
                      AutomationException
Removes all graphics from the collection.

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

replace

public void replace(int id,
                    IGeometry pGeometry,
                    IGraphicTrackerSymbol pGraphicTrackerSymbol)
             throws java.io.IOException,
                    AutomationException
Creates a new graphic which will replace the element specified by the given ID.

Specified by:
replace in interface IGraphicTracker
Parameters:
id - The id (in)
pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pGraphicTrackerSymbol - A reference to a com.esri.arcgis.enginecore.IGraphicTrackerSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initialize

public void initialize(java.lang.Object pMapOrGlobe)
                throws java.io.IOException,
                       AutomationException
Sets the Map or Globe that will be used to render the Graphic Tracker.

Specified by:
initialize in interface IGraphicTracker
Parameters:
pMapOrGlobe - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLabel

public void setLabel(int id,
                     java.lang.String newLabel)
              throws java.io.IOException,
                     AutomationException
Sets a label for the given graphic.

Specified by:
setLabel in interface IGraphicTracker
Parameters:
id - The id (in)
newLabel - The newLabel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setGeometry

public void setGeometry(int id,
                        IGeometry pGeometry)
                 throws java.io.IOException,
                        AutomationException
Sets a new geometry for the given graphic.

Specified by:
setGeometry in interface IGraphicTracker
Parameters:
id - The id (in)
pGeometry - 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.

setSymbol

public void setSymbol(int id,
                      IGraphicTrackerSymbol pGraphicTrackerSymbol)
               throws java.io.IOException,
                      AutomationException
Sets a new symbol for the given graphic.

Specified by:
setSymbol in interface IGraphicTracker
Parameters:
id - The id (in)
pGraphicTrackerSymbol - A reference to a com.esri.arcgis.enginecore.IGraphicTrackerSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setScaleMode

public void setScaleMode(int id,
                         int eScale)
                  throws java.io.IOException,
                         AutomationException
Sets the scaling mode for the given graphic.

Specified by:
setScaleMode in interface IGraphicTracker
Parameters:
id - The id (in)
eScale - A com.esri.arcgis.enginecore.esriGTScale constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOrientationMode

public void setOrientationMode(int id,
                               int eOrientation)
                        throws java.io.IOException,
                               AutomationException
Sets the orientation mode for the given graphic.

Specified by:
setOrientationMode in interface IGraphicTracker
Parameters:
id - The id (in)
eOrientation - A com.esri.arcgis.enginecore.esriGTOrientation constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElevationMode

public void setElevationMode(int id,
                             int eElevation)
                      throws java.io.IOException,
                             AutomationException
Sets the elevation mode for the given graphic.

Specified by:
setElevationMode in interface IGraphicTracker
Parameters:
id - The id (in)
eElevation - A com.esri.arcgis.enginecore.esriGTElevation constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVisible

public void setVisible(int id,
                       boolean bVisible)
                throws java.io.IOException,
                       AutomationException
Sets the visibility for the given graphic.

Specified by:
setVisible in interface IGraphicTracker
Parameters:
id - The id (in)
bVisible - The bVisible (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTransparency

public void setTransparency(int id,
                            int lTransparency)
                     throws java.io.IOException,
                            AutomationException
Sets the transparency for the given graphic.

Specified by:
setTransparency in interface IGraphicTracker
Parameters:
id - The id (in)
lTransparency - The lTransparency (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTextSymbol

public void setTextSymbol(int id,
                          ISimpleTextSymbol pSymbol)
                   throws java.io.IOException,
                          AutomationException
Sets the text symbol for the given graphic.

Specified by:
setTextSymbol in interface IGraphicTracker
Parameters:
id - The id (in)
pSymbol - A reference to a com.esri.arcgis.display.ISimpleTextSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPointOrientation

public void setPointOrientation(int id,
                                double dPitch,
                                double dRoll,
                                double dYaw)
                         throws java.io.IOException,
                                AutomationException
Sets the orientation for the given point graphic. Note that the orientation will only be applied if the graphic has its orientation mode set to esriGTOrientationFixed.

Specified by:
setPointOrientation in interface IGraphicTracker
Parameters:
id - The id (in)
dPitch - The dPitch (in)
dRoll - The dRoll (in)
dYaw - The dYaw (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPointSymbolSize

public void setPointSymbolSize(int id,
                               double size)
                        throws java.io.IOException,
                               AutomationException
Sets the symbol size for the given point graphic.

Specified by:
setPointSymbolSize in interface IGraphicTracker
Parameters:
id - The id (in)
size - The size (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

highlight

public void highlight(int id,
                      boolean bHighlight)
               throws java.io.IOException,
                      AutomationException
Emphasizes the graphic.

Specified by:
highlight in interface IGraphicTracker
Parameters:
id - The id (in)
bHighlight - The bHighlight (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hitTest

public int hitTest(int x,
                   int y)
            throws java.io.IOException,
                   AutomationException
Returns the ID of the first graphic touched by the input window coordinates.

Specified by:
hitTest in interface IGraphicTracker
Parameters:
x - The x (in)
y - The y (in)
Returns:
The id
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

moveTo

public void moveTo(int id,
                   double x,
                   double y,
                   double z)
            throws java.io.IOException,
                   AutomationException
Moves the given graphic to the location specified by the input map coordinates.

Specified by:
moveTo in interface IGraphicTracker
Parameters:
id - The id (in)
x - The x (in)
y - The y (in)
z - The z (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSuspendUpdate

public boolean isSuspendUpdate()
                        throws java.io.IOException,
                               AutomationException
Disables automatic refreshing of the display until unsuspended or until the display is explicitly refreshed. Suspending automatic refresh is ideal before bulk updates.

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

setSuspendUpdate

public void setSuspendUpdate(boolean suspendUpdate)
                      throws java.io.IOException,
                             AutomationException
Disables automatic refreshing of the display until unsuspended or until the display is explicitly refreshed. Suspending automatic refresh is ideal before bulk updates.

Specified by:
setSuspendUpdate in interface IGraphicTracker
Parameters:
suspendUpdate - The suspendUpdate (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.