|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILegendFormat
Provides access to members that control formatting information for a legend.
ILegendFormat controls general legend formatting.
Legend class formatting from a LegendClassFormat object can override some properties set through this interface (DefaultPatchWidth, DefaultPathHeight, DefaultLinePatch, DefaultAreaPatch). The LegendClassFormat object comes from either the layer (ILegendClass.Format), or from the legend (ILegendItem.LegendClassFormat ).
For more on patches, see the help under IPatch.
The LegendFormat also manages the format of the legend's title. Set ShowTitle to False to hide the title. TitlePosition allows you to set on which side of the legend the title will be displayed.
The gap properties define the spacing between the different parts of the legend.
The Scale method is used to resize the legend.
Method Summary | |
---|---|
IAreaPatch |
getDefaultAreaPatch()
Area patch. |
ILinePatch |
getDefaultLinePatch()
Line patch. |
double |
getDefaultPatchHeight()
Patch height in points. |
double |
getDefaultPatchWidth()
Patch width in points. |
double |
getGroupGap()
Vertical distance in points between legend groups. |
double |
getHeadingGap()
Vertical distance in points between a heading and the legend graphics that follow. |
double |
getHorizontalItemGap()
Horizontal distance in points between legend item columns. |
double |
getHorizontalPatchGap()
Horizontal distance in points between a patch and the legend graphics before and after. |
double |
getLayerNameGap()
Vertical distance in points between layer names and the legend graphics that follow. |
double |
getTextGap()
Horizontal distance in points between labels and descriptions. |
double |
getTitleGap()
Vertical distance in points between title and first legend item. |
int |
getTitlePosition()
Legend title position. |
ITextSymbol |
getTitleSymbol()
Text symbol used to draw the legend title. |
double |
getVerticalItemGap()
Vertical distance in points between legend items. |
double |
getVerticalPatchGap()
Vertical distance in points between patches. |
boolean |
isShowTitle()
Indicates if title is visibile. |
void |
scale(double xScale,
double yScale)
Multiply all distances, gaps, and size property values on this interface by the specified scale factors. |
void |
setDefaultAreaPatch(IAreaPatch patch)
Area patch. |
void |
setDefaultLinePatch(ILinePatch patch)
Line patch. |
void |
setDefaultPatchHeight(double height)
Patch height in points. |
void |
setDefaultPatchWidth(double width)
Patch width in points. |
void |
setGroupGap(double gap)
Vertical distance in points between legend groups. |
void |
setHeadingGap(double gap)
Vertical distance in points between a heading and the legend graphics that follow. |
void |
setHorizontalItemGap(double gap)
Horizontal distance in points between legend item columns. |
void |
setHorizontalPatchGap(double gap)
Horizontal distance in points between a patch and the legend graphics before and after. |
void |
setLayerNameGap(double gap)
Vertical distance in points between layer names and the legend graphics that follow. |
void |
setShowTitle(boolean showTitle)
Indicates if title is visibile. |
void |
setTextGap(double gap)
Horizontal distance in points between labels and descriptions. |
void |
setTitleGap(double gap)
Vertical distance in points between title and first legend item. |
void |
setTitlePosition(int pos)
Legend title position. |
void |
setTitleSymbol(ITextSymbol symbol)
Text symbol used to draw the legend title. |
void |
setVerticalItemGap(double gap)
Vertical distance in points between legend items. |
void |
setVerticalPatchGap(double gap)
Vertical distance in points between patches. |
Method Detail |
---|
boolean isShowTitle() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setShowTitle(boolean showTitle) throws IOException, AutomationException
showTitle
- The showTitle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITextSymbol getTitleSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTitleSymbol(ITextSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ITextSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTitlePosition() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTitlePosition(int pos) throws IOException, AutomationException
pos
- A com.esri.arcgis.carto.esriRectanglePosition constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getTitleGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTitleGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getVerticalItemGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVerticalItemGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getHorizontalItemGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHorizontalItemGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getLayerNameGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerNameGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getGroupGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setGroupGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getHeadingGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHeadingGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getTextGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getVerticalPatchGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVerticalPatchGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getHorizontalPatchGap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHorizontalPatchGap(double gap) throws IOException, AutomationException
gap
- The gap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDefaultPatchWidth() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultPatchWidth(double width) throws IOException, AutomationException
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDefaultPatchHeight() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultPatchHeight(double height) throws IOException, AutomationException
height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILinePatch getDefaultLinePatch() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultLinePatch(ILinePatch patch) throws IOException, AutomationException
patch
- A reference to a com.esri.arcgis.carto.ILinePatch (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IAreaPatch getDefaultAreaPatch() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultAreaPatch(IAreaPatch patch) throws IOException, AutomationException
patch
- A reference to a com.esri.arcgis.carto.IAreaPatch (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void scale(double xScale, double yScale) throws IOException, AutomationException
xScale
- The xScale (in)yScale
- The yScale (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 |