|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.display.IDynamicDrawScreenProxy
public class IDynamicDrawScreenProxy
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.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IDynamicDrawScreenProxy()
|
|
IDynamicDrawScreenProxy(Object obj)
|
protected |
IDynamicDrawScreenProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IDynamicDrawScreenProxy()
public IDynamicDrawScreenProxy(Object obj) throws IOException
IOException
protected IDynamicDrawScreenProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public 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.
drawScreenMultipleMarkers
in interface IDynamicDrawScreen
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.public void drawScreenMarker(IPoint point) throws IOException, AutomationException
The marker will be rendered according to the currentDynamic Marker Symbol attributes, as described in esriDynamicSymbolType constants.
drawScreenMarker
in interface IDynamicDrawScreen
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.public 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.
drawScreenPolygon
in interface IDynamicDrawScreen
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.public 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.
drawScreenMultipleLines
in interface IDynamicDrawScreen
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.public 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.
drawScreenLine
in interface IDynamicDrawScreen
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.public 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.
drawScreenPolyline
in interface IDynamicDrawScreen
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.public 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.
drawScreenRectangle
in interface IDynamicDrawScreen
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.public 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.
drawScreenText
in interface IDynamicDrawScreen
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 |