|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScaleDependentRenderer
Provides access to members that control a renderer which is composed of mulitple renderers, of which only one is enabled within a particular scale range.
This interface provides access to a renderer that contains other feature renderers, and it allows you to specify different renderers for different scale ranges. For example, when a user views a layer at its full extent, features can be drawn with one symbology, and when the user zooms in far enough, the symbology can change to another. You can specify as many renderers and scale ranges as you need.
For example, you could use this interface to set up a ScaleDependentRenderer when symbolizing a road network. Specify two different sub renderers and scale ranges. When zoomed out to the full extent, all of the roads could be drawn with the same line symbol -- using a SimpleRenderer. When zoomed in, the roads could be drawn based on road class by using a UniqueValueRenderer. With this renderer type, more important roads can be drawn with thicker, cased-line symbols.
The ScaleDependentRenderer is not available using the ArcGIS interface. To use this renderer you must use code to build and assign the renderer to a layer.
You can create scale dependent symbology using multiple layers, instead of multiple renderer assigned to a single layer through a ScaleDependentRenderer. For example, you can set up multiple feature layers and specify valid min and max display scales for each using IFeatureLayer::MinimumScale and IFeatureLayer::MaximumScale. This functionality is available using out of the box ArcGIS. To learn more see the ArcGIS desktop help.
Method Summary | |
---|---|
void |
addRenderer(IFeatureRenderer renderer)
Adds a renderer to the end of the list. |
double |
getBreak(int index)
Scale value at which to break for the specified index. |
Object |
getRenderer(int index)
The renderer at the specified index. |
int |
getRendererCount()
Number of renderers. |
void |
moveRenderer(IFeatureRenderer renderer,
int toIndex)
Moves renderer to the specified location in the list. |
void |
removeRenderer(IFeatureRenderer renderer)
Removes the specified renderer from the list. |
void |
setBreak(int index,
double breakValue)
Scale value at which to break for the specified index. |
void |
setRendererByRef(int index,
Object renderer)
The renderer at the specified index. |
void |
setRendererCount(int rendererCount)
Number of renderers. |
Method Detail |
---|
int getRendererCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRendererCount(int rendererCount) throws IOException, AutomationException
rendererCount
- The rendererCount (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getRenderer(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRendererByRef(int index, Object renderer) throws IOException, AutomationException
index
- The index (in)renderer
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getBreak(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBreak(int index, double breakValue) throws IOException, AutomationException
index
- The index (in)breakValue
- The breakValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addRenderer(IFeatureRenderer renderer) throws IOException, AutomationException
renderer
- A reference to a com.esri.arcgis.carto.IFeatureRenderer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeRenderer(IFeatureRenderer renderer) throws IOException, AutomationException
renderer
- A reference to a com.esri.arcgis.carto.IFeatureRenderer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void moveRenderer(IFeatureRenderer renderer, int toIndex) throws IOException, AutomationException
renderer
- A reference to a com.esri.arcgis.carto.IFeatureRenderer (in)toIndex
- The toIndex (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 |