|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.VertexFeedback
public class VertexFeedback
Vertex Display Feedback Object.
The VertexFeedback object allows one or more individual segments to be moved on the display by the user. Like the NewMultiPointFeedback, the VertexFeedback does not return an object at the end of the operation and is used for visual feedback only. The segments in question don’t need to belong to the same geometry or even type of geometry. This allows, for example, a segment from a polygon to be moved along with some segments from a polyline or, alternatively, the moving of vertices (and segments) that are part of a shared polygon boundary.
Vertex feedbacks are used to alter paths and rings by moving their vertices and any adjacent segments. Segments are added one by one with either their FromPoint or ToPoint as an anchor. Multiple segments, which may come from different geometry objects, can be moved at the same time. No geometry objects are returned on completion.
Constructor Summary | |
---|---|
VertexFeedback()
Constructs a VertexFeedback using ArcGIS Engine. |
|
VertexFeedback(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. VertexFeedback theVertexFeedback = (VertexFeedback) obj; |
Method Summary | |
---|---|
void |
addSegment(ISegment segment,
boolean fromPointIsAnchor)
Adds an edge to rubberband. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
ISymbol |
getSymbol()
The symbol the feedback object will use. |
int |
hashCode()
the hashcode for this object |
void |
moveTo(IPoint point)
Move to the new point. |
void |
refresh(int hDC)
Call this after a refresh to show feedback again. |
void |
setDisplayByRef(IScreenDisplay rhs1)
The display the feedback object will use. |
void |
setSymbolByRef(ISymbol symbol)
The symbol the feedback object will use. |
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 VertexFeedback() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic VertexFeedback(Object obj) throws IOException
VertexFeedback theVertexFeedback = (VertexFeedback) obj;
obj
to VertexFeedback
.
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 void addSegment(ISegment segment, boolean fromPointIsAnchor) throws IOException, AutomationException
Adds the segments and specifies which end to use as the anchor point. Each time AddSegment is called, a check is made to see if the segment has already been added; if it has, then it is not added a second time. The methods used to move, symbolize, refresh, and setup the display are accessed through the inherited IDisplayFeedback interface. Since there is no Start method, the first call to MoveTo will begin the feedback operation, that is, draw the feedback, and the feedback will be redrawn with each subsequent MoveTo. To finish the operation, the feedback object should be cleared and the display refreshed.
addSegment
in interface IVertexFeedback
segment
- A reference to a com.esri.arcgis.geometry.ISegment (in)fromPointIsAnchor
- The fromPointIsAnchor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSymbolByRef(ISymbol symbol) throws IOException, AutomationException
setSymbolByRef
in interface IDisplayFeedback
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 ISymbol getSymbol() throws IOException, AutomationException
getSymbol
in interface IDisplayFeedback
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayByRef(IScreenDisplay rhs1) throws IOException, AutomationException
setDisplayByRef
in interface IDisplayFeedback
rhs1
- A reference to a com.esri.arcgis.display.IScreenDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh(int hDC) throws IOException, AutomationException
refresh
in interface IDisplayFeedback
hDC
- The hDC (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveTo(IPoint point) throws IOException, AutomationException
moveTo
in interface IDisplayFeedback
point
- A reference to a com.esri.arcgis.geometry.IPoint (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 |