com.esri.arcgis.display
Interface IRubberBand2

All Superinterfaces:
Serializable
All Known Implementing Classes:
RubberCircle, RubberEnvelope, RubberLine, RubberPoint, RubberPolygon, RubberRectangularPolygon

public interface IRubberBand2
extends Serializable

Provides access to members that control simple rubberbanding.

Product Availability

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


Method Summary
 boolean isShiftToConstrain()
          Indicates whether the shift key constrain the shape.
 void setShiftToConstrain(boolean flag)
          Indicates whether the shift key constrain the shape.
 boolean trackExisting(IScreenDisplay screenDisplay, ISymbol symbol, IGeometry geometry)
          Indicates if to move or reshape an existing shape on the specified screen in response to a mouse down event.
 IGeometry trackNew(IScreenDisplay screenDisplay, ISymbol symbol)
          Call in response to mouse down event to rubberband a new shape on the specified screen.
 

Method Detail

trackNew

IGeometry trackNew(IScreenDisplay screenDisplay,
                   ISymbol symbol)
                   throws IOException,
                          AutomationException
Call in response to mouse down event to rubberband a new shape on the specified screen.

Product Availability

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

Parameters:
screenDisplay - A reference to a com.esri.arcgis.display.IScreenDisplay (in)
symbol - A reference to a com.esri.arcgis.display.ISymbol (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

trackExisting

boolean trackExisting(IScreenDisplay screenDisplay,
                      ISymbol symbol,
                      IGeometry geometry)
                      throws IOException,
                             AutomationException
Indicates if to move or reshape an existing shape on the specified screen in response to a mouse down event.

Product Availability

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

Parameters:
screenDisplay - A reference to a com.esri.arcgis.display.IScreenDisplay (in)
symbol - A reference to a com.esri.arcgis.display.ISymbol (in)
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
The completed
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isShiftToConstrain

boolean isShiftToConstrain()
                           throws IOException,
                                  AutomationException
Indicates whether the shift key constrain the shape.

Product Availability

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

Returns:
The flag
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setShiftToConstrain

void setShiftToConstrain(boolean flag)
                         throws IOException,
                                AutomationException
Indicates whether the shift key constrain the shape.

Product Availability

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

Parameters:
flag - The flag (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.