com.esri.arcgis.carto
Class DotDensityRenderer

java.lang.Object
  extended by com.esri.arcgis.carto.DotDensityRenderer
All Implemented Interfaces:
IDataExclusion, IDataExclusion2, IDotDensityRenderer, IDotDensityRenderer2, IDotDensityUIRenderer, IExportSupport, IFeatureRenderer, ILegendInfo, IRendererFields, com.esri.arcgis.interop.RemoteObjRef, IPersist, IPersistStream, java.io.Externalizable, java.io.Serializable

public class DotDensityRenderer
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IDataExclusion, IDataExclusion2, IDotDensityRenderer, IDotDensityRenderer2, IDotDensityUIRenderer, IFeatureRenderer, ILegendInfo, IPersist, IPersistStream, IRendererFields, IExportSupport, java.io.Externalizable

COM Class 'DotDensityRenderer'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'A dot density renderer.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from interface com.esri.arcgis.carto.IDataExclusion
IID, IID3d961d65_fc94_11d1_aaca_00c04fa334b3, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IDataExclusion2
IID, IID765a9a92_f6fa_4501_a888_a793ad33e023, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IDotDensityRenderer2
IID, IIDf4f653c0_fca7_4a4c_83eb_d5b6c625e2ce, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IDotDensityRenderer
IID9c7776b7_0421_11d4_9f7c_00c04f6bc709
 
Fields inherited from interface com.esri.arcgis.carto.IDotDensityUIRenderer
IID, IID90e8800d_148d_11d4_9f7d_00c04f6bc709, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersistStream
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersist
IID0000010c_0000_0000_c000_000000000046
 
Fields inherited from interface com.esri.arcgis.carto.IRendererFields
IID, IID9c7776b8_0421_11d4_9f7c_00c04f6bc709, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IExportSupport
IID, IIDf6448010_3cc8_435e_b042_540e9a328f3b, xxDummy
 
Constructor Summary
DotDensityRenderer()
          Constructs a DotDensityRenderer using ArcGIS Engine.
