|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChartRenderer
Provides access to members that control the drawing of chart symbols (pie, bar, stacked bar) on a map to represent features.
This interface provides access to members that control chart renderering of features.
The ChartRenderer requires a list of fields whose values are used to generate the pie slices, individual bars/columns, and stacked chart slices for each feature. Assign fields using IRendererFields. The chart type (pie, bar/column, or stacked bar/column) depends on the symbol assigned to ChartSymbol.
Set other properties for a ChartRenderer using this interface. Additionally, set properties for the chart symbol via IChartSymbol and also through interfaces specific to the chart symbol coclasses: PieChartSymbol, BarChartSymbol, and StackedChartSymbol. Also, use IPieChartRenderer to set properties specific to rendering with pie charts.
Method Summary | |
---|---|
void |
createLegend()
Creates the legend. |
ISymbol |
getBaseSymbol()
Background fill symbol, (used when chart symbols are drawn for polygon features). |
IChartSymbol |
getChartSymbol()
Chart symbol object. |
String |
getColorScheme()
Color scheme (user interface property only). |
double |
getFieldTotal(int index)
Field total for the field at the specified index. |
String |
getLabel()
Chart label. |
boolean |
isUseOverposter()
Indicates if the overposter is used for positioning the chart symbols. |
void |
setBaseSymbolByRef(ISymbol symbol)
Background fill symbol, (used when chart symbols are drawn for polygon features). |
void |
setChartSymbolByRef(IChartSymbol symbol)
Chart symbol object. |
void |
setColorScheme(String name)
Color scheme (user interface property only). |
void |
setFieldTotal(int index,
double total)
Field total for the field at the specified index. |
void |
setLabel(String name)
Chart label. |
void |
setUseOverposter(boolean flag)
Indicates if the overposter is used for positioning the chart symbols. |
Method Detail |
---|
double getFieldTotal(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFieldTotal(int index, double total) throws IOException, AutomationException
index
- The index (in)total
- The total (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IChartSymbol getChartSymbol() throws IOException, AutomationException
This is the chart symbol used by the renderer. The type of charts drawn will depend on the type of chart symbol set for this property. The choices are: PieChartSymbol, BarChartSymbol (for both bar and column charts), and StackedChartSymbol (for stacked bar and stacked column charts.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setChartSymbolByRef(IChartSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.IChartSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISymbol getBaseSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBaseSymbolByRef(ISymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getColorScheme() throws IOException, AutomationException
This property is a string that represents the name of a random color ramp used to determine the color of the pie slices, individual bars/columns, or stacked chart slices in the user interface. This property doesn't affect the display of charts on the map. If you are building a chart renderer through code, and assigning colors using a random color ramp to your slices, bars, or columns, then it's good practice to set this property to the name of the ramp you use. This just keeps the user interface up to date with your renderer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setColorScheme(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getLabel() throws IOException, AutomationException
This property provides access to the label corresponding to a pie slice, bar/column, or stacked slice. These items in turn correspond to a renderer field. Use IRendererFields to access these fields. By default a label will match its corresponding field name.
Labels appear in the legend entry for the renderer, and therefore appear in the ArcMap table of contents and can appear in legends depending on the LegendItem applied to the layer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabel(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseOverposter() throws IOException, AutomationException
This property indicates whether or not overposting logic is used to position charts on the map so that they do not overlap. The overposting logic employed is that of the standard ESRI labeling engine.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseOverposter(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void createLegend() throws IOException, AutomationException
Call this property after making changes to renderer properties. This updates the legend information for the renderer which appears in the ArcMap table of contents and can appear in the legend.
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 |