|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapServerLegendPatch
Provides access to the Map Server Legend Patch Interface.
A legend patch is a rectangular image with an individual polygon, line or point symbol associated with a particular legend class. Use PatchHeight and PatchWidth to change the size of the legend patch. Use AreaPatch or LinePatch to change the shape of the symbol. If the goal is only to change the size of the patch and to retain the default shape, AreaPatch and LinePatch do not have to be set.
A MapServerLegendPatch object is a parameter of the GetLegendInfo method on IMapServer. Use IMapServerLegendPatch to customize the size of the legend patch and the shape of the symbol displayed on the patch. To export a single image of the legend use ExportLegend on IMapServerLayout.
Method Summary | |
---|---|
IAreaPatch |
getAreaPatch()
The area patch. |
ILinePatch |
getLinePatch()
The line patch. |
double |
getPatchHeight()
The patch height (in points). |
double |
getPatchResolution()
The patch resolution (dots per inch). |
double |
getPatchWidth()
The patch width (in points). |
void |
setAreaPatch(IAreaPatch patch)
The area patch. |
void |
setLinePatch(ILinePatch patch)
The line patch. |
void |
setPatchHeight(double heightPts)
The patch height (in points). |
void |
setPatchResolution(double dpi)
The patch resolution (dots per inch). |
void |
setPatchWidth(double widthPts)
The patch width (in points). |
Method Detail |
---|
double getPatchWidth() throws IOException, AutomationException
Changing the size of the legend patch will not change the size of the symbol. It only changes the size of the patch surrounding the symbol. The size of the symbol is determined by the properties of the symbol itself. The symbol will increase in size if AreaPatch or LinePatch are used. A size should be specified. Entering 0 may lead to unexpected results.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPatchWidth(double widthPts) throws IOException, AutomationException
widthPts
- The widthPts (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getPatchHeight() throws IOException, AutomationException
Changing the size of the legend patch will not change the size of the symbol. It only changes the size of the patch surrounding the symbol. The size of the symbol is determined by the properties of the symbol itself. The symbol will increase in size if AreaPatch or LinePatch are used. A size should be specified. Entering 0 may lead to unexpected results.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPatchHeight(double heightPts) throws IOException, AutomationException
heightPts
- The heightPts (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getPatchResolution() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPatchResolution(double dpi) throws IOException, AutomationException
dpi
- The dpi (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILinePatch getLinePatch() throws IOException, AutomationException
Assign a custom line shape to the symbol such as a zigzag line.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLinePatch(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 getAreaPatch() throws IOException, AutomationException
Assign a custom shape to the symbol such as a triangle or rounded polygon.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAreaPatch(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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |