|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.LabelEnvironment
public class LabelEnvironment
An object that works with the labeling environment.
Constructor Summary | |
---|---|
LabelEnvironment()
Constructs a LabelEnvironment using ArcGIS Engine. |
|
LabelEnvironment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. LabelEnvironment theLabelEnvironment = (LabelEnvironment) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
ILabelStyle |
getLabelStyle()
Label style. |
int |
getLabelStyleMethod()
The label style method. |
int |
getPlacement()
The label placement method. |
int |
hashCode()
the hashcode for this object |
void |
setLabelStyleByRef(ILabelStyle labelStyle)
Label style. |
void |
setLabelStyleMethod(int method)
The label style method. |
void |
setPlacement(int placement)
The label placement method. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public LabelEnvironment() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic LabelEnvironment(Object obj) throws IOException
LabelEnvironment theLabelEnvironment = (LabelEnvironment) obj;
obj
to LabelEnvironment
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setLabelStyleMethod(int method) throws IOException, AutomationException
setLabelStyleMethod
in interface ILabelEnvironment
method
- A com.esri.arcgis.carto.esriLabelEnvLabelStyleMethod constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLabelStyleMethod() throws IOException, AutomationException
When the Label tool is used, this property determines whether the label style (which includes label placement properties and a text symbol) is chosen by the user on the Labeling dialog, or comes from the labeling properties of the layer being labeled.
If ILabelEnvironment::Placement is set to esriPlaceWhereClick, then no label placement properties are used, and only the text symbol is taken from either the chosen label style or the layer's labeling properties.
getLabelStyleMethod
in interface ILabelEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPlacement(int placement) throws IOException, AutomationException
setPlacement
in interface ILabelEnvironment
placement
- A com.esri.arcgis.carto.esriLabelEnvPlacement constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPlacement() throws IOException, AutomationException
When the Label tool is used, this property determines whether new labels are placed where the user clicks, or whether label placement properties are used.
getPlacement
in interface ILabelEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabelStyleByRef(ILabelStyle labelStyle) throws IOException, AutomationException
setLabelStyleByRef
in interface ILabelEnvironment
labelStyle
- A reference to a com.esri.arcgis.carto.ILabelStyle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILabelStyle getLabelStyle() throws IOException, AutomationException
This property is only used if ILabelEnvironment::LabelStyleMethod is set to esriChooseLabelStyle.
getLabelStyle
in interface ILabelEnvironment
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 |