|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDynamicSymbolProperties
Provides access to dynamic symbol properties.
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 IDynamicSymbolProperties 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 |
getColor(int dynamicSymbolType,
float[] red,
float[] green,
float[] blue,
float[] alpha)
Indicates the color for the specified dynamic symbol. |
IDynamicGlyph |
getDynamicGlyph(int dynamicSymbolType)
Indicates the dynamic glyph for the specified dynamic symbol. |
float |
getHeading(int dynamicSymbolType)
Indicates the heading for the specified dynamic symbol, relative to the rotation alignment. |
int |
getRotationAlignment(int dynamicSymbolType)
Indicates the rotation alignment for the specified dynamic symbol. |
void |
getScale(int dynamicSymbolType,
float[] scaleX,
float[] scaleY)
Scales the dynamic symbol. |
int |
getTextHorizontalAlignment()
Indicates the horizontal alignment for the dynamic text symbol. |
int |
getTextVerticalAlignment()
Indicates the vertical alignment for the dynamic text symbol. |
boolean |
isSmooth(int dynamicSymbolType)
Indicates whether the specified dynamic symbol will be smooth. |
void |
setColor(int dynamicSymbolType,
float red,
float green,
float blue,
float alpha)
Indicates the color for the specified dynamic symbol. |
void |
setDynamicGlyphByRef(int dynamicSymbolType,
IDynamicGlyph dynamicGlyph)
Indicates the dynamic glyph for the specified dynamic symbol. |
void |
setHeading(int dynamicSymbolType,
float heading)
Indicates the heading for the specified dynamic symbol, relative to the rotation alignment. |
void |
setRotationAlignment(int dynamicSymbolType,
int dynamicSymbolRotationAlignment)
Indicates the rotation alignment for the specified dynamic symbol. |
void |
setScale(int dynamicSymbolType,
float scaleX,
float scaleY)
Scales the dynamic symbol. |
void |
setSmooth(int dynamicSymbolType,
boolean smooth)
Indicates whether the specified dynamic symbol will be smooth. |
void |
setTextHorizontalAlignment(int horizontalAlignment)
Indicates the horizontal alignment for the dynamic text symbol. |
void |
setTextVerticalAlignment(int verticalAlignment)
Indicates the vertical alignment for the dynamic text symbol. |
Method Detail |
---|
IDynamicGlyph getDynamicGlyph(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 setDynamicGlyphByRef(int dynamicSymbolType, IDynamicGlyph dynamicGlyph) throws IOException, AutomationException
Dynamic Glyph is a handle to a graphic resource that can be used in order to render the Dynamic Symbol.Use the Dynamic Glyph Factory in order to create and delete Dynamic Glyphs.
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)dynamicGlyph
- A reference to a com.esri.arcgis.display.IDynamicGlyph (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getScale(int dynamicSymbolType, float[] scaleX, float[] scaleY) throws IOException, AutomationException
Gets the current relative scale for the specified dynamic symbol (text, marker, line, fill).
The scale attribute can be used in order to reuse a glyph, and render it in different sizes, rather than creating a different glyph for each different size. This is recommended in order to minimize graphic resources usage.
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)scaleX
- The scaleX (in/out: use single element array)scaleY
- The scaleY (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setScale(int dynamicSymbolType, float scaleX, float scaleY) throws IOException, AutomationException
Sets the current relative scale for the specified dynamic symbol (text, marker, line, fill).
The scale attribute can be used in order to reuse a glyph, and render it in different sizes, rather than creating a different glyph for each different size. This is recommended in order to minimize graphic resources usage.
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)scaleX
- The scaleX (in)scaleY
- The scaleY (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getColor(int dynamicSymbolType, float[] red, float[] green, float[] blue, float[] alpha) throws IOException, AutomationException
The color attribute can be used in order to reuse a glyph, and render it in different colors, if possible, rather than creating a different glyph for each color. This is recommended in order to minimize graphic resources usage, and is possible with monochromatic symbols.
For monochromatic symbols (symbols that consist of only one color and might even have fixed black pixels), it is advisable to create a white-and-black dynamic glyph, and then set the DynamicSymbol’s color to the desired color. That will result in coloring the white pixels to the desired color, while leaving the black colors black. That method enables you to reuse a white-and-black glyph to draw different colors of the same glyph.
For multicolor symbols (symbols that contain more than just white and black colors in them), it is advisable to create the multicolor glyph, and then set the DynamicSymbol’s color to white. That will result in rendering the original colors of the glyph’s pixels.Use the alpha value in order to affect the Dynamic Symbol’s transparency level.
The target pixel color is being calculated by multiplying the Glyph’s color value with the value of the Color Property. For example - a white opaque color (R=1, G=1, B=1, A=1) will result in rendering the pixels with the original glyph’s color values, with the same transparency level.
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)red
- The red (in/out: use single element array)green
- The green (in/out: use single element array)blue
- The blue (in/out: use single element array)alpha
- The alpha (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setColor(int dynamicSymbolType, float red, float green, float blue, float alpha) throws IOException, AutomationException
The color attribute can be used in order to reuse a glyph, and render it in different colors, if possible, rather than creating a different glyph for each color. This is recommended in order to minimize graphic resources usage, and is possible with monochromatic symbols.
For monochromatic symbols (symbols that consist of only one color and might even have fixed black pixels), it is advisable to create a white-and-black dynamic glyph, and then set the DynamicSymbol’s color to the desired color. That will result in coloring the white pixels to the desired color, while leaving the black colors black. That method enables you to reuse a white-and-black glyph to draw different colors of the same glyph.
For multicolor symbols (symbols that contain more than just white and black colors in them), it is advisable to create the multicolor glyph, and then set the DynamicSymbol’s color to white. That will result in rendering the original colors of the glyph’s pixels.Use the alpha value in order to affect the Dynamic Symbol’s transparency level.
The target pixel color is being calculated by multiplying the Glyph’s color value with the value of the Color Property. For example - a white opaque color (R=1, G=1, B=1, A=1) will result in rendering the pixels with the original glyph’s color values, with the same transparency level.
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)red
- The red (in)green
- The green (in)blue
- The blue (in)alpha
- The alpha (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getRotationAlignment(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 setRotationAlignment(int dynamicSymbolType, int dynamicSymbolRotationAlignment) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)dynamicSymbolRotationAlignment
- A com.esri.arcgis.display.esriDynamicSymbolRotationAlignment constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.float getHeading(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 setHeading(int dynamicSymbolType, float heading) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)heading
- The heading (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSmooth(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 setSmooth(int dynamicSymbolType, boolean smooth) throws IOException, AutomationException
dynamicSymbolType
- A com.esri.arcgis.display.esriDynamicSymbolType constant (in)smooth
- The smooth (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextVerticalAlignment() throws IOException, AutomationException
This property affects the anchor point of the text.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextVerticalAlignment(int verticalAlignment) throws IOException, AutomationException
This property affects the anchor point of the text.
verticalAlignment
- A com.esri.arcgis.display.esriTextVerticalAlignment constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextHorizontalAlignment() throws IOException, AutomationException
This property affects the anchor point of the text.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextHorizontalAlignment(int horizontalAlignment) throws IOException, AutomationException
This property affects the anchor point of the text.
horizontalAlignment
- A com.esri.arcgis.display.esriTextHorizontalAlignment constant (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 |