|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.RubberEnvelope
public class RubberEnvelope
Rubberbanding class for simple envelopes.
Use RubberEnvelope to either create a new IEnvelope object or to track an existing one.
RubberEnvelope implements the IRubberBand interface, which contains the TrackNew and TrackExisting methods. Use the TrackNew method to digitize a new rectangle on the map. Use the TrackExisting method to track existing envelopes. Both methods are commonly used in the MouseDown event.
Constructor Summary | |
---|---|
RubberEnvelope()
Constructs a RubberEnvelope using ArcGIS Engine. |
|
RubberEnvelope(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RubberEnvelope theRubberEnvelope = (RubberEnvelope) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
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. |
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 RubberEnvelope() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RubberEnvelope(Object obj) throws IOException
RubberEnvelope theRubberEnvelope = (RubberEnvelope) obj;
obj
to RubberEnvelope
.
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 IGeometry trackNew(IScreenDisplay screenDisplay, ISymbol symbol) throws IOException, AutomationException
trackNew
in interface IRubberBand
trackNew
in interface IRubberBand2
screenDisplay
- A reference to a com.esri.arcgis.display.IScreenDisplay (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean trackExisting(IScreenDisplay screenDisplay, ISymbol symbol, IGeometry geometry) throws IOException, AutomationException
trackExisting
in interface IRubberBand
trackExisting
in interface IRubberBand2
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShiftToConstrain() throws IOException, AutomationException
isShiftToConstrain
in interface IRubberBand2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShiftToConstrain(boolean flag) throws IOException, AutomationException
setShiftToConstrain
in interface IRubberBand2
flag
- The flag (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 |