|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDynamicSymbolProperties2
Provides access to dynamic symbol properties.
This interface is new at ArcGIS 9.3. It supersedes IDynamicSymbolProperties.
The Dynamic Display has four internal Dynamic Symbols that are being used to determine how the Dynamic Items are to be rendered. These internal Dynamic Symbols are:
· Dynamic Marker Symbol
· Dynamic Line Symbol
· Dynamic Fill Symbol
· Dynamic Text Symbol
The IDynamicSymbolProperties2 interface is used in order to set these four Dynamic Symbols’ Properties.
Each Dynamic Item that is rendered will be affected by the current state of the Internal Dynamic Symbols. For example, when DrawPolygon method is being called, the polygon’s fill will be rendered according to the current state of the internal Dynamic Fill Symbol, and the Polygon’s outline will be rendered according to the current state of the internal Dynamic Line Symbol.
Method Summary | |
---|---|
void |
getOffset(int dynamicSymbolType,
float[] offsetX,
float[] offsetY)
Offsets the dynamic symbol. |
int |
getTextBoxHorizontalAlignment()
Indicates the text box horizontal alignment for the dynamic text symbol. |
void |
getTextBoxMargins(float[] left,
float[] top,
float[] right,
float[] bottom)
Indicates the text box margins for the dynamic text symbol. |
float |
getTextCharacterSpacing()
Indicates an additional space that is added to each character beyond what is defined by its character box in the TextGlyph. |
float |
getTextLeading()
Indicates the text leading for the dynamic text symbol. |
void |
getTextSize(String text,
float[] sizeX,
float[] sizeY)
The text size in pixel screen coordinates. |
float |
getTextWordSpacing()
Indicates an additional space that is added between words of the text string. |
boolean |
isLineContinuePattern()
Indicates whether the line pattern is continued or restarted, for multi parts lines drawing. |
boolean |
isTextBoxUseDynamicFillSymbol()
Indicates whether to use the dynamic fill symbol when drawing the text. |
boolean |
isTextBoxUseDynamicLineSymbol()
Indicates whether to use the dynamic line symbol when drawing the text. |
boolean |
isTextRightToLeft()
Indicates whether the text is drawn from right to left for the dynamic text symbol. |
boolean |
isUseReferenceScale(int dynamicSymbolType)
Indicates whether the specified dynamic symbol will conform to map reference scale. |
void |
setLineContinuePattern(boolean continuePattern)
Indicates whether the line pattern is continued or restarted, for multi parts lines drawing. |
void |
setOffset(int dynamicSymbolType,
float offsetX,
float offsetY)
Offsets the dynamic symbol. |
void |
setTextBoxHorizontalAlignment(int textBoxHorizontalAlignment)
Indicates the text box horizontal alignment for the dynamic text symbol. |
void |
setTextBoxMargins(float left,
float top,
float right,
float bottom)
Indicates the text box margins for the dynamic text symbol. |
void |
setTextBoxUseDynamicFillSymbol(boolean use)
Indicates whether to use the dynamic fill symbol when drawing the text. |
void |
setTextBoxUseDynamicLineSymbol(boolean use)
Indicates whether to use the dynamic line symbol when drawing the text. |
void |
setTextCharacterSpacing(float characterSpacing)
Indicates an additional space that is added to each character beyond what is defined by its character box in the TextGlyph. |
void |
setTextLeading(float leading)
Indicates the text leading for the dynamic text symbol. |
void |
setTextRightToLeft(boolean rightToLeft)
Indicates whether the text is drawn from right to left for the dynamic text symbol. |
void |
setTextWordSpacing(float wordSpacing)
Indicates an additional space that is added between words of the text string. |
void |
setUseReferenceScale(int dynamicSymbolType,
boolean useReferenceScale)
Indicates whether the specified dynamic symbol will conform to map reference scale. |
Methods inherited from interface com.esri.arcgis.display.IDynamicSymbolProperties |
---|
getColor, getDynamicGlyph, getHeading, getRotationAlignment, getScale, getTextHorizontalAlignment, getTextVerticalAlignment, isSmooth, setColor, setDynamicGlyphByRef, setHeading, setRotationAlignment, setScale, setSmooth, setTextHorizontalAlignment, setTextVerticalAlignment |
Method Detail |
---|
void getOffset(int dynamicSymbolType, float[] offsetX, float[] offsetY) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)offsetX
- The offsetX (in/out: use single element array)offsetY
- The offsetY (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOffset(int dynamicSymbolType, float offsetX, float offsetY) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)offsetX
- The offsetX (in)offsetY
- The offsetY (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseReferenceScale(int dynamicSymbolType) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseReferenceScale(int dynamicSymbolType, boolean useReferenceScale) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)useReferenceScale
- The useReferenceScale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getTextBoxMargins(float[] left, float[] top, float[] right, float[] bottom) throws IOException, AutomationException
The Text Box Margins values, indicates a margin around the text in all four directions.
This also affects the anchor point of the text, along with the TextHorizontalAlignment and TextVerticalAlignment properties.
left
- The left (in/out: use single element array)top
- The top (in/out: use single element array)right
- The right (in/out: use single element array)bottom
- The bottom (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextBoxMargins(float left, float top, float right, float bottom) throws IOException, AutomationException
The Text Box Margins values, indicates a margin around the text in all four directions.
This also affects the anchor point of the text, along with the TextHorizontalAlignment and TextVerticalAlignment properties.
left
- The left (in)top
- The top (in)right
- The right (in)bottom
- The bottom (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextBoxHorizontalAlignment() throws IOException, AutomationException
This property controls the Horizontal Alignment of the text inside the text box, while supporting multi lines text (using carriage return on each line end).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextBoxHorizontalAlignment(int textBoxHorizontalAlignment) throws IOException, AutomationException
This property controls the Horizontal Alignment of the text inside the text box, while supporting multi lines text (using carriage return on each line end).
textBoxHorizontalAlignment
- A com.esri.arcgis.display.esriTextHorizontalAlignment constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTextBoxUseDynamicFillSymbol() throws IOException, AutomationException
When true, text will be rendered with a background Fill, using the current internal Dynamic Fill Symbol State.
When false, text will be rendered with no background Fill.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextBoxUseDynamicFillSymbol(boolean use) throws IOException, AutomationException
When true, text will be rendered with a background Fill, using the current internal Dynamic Fill Symbol State.
When false, text will be rendered with no background Fill.
use
- The use (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTextBoxUseDynamicLineSymbol() throws IOException, AutomationException
When true, text will be rendered with an outline around the text box, using the current internal Dynamic Line Symbol State.
When false, text will be rendered with no outline around the text box.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextBoxUseDynamicLineSymbol(boolean use) throws IOException, AutomationException
When true, text will be rendered with an outline around the text box, using the current internal Dynamic Line Symbol State.
When false, text will be rendered with no outline around the text box.
use
- The use (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.float getTextLeading() throws IOException, AutomationException
Text Leading specifies the spacing in pixels, between the multiple lines of a text box, when drawing text.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextLeading(float leading) throws IOException, AutomationException
Text Leading specifies the spacing in pixels, between the multiple lines of a text box, when drawing text.
leading
- The leading (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.float getTextCharacterSpacing() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextCharacterSpacing(float characterSpacing) throws IOException, AutomationException
characterSpacing
- The characterSpacing (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.float getTextWordSpacing() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextWordSpacing(float wordSpacing) throws IOException, AutomationException
wordSpacing
- The wordSpacing (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTextRightToLeft() throws IOException, AutomationException
RightToLeft defines whether the text is to be displayed in a right to left manner. The default value is false, meaning Left To Right manner.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextRightToLeft(boolean rightToLeft) throws IOException, AutomationException
RightToLeft defines whether the text is to be displayed in a right to left manner. The default value is false, meaning Left To Right manner.
rightToLeft
- The rightToLeft (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getTextSize(String text, float[] sizeX, float[] sizeY) throws IOException, AutomationException
Returns the size of a given text, according to the current state of the internal Dynamic Symbols.
text
- The text (in)sizeX
- The sizeX (in/out: use single element array)sizeY
- The sizeY (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLineContinuePattern(boolean continuePattern) throws IOException, AutomationException
Taking drawing a polyline as an example, if you need to render a continuous pattern, and can’t have the pattern restarted in each of the polyline’s vertices, you should set this property to true.
continuePattern
- The continuePattern (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLineContinuePattern() throws IOException, AutomationException
Taking drawing a polyline as an example, if you need to render a continuous pattern, and can’t have the pattern restarted in each of the polyline’s vertices, you should set this property to true.
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 |