|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IElement
Provides access to members that control the Element.
The geometry type of objects implementing IElement varies widely depending on what the element does. The remarks of each object implementing IElement will list the geometry types that are valid for that specific element.
IGraphicsContainerSelect
,
IGraphicsContainer
Method Summary | |
---|---|
void |
activate(IDisplay display)
Prepare to display graphic on screen. |
void |
deactivate()
ActiveView that graphics are displayed on is no longer visible. |
void |
draw(IDisplay display,
ITrackCancel trackCancel)
Draws the element into the given display object. |
IGeometry |
getGeometry()
Shape of the element as a geometry. |
ISelectionTracker |
getSelectionTracker()
Selection tracker used by this element. |
boolean |
hitTest(double x,
double y,
double tolerance)
Indicates if the given x and y coordinates are contained by the element. |
boolean |
isLocked()
Indicates if the element is in a read-only state. |
void |
queryBounds(IDisplay display,
IEnvelope bounds)
Bounds of the element taking symbology into consideration. |
void |
queryOutline(IDisplay display,
IPolygon outline)
Bounds of the element taking symbology into consideration. |
void |
setGeometry(IGeometry pGeometry)
Shape of the element as a geometry. |
void |
setLocked(boolean pLocked)
Indicates if the element is in a read-only state. |
Method Detail |
---|
IGeometry getGeometry() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setGeometry(IGeometry pGeometry) throws IOException, AutomationException
pGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryBounds(IDisplay display, IEnvelope bounds) throws IOException, AutomationException
QueryBounds returns an envelope representing the boundary of the element. A valid envelope object must be passed in to the method along with the current display. The method then updates the envelope object based on the minimum bounding rectangle of the element.
display
- A reference to a com.esri.arcgis.display.IDisplay (in)bounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryOutline(IDisplay display, IPolygon outline) throws IOException, AutomationException
QueryOutline returns a polygon representing the outline of the element. A valid polygon object must be passed in to the method along with the current display. The method then updates the polygon object. The results for point and line elements will be similar to the minimum bounding envelope returned by QueryBounds, while the results for polygon elements while be the actual outline of the element (not the bounding envelope).
display
- A reference to a com.esri.arcgis.display.IDisplay (in)outline
- A reference to a com.esri.arcgis.geometry.IPolygon (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISelectionTracker getSelectionTracker() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean hitTest(double x, double y, double tolerance) throws IOException, AutomationException
HitTest returns a boolean value indicating whether or not the current element is intersected by the specified coordinate pair and tolerance distance. For instance, if we have a line element selected, the HitTest is determining whether that line element is within the specified tolerance from the given X and Y. A value of TRUE is returned if the element is within the tolerance, while FALSE is returned if it is not.
The X,Y, and tolerance values should be specified in map units.
x
- The x (in)y
- The y (in)tolerance
- The tolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void draw(IDisplay display, ITrackCancel trackCancel) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void activate(IDisplay display) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deactivate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLocked() throws IOException, AutomationException
The Locked property indicates whether the specified element can be updated. This property can be set to TRUE to stop users from modifying a particular element.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLocked(boolean pLocked) throws IOException, AutomationException
pLocked
- The pLocked (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 |