DotDensityRenderer(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DotDensityRenderer theDotDensityRenderer = (DotDensityRenderer) obj;
 
Method Summary
 void addField(java.lang.String name, java.lang.String alias)
          Adds a field to the renderer.
 boolean canRender(IFeatureClass featClass, IDisplay display)
          Indicates if the specified feature class can be rendered on the given display.
 void clearFields()
          Removes all fields from the renderer.
 void createLegend()
          Creates the legend.
 void deleteField(java.lang.String name)
          Removes the specified field from the renderer.
 void disconnect()
          Disconnects the data from the renderer.
 void draw(IFeatureCursor cursor, int drawPhase, IDisplay display, ITrackCancel trackCancel)
          Draws features from the specified cursor on the given display.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void getClassID(GUID[] pClassID)
          getClassID
static java.lang.String getClsid()
          getClsid.
 java.lang.String getColorScheme()
          Color scheme, (user interface property only).
 IFeatureLayer getControlLayer()
          Control layer used for masking.
 IDotDensityFillSymbol getDotDensitySymbol()
          The dot density symbol.
 double getDotValue()
          Value of each dot.
 java.lang.String getExclusionClause()
          Data exclusion where clause.
 java.lang.String getExclusionDescription()
          Description for the excluded data.
 java.lang.String getExclusionLabel()
          Label for the excluded data.
 ISymbol getExclusionSymbol()
          Symbol used to draw excluded values.
 java.lang.String getField(int index)
          Field at the specified index.
 java.lang.String getFieldAlias(int index)
          Field alias at the specified index.
 int getFieldCount()
          Number of fields.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 ILegendGroup getLegendGroup(int index)
          Legend group at the specified index.
 int getLegendGroupCount()
          Number of legend groups contained by the object.
 ILegendItem getLegendItem()
          Optional.
 int getMaintainDensityBy()
          Indicates if density is preserved by dot size or dot value.
 double getMaxDensity()
          Maximum density.
 double getMaxDensityArea()
          Area in map units of the polygon with maximum density.
 double getMeanArea()
          Mean area in map units.
 double getMeanDensity()
          Mean density.
 double getMinDensity()
          Minimum density.
 double getMinDensityArea()
          Area in map units of the polygon with minimum density.
 void getSizeMax(_ULARGE_INTEGER[] pcbSize)
          getSizeMax
 ISymbol getSymbolByFeature(IFeature feature)
          Symbol used to draw the specified feature.
 int hashCode()
          the hashcode for this object
 void isDirty()
          isDirty
 boolean isMaintainSize()
          Indicates if dot size is preserved when zooming (the alternative is that density is preserved).
 boolean isRenderPhase(int drawPhase)
          Indicates if renderer uses the specified draw phase.
 boolean isShowExclusionClass()
          Indicates if the exclusion symbol is used.
 boolean isSymbolsAreGraduated()
          Indicates if symbols are graduated.
 void load(IStream pstm)
          load
 void prepareFilter(IFeatureClass fc, IQueryFilter queryFilter)
          Prepares the query filter for the rendering process.
 void readExternal(java.io.ObjectInput in)
           
 void release()
          Release a DotDensityRenderer.
 void save(IStream pstm, int fClearDirty)
          save
 void setColorScheme(java.lang.String name)
          Color scheme, (user interface property only).
 void setControlLayerByRef(IFeatureLayer layer)
          Control layer used for masking.
 void setDotDensitySymbolByRef(IDotDensityFillSymbol symbol)
          The dot density symbol.
 void setDotValue(double value)
          Value of each dot.
 void setExclusionClause(java.lang.String clause)
          Data exclusion where clause.
 void setExclusionDescription(java.lang.String text)
          Description for the excluded data.
 void setExclusionLabel(java.lang.String label)
          Label for the excluded data.
 void setExclusionSetByRef(IFeatureIDSet rhs1)
          An object reference to a temporary drawing exclusion set.
 void setExclusionSymbol(ISymbol symbol)
          Symbol used to draw excluded values.
 void setExportInfoByRef(IFeatureExportInfoGenerator rhs1)
          The helper oject to generate export information.
 void setField(int index, java.lang.String name)
          Field at the specified index.
 void setFieldAlias(int index, java.lang.String name)
          Field alias at the specified index.
 void setMaintainDensityBy(int eMaintainDensityBy)
          Indicates if density is preserved by dot size or dot value.
 void setMaintainSize(boolean flag)
          Indicates if dot size is preserved when zooming (the alternative is that density is preserved).
 void setMaxDensity(double value)
          Maximum density.
 void setMaxDensityArea(double value)
          Area in map units of the polygon with maximum density.
 void setMeanArea(double value)
          Mean area in map units.
 void setMeanDensity(double value)
          Mean density.
 void setMinDensity(double value)
          Minimum density.
 void setMinDensityArea(double value)
          Area in map units of the polygon with minimum density.
 void setShowExclusionClass(boolean show)
          Indicates if the exclusion symbol is used.
 void setSymbolsAreGraduated(boolean symbolsAreGraduated)
          Indicates if symbols are graduated.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DotDensityRenderer

public DotDensityRenderer()
                   throws java.io.IOException,
                          java.net.UnknownHostException
Constructs a DotDensityRenderer using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

DotDensityRenderer

public DotDensityRenderer(java.lang.Object obj)
                   throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DotDensityRenderer theDotDensityRenderer = (DotDensityRenderer) obj;

Construct a DotDensityRenderer using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DotDensityRenderer.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a DotDensityRenderer.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getExclusionClause

public java.lang.String getExclusionClause()
                                    throws java.io.IOException,
                                           AutomationException
Data exclusion where clause.

Specified by:
getExclusionClause in interface IDataExclusion
Returns:
The clause
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExclusionClause

public void setExclusionClause(java.lang.String clause)
                        throws java.io.IOException,
                               AutomationException
Data exclusion where clause.

Specified by:
setExclusionClause in interface IDataExclusion
Parameters:
clause - The clause (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExclusionSymbol

public ISymbol getExclusionSymbol()
                           throws java.io.IOException,
                                  AutomationException
Symbol used to draw excluded values.

Specified by:
getExclusionSymbol in interface IDataExclusion
Returns:
A reference to a com.esri.arcgis.display.ISymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExclusionSymbol

public void setExclusionSymbol(ISymbol symbol)
                        throws java.io.IOException,
                               AutomationException
Symbol used to draw excluded values.

Specified by:
setExclusionSymbol in interface IDataExclusion
Parameters:
symbol - A reference to a com.esri.arcgis.display.ISymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isShowExclusionClass

public boolean isShowExclusionClass()
                             throws java.io.IOException,
                                    AutomationException
Indicates if the exclusion symbol is used.

Specified by:
isShowExclusionClass in interface IDataExclusion
Returns:
The show
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setShowExclusionClass

public void setShowExclusionClass(boolean show)
                           throws java.io.IOException,
                                  AutomationException
Indicates if the exclusion symbol is used.

Specified by:
setShowExclusionClass in interface IDataExclusion
Parameters:
show - The show (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExclusionLabel

public java.lang.String getExclusionLabel()
                                   throws java.io.IOException,
                                          AutomationException
Label for the excluded data.

Specified by:
getExclusionLabel in interface IDataExclusion
Returns:
The label
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExclusionLabel

public void setExclusionLabel(java.lang.String label)
                       throws java.io.IOException,
                              AutomationException
Label for the excluded data.

Specified by:
setExclusionLabel in interface IDataExclusion
Parameters:
label - The label (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExclusionDescription

public java.lang.String getExclusionDescription()
                                         throws java.io.IOException,
                                                AutomationException
Description for the excluded data.

Specified by:
getExclusionDescription in interface IDataExclusion
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExclusionDescription

public void setExclusionDescription(java.lang.String text)
                             throws java.io.IOException,
                                    AutomationException
Description for the excluded data.

Specified by:
setExclusionDescription in interface IDataExclusion
Parameters:
text - The text (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

disconnect

public void disconnect()
                throws java.io.IOException,
                       AutomationException
Disconnects the data from the renderer.

Specified by:
disconnect in interface IDataExclusion2
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDotDensitySymbol

public IDotDensityFillSymbol getDotDensitySymbol()
                                          throws java.io.IOException,
                                                 AutomationException
The dot density symbol.

Specified by:
getDotDensitySymbol in interface IDotDensityRenderer
Returns:
A reference to a com.esri.arcgis.display.IDotDensityFillSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDotDensitySymbolByRef

public void setDotDensitySymbolByRef(IDotDensityFillSymbol symbol)
                              throws java.io.IOException,
                                     AutomationException
The dot density symbol.

Specified by:
setDotDensitySymbolByRef in interface IDotDensityRenderer
Parameters:
symbol - A reference to a com.esri.arcgis.display.IDotDensityFillSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDotValue

public double getDotValue()
                   throws java.io.IOException,
                          AutomationException
Value of each dot.

Specified by:
getDotValue in interface IDotDensityRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDotValue

public void setDotValue(double value)
                 throws java.io.IOException,
                        AutomationException
Value of each dot.

Specified by:
setDotValue in interface IDotDensityRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getControlLayer

public IFeatureLayer getControlLayer()
                              throws java.io.IOException,
                                     AutomationException
Control layer used for masking.

Specified by:
getControlLayer in interface IDotDensityRenderer
Returns:
A reference to a com.esri.arcgis.carto.IFeatureLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setControlLayerByRef

public void setControlLayerByRef(IFeatureLayer layer)
                          throws java.io.IOException,
                                 AutomationException
Control layer used for masking.

Specified by:
setControlLayerByRef in interface IDotDensityRenderer
Parameters:
layer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getColorScheme

public java.lang.String getColorScheme()
                                throws java.io.IOException,
                                       AutomationException
Color scheme, (user interface property only).

Specified by:
getColorScheme in interface IDotDensityRenderer
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setColorScheme

public void setColorScheme(java.lang.String name)
                    throws java.io.IOException,
                           AutomationException
Color scheme, (user interface property only).

Specified by:
setColorScheme in interface IDotDensityRenderer
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createLegend

public void createLegend()
                  throws java.io.IOException,
                         AutomationException
Creates the legend. Call after all properties are set.

Specified by:
createLegend in interface IDotDensityRenderer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaintainSize

public void setMaintainSize(boolean flag)
                     throws java.io.IOException,
                            AutomationException
Indicates if dot size is preserved when zooming (the alternative is that density is preserved).

Specified by:
setMaintainSize in interface IDotDensityRenderer
Parameters:
flag - The flag (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isMaintainSize

public boolean isMaintainSize()
                       throws java.io.IOException,
                              AutomationException
Indicates if dot size is preserved when zooming (the alternative is that density is preserved).

Specified by:
isMaintainSize in interface IDotDensityRenderer
Returns:
The flag
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaintainDensityBy

public void setMaintainDensityBy(int eMaintainDensityBy)
                          throws java.io.IOException,
                                 AutomationException
Indicates if density is preserved by dot size or dot value.

Specified by:
setMaintainDensityBy in interface IDotDensityRenderer2
Parameters:
eMaintainDensityBy - A com.esri.arcgis.carto.esriMaintainDensityBy constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaintainDensityBy

public int getMaintainDensityBy()
                         throws java.io.IOException,
                                AutomationException
Indicates if density is preserved by dot size or dot value.

Specified by:
getMaintainDensityBy in interface IDotDensityRenderer2
Returns:
A com.esri.arcgis.carto.esriMaintainDensityBy constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMinDensity

public double getMinDensity()
                     throws java.io.IOException,
                            AutomationException
Minimum density.

Specified by:
getMinDensity in interface IDotDensityUIRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMinDensity

public void setMinDensity(double value)
                   throws java.io.IOException,
                          AutomationException
Minimum density.

Specified by:
setMinDensity in interface IDotDensityUIRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMinDensityArea

public double getMinDensityArea()
                         throws java.io.IOException,
                                AutomationException
Area in map units of the polygon with minimum density.

Specified by:
getMinDensityArea in interface IDotDensityUIRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMinDensityArea

public void setMinDensityArea(double value)
                       throws java.io.IOException,
                              AutomationException
Area in map units of the polygon with minimum density.

Specified by:
setMinDensityArea in interface IDotDensityUIRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMeanDensity

public double getMeanDensity()
                      throws java.io.IOException,
                             AutomationException
Mean density.

Specified by:
getMeanDensity in interface IDotDensityUIRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMeanDensity

public void setMeanDensity(double value)
                    throws java.io.IOException,
                           AutomationException
Mean density.

Specified by:
setMeanDensity in interface IDotDensityUIRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMeanArea

public double getMeanArea()
                   throws java.io.IOException,
                          AutomationException
Mean area in map units.

Specified by:
getMeanArea in interface IDotDensityUIRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMeanArea

public void setMeanArea(double value)
                 throws java.io.IOException,
                        AutomationException
Mean area in map units.

Specified by:
setMeanArea in interface IDotDensityUIRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxDensity

public double getMaxDensity()
                     throws java.io.IOException,
                            AutomationException
Maximum density.

Specified by:
getMaxDensity in interface IDotDensityUIRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxDensity

public void setMaxDensity(double value)
                   throws java.io.IOException,
                          AutomationException
Maximum density.

Specified by:
setMaxDensity in interface IDotDensityUIRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxDensityArea

public double getMaxDensityArea()
                         throws java.io.IOException,
                                AutomationException
Area in map units of the polygon with maximum density.

Specified by:
getMaxDensityArea in interface IDotDensityUIRenderer
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxDensityArea

public void setMaxDensityArea(double value)
                       throws java.io.IOException,
                              AutomationException
Area in map units of the polygon with maximum density.

Specified by:
setMaxDensityArea in interface IDotDensityUIRenderer
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canRender

public boolean canRender(IFeatureClass featClass,
                         IDisplay display)
                  throws java.io.IOException,
                         AutomationException
Indicates if the specified feature class can be rendered on the given display.

Remarks

If the renderer is not applicable to a feature layer, then it can return False in response to a CanRender method. For example, the dot-density renderer is only applicable to polygon feature layers and returns False in response to other feature layers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
canRender in interface IFeatureRenderer
Parameters:
featClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
display - A reference to a com.esri.arcgis.display.IDisplay (in)
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

prepareFilter

public void prepareFilter(IFeatureClass fc,
                          IQueryFilter queryFilter)
                   throws java.io.IOException,
                          AutomationException
Prepares the query filter for the rendering process.

Remarks

This method is called prior to the Draw method and gives the renderer a chance to adjust the query filter to incorporate extra constraints. For example, if a particular field is required for the renderer, it would add this field to the filter to ensure it is accessible during the Draw method.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
prepareFilter in interface IFeatureRenderer
Parameters:
fc - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
queryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

draw

public void draw(IFeatureCursor cursor,
                 int drawPhase,
                 IDisplay display,
                 ITrackCancel trackCancel)
          throws java.io.IOException,
                 AutomationException
Draws features from the specified cursor on the given display.

Remarks

This method is typically called by the framework to renderer features to a display. This could be in response to a refresh on the map. This method typically iterates through all the features and renders each feature with an appropriate symbol.

An individual feature is typically drawn by calling the Draw method on the feature's IFeatureDraw with the symbol created by the renderer. However, when writing a custom feature renderer you can draw anything you want using a number of different methods. To learn more see the section on writing a custom feature renderer in Extending ArcObjects.

To allow complex rendering to be canceled halfway through a draw, the renderer typically checks the TrackCancel object after each feature or set of features. If a cancel action has occurred, the renderer will exit.

There are three drawing phases: selection, annotation, and geography, and this method can be called by the framework up to three times. With the exception of the selection phase, this method will only be called for a particular draw phase if the call by the framework to RenderPhase returns true for that phase.

Feature renderers typically only draw features during the geography phase, though in some cases features are drawn in the annotation phase. Take for example a case where proportional symbols are drawn for polygon features. The ProportionalSymbolRenderer draws the background fill symbol during the geography phase and the proportionally sized marker symbol during the annotation phase.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
draw in interface IFeatureRenderer
Parameters:
cursor - A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)
drawPhase - A com.esri.arcgis.system.esriDrawPhase constant (in)
display - A reference to a com.esri.arcgis.display.IDisplay (in)
trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSymbolByFeature

public ISymbol getSymbolByFeature(IFeature feature)
                           throws java.io.IOException,
                                  AutomationException
Symbol used to draw the specified feature.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getSymbolByFeature in interface IFeatureRenderer
Parameters:
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
Returns:
A reference to a com.esri.arcgis.display.ISymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isRenderPhase

public boolean isRenderPhase(int drawPhase)
                      throws java.io.IOException,
                             AutomationException
Indicates if renderer uses the specified draw phase.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isRenderPhase in interface IFeatureRenderer
Parameters:
drawPhase - A com.esri.arcgis.system.esriDrawPhase constant (in)
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExclusionSetByRef

public void setExclusionSetByRef(IFeatureIDSet rhs1)
                          throws java.io.IOException,
                                 AutomationException
An object reference to a temporary drawing exclusion set.

Description

The list of feature IDs to be excluded from drawing.

Remarks

Some feature renderers support IDataExclusion which allows you to build a where clause to exclude features.

Exclusion prevents features from drawing. To prevent features from drawing as well as from appearing in tables and in query results, set a layer definition query using IFeatureLayerDefinition.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setExclusionSetByRef in interface IFeatureRenderer
Parameters:
rhs1 - A reference to a com.esri.arcgis.carto.IFeatureIDSet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLegendGroupCount

public int getLegendGroupCount()
                        throws java.io.IOException,
                               AutomationException
Number of legend groups contained by the object.

Remarks

The number of legend groups is determined by the implementation of the renderer, consequently this property is read only. For example, SimpleRenderer has one group, while a BiUniqueValueRenderer has any number of groups.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getLegendGroupCount in interface ILegendInfo
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLegendGroup

public ILegendGroup getLegendGroup(int index)
                            throws java.io.IOException,
                                   AutomationException
Legend group at the specified index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLegendGroup in interface ILegendInfo
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.carto.ILegendGroup
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLegendItem

public ILegendItem getLegendItem()
                          throws java.io.IOException,
                                 AutomationException
Optional. Defines legend formatting for layer rendered with this object.

Remarks

Layer or renderer legend information is further formatted for display in ArcMap legends. A renderer can override this formatting by returning a LegendItem for this property. ESRI renderers typically do not return anything for this property. With this configuration, legend formatting becomes a user or developer choice on the legend object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getLegendItem in interface ILegendInfo
Returns:
A reference to a com.esri.arcgis.carto.ILegendItem
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSymbolsAreGraduated

public boolean isSymbolsAreGraduated()
                              throws java.io.IOException,
                                     AutomationException
Indicates if symbols are graduated.

Description

Indicates whether the symbols used for a layer or renderer's legend vary by size.

Remarks

For example the proportional symbol renderer returns True for this property.

You can use this property to distinguish between a layer symbolized with graduated color or graduated symbol type layer symbology. Both of these symbolizations use a ClassBreaksRenderer, but only a graduated symbol symbolization will return True for this property.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
isSymbolsAreGraduated in interface ILegendInfo
Returns:
The symbolsAreGraduated
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSymbolsAreGraduated

public void setSymbolsAreGraduated(boolean symbolsAreGraduated)
                            throws java.io.IOException,
                                   AutomationException
Indicates if symbols are graduated.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setSymbolsAreGraduated in interface ILegendInfo
Parameters:
symbolsAreGraduated - The symbolsAreGraduated (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassID

public void getClassID(GUID[] pClassID)
                throws java.io.IOException,
                       AutomationException
getClassID

Specified by:
getClassID in interface IPersist
Parameters:
pClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDirty

public void isDirty()
             throws java.io.IOException,
                    AutomationException
isDirty

Specified by:
isDirty in interface IPersistStream
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

load

public void load(IStream pstm)
          throws java.io.IOException,
                 AutomationException
load

Specified by:
load in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

save

public void save(IStream pstm,
                 int fClearDirty)
          throws java.io.IOException,
                 AutomationException
save

Specified by:
save in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
fClearDirty - The fClearDirty (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSizeMax

public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws java.io.IOException,
                       AutomationException
getSizeMax

Specified by:
getSizeMax in interface IPersistStream
Parameters:
pcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFieldCount

public int getFieldCount()
                  throws java.io.IOException,
                         AutomationException
Number of fields.

Specified by:
getFieldCount in interface IRendererFields
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getField

public java.lang.String getField(int index)
                          throws java.io.IOException,
                                 AutomationException
Field at the specified index.

Specified by:
getField in interface IRendererFields
Parameters:
index - The index (in)
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setField

public void setField(int index,
                     java.lang.String name)
              throws java.io.IOException,
                     AutomationException
Field at the specified index.

Specified by:
setField in interface IRendererFields
Parameters:
index - The index (in)
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFieldAlias

public java.lang.String getFieldAlias(int index)
                               throws java.io.IOException,
                                      AutomationException
Field alias at the specified index.

Specified by:
getFieldAlias in interface IRendererFields
Parameters:
index - The index (in)
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFieldAlias

public void setFieldAlias(int index,
                          java.lang.String name)
                   throws java.io.IOException,
                          AutomationException
Field alias at the specified index.

Specified by:
setFieldAlias in interface IRendererFields
Parameters:
index - The index (in)
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addField

public void addField(java.lang.String name,
                     java.lang.String alias)
              throws java.io.IOException,
                     AutomationException
Adds a field to the renderer.

Specified by:
addField in interface IRendererFields
Parameters:
name - The name (in)
alias - The alias (in, optional, pass null if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteField

public void deleteField(java.lang.String name)
                 throws java.io.IOException,
                        AutomationException
Removes the specified field from the renderer.

Specified by:
deleteField in interface IRendererFields
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearFields

public void clearFields()
                 throws java.io.IOException,
                        AutomationException
Removes all fields from the renderer.

Specified by:
clearFields in interface IRendererFields
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExportInfoByRef

public void setExportInfoByRef(IFeatureExportInfoGenerator rhs1)
                        throws java.io.IOException,
                               AutomationException
The helper oject to generate export information.

Specified by:
setExportInfoByRef in interface IExportSupport
Parameters:
rhs1 - A reference to a com.esri.arcgis.carto.IFeatureExportInfoGenerator (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException