| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.display.IDynamicSymbolPropertiesProxy
public class IDynamicSymbolPropertiesProxy
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.
| Field Summary | |
|---|---|
|  boolean | noncastable | 
| Fields inherited from class com.esri.arcgis.interop.Dispatch | 
|---|
| DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef | 
| Constructor Summary | |
|---|---|
|   | IDynamicSymbolPropertiesProxy() | 
|   | IDynamicSymbolPropertiesProxy(Object obj) | 
| protected  | IDynamicSymbolPropertiesProxy(Object obj,
                              String iid) | 
| Method Summary | |
|---|---|
|  void | addListener(String iidStr,
            Object theListener,
            Object theSource) | 
|  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 | removeListener(String iidStr,
               Object theListener) | 
|  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. | 
| 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 IDynamicSymbolPropertiesProxy()
public IDynamicSymbolPropertiesProxy(Object obj)
                              throws IOException
IOException
protected IDynamicSymbolPropertiesProxy(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.DispatchIOException
public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public IDynamicGlyph getDynamicGlyph(int dynamicSymbolType)
                              throws IOException,
                                     AutomationException
getDynamicGlyph in interface IDynamicSymbolPropertiesdynamicSymbolType - A com.esri.arcgis.display.esriDynamicSymbolType constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setDynamicGlyphByRef in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public 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.
getScale in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public 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.
setScale in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public 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.
getColor in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public 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.
setColor in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public int getRotationAlignment(int dynamicSymbolType)
                         throws IOException,
                                AutomationException
getRotationAlignment in interface IDynamicSymbolPropertiesdynamicSymbolType - A com.esri.arcgis.display.esriDynamicSymbolType constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRotationAlignment(int dynamicSymbolType,
                                 int dynamicSymbolRotationAlignment)
                          throws IOException,
                                 AutomationException
setRotationAlignment in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public float getHeading(int dynamicSymbolType)
                 throws IOException,
                        AutomationException
getHeading in interface IDynamicSymbolPropertiesdynamicSymbolType - A com.esri.arcgis.display.esriDynamicSymbolType constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHeading(int dynamicSymbolType,
                       float heading)
                throws IOException,
                       AutomationException
setHeading in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public boolean isSmooth(int dynamicSymbolType)
                 throws IOException,
                        AutomationException
isSmooth in interface IDynamicSymbolPropertiesdynamicSymbolType - A com.esri.arcgis.display.esriDynamicSymbolType constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSmooth(int dynamicSymbolType,
                      boolean smooth)
               throws IOException,
                      AutomationException
setSmooth in interface IDynamicSymbolPropertiesdynamicSymbolType - 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.
public int getTextVerticalAlignment()
                             throws IOException,
                                    AutomationException
This property affects the anchor point of the text.
getTextVerticalAlignment in interface IDynamicSymbolPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTextVerticalAlignment(int verticalAlignment)
                              throws IOException,
                                     AutomationException
This property affects the anchor point of the text.
setTextVerticalAlignment in interface IDynamicSymbolPropertiesverticalAlignment - A com.esri.arcgis.display.esriTextVerticalAlignment constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTextHorizontalAlignment()
                               throws IOException,
                                      AutomationException
This property affects the anchor point of the text.
getTextHorizontalAlignment in interface IDynamicSymbolPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTextHorizontalAlignment(int horizontalAlignment)
                                throws IOException,
                                       AutomationException
This property affects the anchor point of the text.
setTextHorizontalAlignment in interface IDynamicSymbolPropertieshorizontalAlignment - 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 | ||||||||