|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ILabelEngineLayerProperties
Provides access to some of the main properties for labeling features.
// This example assumes a reference to an IGeoFeatureLayer(m_pFLayer)…// First, get AnnoationLayerPropertiesCollection from LayerIAnnotateLayerPropertiesCollection pAnnoLayerPropsColl =m_pFLayer.getAnnotationProperties();// Get the first property set in the collectionIAnnotateLayerProperties pAnnoLayerProps = null;pAnnoLayerProps =pAnnoLayerPropsColl.queryItem(0,pAnnoLayerProps,null,null);// Update LabelEngineLayerPropertiesILabelEngineLayerProperties pLabelEngineLayerProps =new ILabelEngineLayerPropertiesProxy(pAnnoLayerProps);
IAnnotateLayerProperties| Method Summary | |
|---|---|
IBasicOverposterLayerProperties |
getBasicOverposterLayerProperties()
The overposter properties, which specify how labels are placed relative to features. |
String |
getExpression()
The VBScript or JScript expression that evaluates and formats the label. |
IAnnotationExpressionEngine |
getExpressionParser()
The object that interprets the expression. |
double |
getOffset()
The offset between the label and the feature. |
ITextSymbol |
getSymbol()
The text symbol used to draw the label. |
int |
getSymbolID()
The ID of the group symbol used to draw the label. |
boolean |
isExpressionSimple()
Indicates if the expression is simple. |
void |
setBasicOverposterLayerPropertiesByRef(IBasicOverposterLayerProperties props)
The overposter properties, which specify how labels are placed relative to features. |
void |
setExpression(String expression)
The VBScript or JScript expression that evaluates and formats the label. |
void |
setExpressionParserByRef(IAnnotationExpressionEngine engine)
The object that interprets the expression. |
void |
setIsExpressionSimple(boolean simpleExpression)
Indicates if the expression is simple. |
void |
setOffset(double offset)
The offset between the label and the feature. |
void |
setSymbolByRef(ITextSymbol textSymbol)
The text symbol used to draw the label. |
void |
setSymbolID(int pSymbolID)
The ID of the group symbol used to draw the label. |
| Method Detail |
|---|
void setSymbolByRef(ITextSymbol textSymbol)
throws IOException,
AutomationException
textSymbol - A reference to a com.esri.arcgis.display.ITextSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
ITextSymbol getSymbol()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setSymbolID(int pSymbolID)
throws IOException,
AutomationException
pSymbolID - The pSymbolID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getSymbolID()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setOffset(double offset)
throws IOException,
AutomationException
offset - The offset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
double getOffset()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setBasicOverposterLayerPropertiesByRef(IBasicOverposterLayerProperties props)
throws IOException,
AutomationException
props - A reference to a com.esri.arcgis.carto.IBasicOverposterLayerProperties (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IBasicOverposterLayerProperties getBasicOverposterLayerProperties()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setExpression(String expression)
throws IOException,
AutomationException
//SIMPLE EXPRESSIONpLabelEngineLayerProps.setExpressionSimple(true);pLabelEngineLayerProps.setExpression("Ucase([Name])”);//ADVANCED EXPRESSIONpLabelEngineLayerProps.setExpressionSimple(false);//set the .Expression property = the entire functioncodepLabelEngineLayerProps.setExpression("Function FindLabel ([Name],[Area]) if [Area] > 1500 then FindLabel = UCase([Name]) else FindLabel = lcase([Name]) end if end function");
expression - The expression (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getExpression()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setIsExpressionSimple(boolean simpleExpression)
throws IOException,
AutomationException
simpleExpression - The simpleExpression (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isExpressionSimple()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setExpressionParserByRef(IAnnotationExpressionEngine engine)
throws IOException,
AutomationException
engine - A reference to a com.esri.arcgis.carto.IAnnotationExpressionEngine (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IAnnotationExpressionEngine getExpressionParser()
throws IOException,
AutomationException
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 | ||||||||