| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.DynamicGlyph
public class DynamicGlyph
Dynamic glyph class. A dynamic glyph is a handle to a resource that is used to render a dynamic symbol.
| Constructor Summary | |
|---|---|
DynamicGlyph(Object obj)
Construct a DynamicGlyph using a reference to such an object returned from ArcGIS Engine or Server.  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(Object o)
Compare this object with another  | 
 void | 
getAnchor(float[] xAnchor,
          float[] yAnchor)
Indicates the origin of the glyph from the the bottom left.  | 
 int | 
getGlyphType()
Indicates the type of dynamic glyph.  | 
 int | 
hashCode()
the hashcode for this object  | 
 void | 
queryDimensions(float[] width,
                float[] height)
Returns the width and height, in pixels, of the glyph.  | 
 void | 
setAnchor(float xAnchor,
          float yAnchor)
Indicates the origin of the glyph from the the bottom left.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef | 
|---|
getJintegraDispatch, release | 
| Constructor Detail | 
|---|
public DynamicGlyph(Object obj)
             throws IOException
obj to DynamicGlyph.   * 
DynamicGlyph o = (DynamicGlyph)obj; // will not work 
 
DynamicGlyph o = new DynamicGlyph(obj); // Use this constructor instead  
    * @param     obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
  DynamicGlyph theDynamicGlyph = (DynamicGlyph) obj;| Method Detail | 
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int getGlyphType()
                 throws IOException,
                        AutomationException
Indicates whether the Dynamic Glyph is of type Marker, Text, Line, or Fill.
getGlyphType in interface IDynamicGlyphIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryDimensions(float[] width,
                            float[] height)
                     throws IOException,
                            AutomationException
Retrieves the Dynamic Glyph’s actual size in pixels.
For Dynamic Text Glyphs, the height is the height of the font, and the width is the width of the space character. Use IDynamicSymbolProperties2.GetTextSize method to get the actual pixel size of a specific string (with a specific Dynamic Text Symbol).
queryDimensions in interface IDynamicGlyphwidth - The width  (in/out: use single element array)height - The height  (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getAnchor(float[] xAnchor,
                      float[] yAnchor)
               throws IOException,
                      AutomationException
The anchor is an offset value, relative to the glyph’s lower left corner, that defines the anchor point (hot point) of the glyph. For example, for a glyph that represents an arrow, use the offset from the lower left glyph to the arrow’s base point as the anchor of the glyph.
The X values grow towards the right, and the Y values grow towards the top.
getAnchor in interface IDynamicGlyphxAnchor - The xAnchor  (in/out: use single element array)yAnchor - The yAnchor  (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAnchor(float xAnchor,
                      float yAnchor)
               throws IOException,
                      AutomationException
The anchor is an offset value, relative to the glyph’s lower left corner, that defines the anchor point (hot point) of the glyph. For example, for a glyph that represents an arrow, use the offset from the lower left glyph to the arrow’s base point as the anchor of the glyph.
The X values grow towards the right, and the Y values grow towards the top.
setAnchor in interface IDynamicGlyphxAnchor - The xAnchor  (in)yAnchor - The yAnchor  (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 | ||||||||