|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDynamicCompoundMarker2
Provides access to Dynamic Screen Draw.
This interface is new at ArcGIS 9.3. It supersedes IDynamicCompoundMarker.
IDynamicCompoundMarker2 is a helper interface that optimizes the rendering of a marker along with some text labels around it.
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.
Use the DrawArrayMarker and DrawScreenArrayMarker methods in order to draw markers along with text labels around them. These methods can be used in order to draw an array of text labels column on each of the five marker’s regions: center, left, right, top, bottom:
Method Summary | |
---|---|
void |
drawArrayMarker(IPoint point,
String[] textCenter,
String[] textLeft,
String[] textRight,
String[] textTop,
String[] textBottom)
Draws a marker in a specific point on the map with text matricies around it. |
void |
drawScreenArrayMarker(IPoint point,
String[] textCenter,
String[] textLeft,
String[] textRight,
String[] textTop,
String[] textBottom)
Draws a marker in a specific point on the screen with text matricies around it. |
void |
getMarkerToTextOffset2(float[] markerToTop,
float[] markerToBottom,
float[] markerToLeft,
float[] markerToRight)
Indicates the offset of the text from the marker on each direction. |
void |
getTextSpacing(float[] textSpacingX,
float[] textSpacingY)
Indicates the spacing between each two adjacent text boxes. |
boolean |
isTextAutoAdjust()
Indicates whether the text boxes are to be auto ajdusted. |
void |
setMarkerToTextOffset2(float markerToTop,
float markerToBottom,
float markerToLeft,
float markerToRight)
Indicates the offset of the text from the marker on each direction. |
void |
setTextAutoAdjust(boolean autoAdjust)
Indicates whether the text boxes are to be auto ajdusted. |
void |
setTextSpacing(float textSpacingX,
float textSpacingY)
Indicates the spacing between each two adjacent text boxes. |
Methods inherited from interface com.esri.arcgis.display.IDynamicCompoundMarker |
---|
drawCompoundMarker1, drawCompoundMarker10, drawCompoundMarker2, drawCompoundMarker4, drawCompoundMarker6, drawCompoundMarker8, getMarkerToTextOffset, setMarkerToTextOffset |
Method Detail |
---|
void getMarkerToTextOffset2(float[] markerToTop, float[] markerToBottom, float[] markerToLeft, float[] markerToRight) throws IOException, AutomationException
Offset is the distance between the marker and the text labels, in each of the four directions—top, bottom, left, right.
Each text label gets an offset according to its region: top, bottom, left, right. The center text labels remain without an offset.
markerToTop
- The markerToTop (in/out: use single element array)markerToBottom
- The markerToBottom (in/out: use single element array)markerToLeft
- The markerToLeft (in/out: use single element array)markerToRight
- The markerToRight (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMarkerToTextOffset2(float markerToTop, float markerToBottom, float markerToLeft, float markerToRight) throws IOException, AutomationException
Offset is the distance between the marker and the text labels, in each of the four directions – top, bottom, left, right.
Each text label gets an offset according to its region: top, bottom, left, right. The center text labels remain without an offset.
markerToTop
- The markerToTop (in)markerToBottom
- The markerToBottom (in)markerToLeft
- The markerToLeft (in)markerToRight
- The markerToRight (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getTextSpacing(float[] textSpacingX, float[] textSpacingY) throws IOException, AutomationException
Text spacing is the spacing between the text labels in each region (center, top, bottom, left, right). Y is the vertical spacing between each two adjacent text labels in a column. X is the horizontal spacing between each two columns of the same region.
textSpacingX
- The textSpacingX (in/out: use single element array)textSpacingY
- The textSpacingY (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextSpacing(float textSpacingX, float textSpacingY) throws IOException, AutomationException
Text spacing is the spacing between the text labels in each region (center, top, bottom, left, right). Y is the vertical spacing between each two adjacent text labels in a column. X is the horizontal spacing between each two columns of the same region.
textSpacingX
- The textSpacingX (in)textSpacingY
- The textSpacingY (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTextAutoAdjust() throws IOException, AutomationException
When TextAutoAdjust is set to true, the text labels along with their text boxes, are realigned so that they will not overlap.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextAutoAdjust(boolean autoAdjust) throws IOException, AutomationException
When TextAutoAdjust is set to true, the text labels along with their text boxes, are realigned so that they will not overlap.
autoAdjust
- The autoAdjust (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawArrayMarker(IPoint point, String[] textCenter, String[] textLeft, String[] textRight, String[] textTop, String[] textBottom) throws IOException, AutomationException
Draws an array of text labels column on each of the five marker’s regions: center, left, right, top, bottom. The location of the marker is given in map coordinates.
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)textCenter
- The textCenter (in)textLeft
- The textLeft (in)textRight
- The textRight (in)textTop
- The textTop (in)textBottom
- The textBottom (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawScreenArrayMarker(IPoint point, String[] textCenter, String[] textLeft, String[] textRight, String[] textTop, String[] textBottom) throws IOException, AutomationException
Draw an array of text labels column on each of the five marker’s regions: center, left, right, top, bottom. The location of the marker is given in screen (pixel) coordinates. 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 up.
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)textCenter
- The textCenter (in)textLeft
- The textLeft (in)textRight
- The textRight (in)textTop
- The textTop (in)textBottom
- The textBottom (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 |