|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDynamicDrawScreen
Provides access to Dynamic Screen Draw.
The IDynamicScreenDisplay interface gives access to the drawing methods that render dynamic items using screen (pixel) coordinates.
Use this interface to draw items when you need to specify the item’s coordinates in screen units (pixels) rather than in map units. The origin of the screen is the lower left corner of the screen, while x values are growing towards the right, and y values are growing towards the top.
The IDynamicScreenDisplay interface can be retrieved by casting from the IDynamicDisplay interface that is passed in to the callback draw methods: IDynamicLayer.DrawDynamicLayer, IDynamicMapEvents.BeforeDynamicDraw, and IDynamicMapEvents.AfterDynamicDraw.
The drawing methods can only be used in one of the callback draw methods with the following specific context:
Any usage of the DynamicDisplay drawing API (or OpenGL API) in any other context will result in an unknown behavior.
Method Summary | |
---|---|
void |
drawScreenLine(IPoint startPoint,
IPoint endPoint)
Draws a line between the specified points on the screen. |
void |
drawScreenMarker(IPoint point)
Draws a marker at the specified point on the screen. |
void |
drawScreenMultipleLines(IPointCollection pointCollection)
Draws specified lines on the screen. |
void |
drawScreenMultipleMarkers(IPointCollection pointCollection)
Draws a marker at the specified points on the screen. |
void |
drawScreenPolygon(IPointCollection pointCollection)
Draws specified polygon with fill and line on the screen. |
void |
drawScreenPolyline(IPointCollection pointCollection)
Draws specified polyline on the screen. |
void |
drawScreenRectangle(IEnvelope envelope)
Draws specified rectangle with fill and line on the screen. |
void |
drawScreenText(IPoint point,
String text)
Draws text at the specified point on the screen. |
Method Detail |
---|
void drawScreenMultipleMarkers(IPointCollection pointCollection) throws IOException, AutomationException
The markers will be rendered according to the current Dynamic Marker Symbol attributes as described in esriDynamicSymbolType constants.
Using this method is useful when you need to draw multiple markers that looks the same, in different locations, for example drawing indication markers on a polyline’s or a polygon’s vertices.
pointCollection
- A reference to a com.esri.arcgis.geometry.IPointCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawScreenMarker(IPoint point) throws IOException, AutomationException
The marker will be rendered according to the currentDynamic Marker Symbol attributes, as described in esriDynamicSymbolType constants.
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.void drawScreenPolygon(IPointCollection pointCollection) throws IOException, AutomationException
The fill will be rendered according to the current Dynamic Fill Symbol attributes, and the lines will be rendered according to the current Dynamic Line Symbol attributes as described in esriDynamicSymbolType constants.
pointCollection
- A reference to a com.esri.arcgis.geometry.IPointCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawScreenMultipleLines(IPointCollection pointCollection) throws IOException, AutomationException
The lines will be rendered according to the current Dynamic Line Symbol attributes, as described in esriDynamicSymbolType constants.
pointCollection
- A reference to a com.esri.arcgis.geometry.IPointCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawScreenLine(IPoint startPoint, IPoint endPoint) throws IOException, AutomationException
The line will be rendered according to the current Dynamic Line Symbol attributes, as described in esriDynamicSymbolType constants.
startPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)endPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawScreenPolyline(IPointCollection pointCollection) throws IOException, AutomationException
The lines will be rendered according to the current Dynamic Line Symbol attributes as described in esriDynamicSymbolType constants.
pointCollection
- A reference to a com.esri.arcgis.geometry.IPointCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawScreenRectangle(IEnvelope envelope) throws IOException, AutomationException
Similar to DrawPolygon method, the fill will be rendered according to the current Dynamic Fill Symbol attributes, and the lines will be rendered according to the current Dynamic Line Symbol attributes, as described in esriDynamicSymbolType constants.
envelope
- 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 drawScreenText(IPoint point, String text) throws IOException, AutomationException
The text will be rendered according to the current DynamicTextSymbol attributes.
Using the DynamicTextSymbol, you can set the text to have a text box that will use the DynamicFillSymbol for Background fill, and the DynamicLineSymbol for outline. Please refer to IDynamicSymbolProperties2.TextBoxUseDynamicFillSymbol and IDynamicSymbolProperties2.TextBoxUseDynamicLineSymbol boolean properties.
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)text
- The text (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 |