|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.maplex.MaplexOverposter
public class MaplexOverposter
A label placement engine based on the Maplex label placement algorithms.
The MaplexOverposter is the Maplex equivalent of the BasicOverposter. An "overposter" is the ArcObjects representation of the label engine itself and is the lowest level at which the engines can be driven for multiple features.
com.esri.arcgis.maplex.MaplexExtension,
MaplexOverposter,
Serialized Form| Constructor Summary | |
|---|---|
MaplexOverposter()
Constructs a MaplexOverposter using ArcGIS Engine. |
|
MaplexOverposter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MaplexOverposter theMaplexOverposter = (MaplexOverposter) obj; |
|
| Method Summary | |
|---|---|
void |
addBarriers(int weight,
IGeometryCollection barriers)
Adds a barrier object that placed objects must avoid. |
int |
addClass(ILabelEngineLayerProperties props)
Adds a class to the overposter and specifies its properties. |
void |
addFeature(int classIndex,
IGeometry featureShape,
ISymbol featureSymbol,
int featureID,
String label,
double labelAngle,
int mapLevel)
Adds a feature with its associated label (optional) to the overposter. |
void |
addSymbol(int classIndex,
ISymbol symbol,
IGeometry geometry,
int featureID)
Adds a symbol to be placed. |
boolean |
equals(Object o)
Compare this object with another |
int |
getCapabilities(ILayer layer)
Overposter capabilities for the specified layer. |
int |
getClassCount()
The number of classes. |
static String |
getClsid()
getClsid. |
int |
getPlacedLabelCount()
The number of unplaced labels. |
IEnumMaplexPlacedLabel |
getPlacedLabels()
Enumeration of placed labels. |
int |
getUnplacedLabelCount()
The number of unplaced labels. |
IEnumMaplexPlacedLabel |
getUnplacedLabels()
Enumeration of unplaced labels. |
int |
hashCode()
the hashcode for this object |
void |
initialize(IEnvelope extent,
IDisplay display,
ISpatialReference spatialReference,
IMaplexOverposterProperties overposterProps,
ITrackCancel trackCancel)
Initializes the overposter for drawing into the specified area of the map display. |
void |
placeLabels()
Places labels using the overposter. |
void |
resetClasses()
Removes all classes from the overposter. |
| 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 MaplexOverposter()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public MaplexOverposter(Object obj)
throws IOException
MaplexOverposter theMaplexOverposter = (MaplexOverposter) obj;
obj to MaplexOverposter.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void initialize(IEnvelope extent,
IDisplay display,
ISpatialReference spatialReference,
IMaplexOverposterProperties overposterProps,
ITrackCancel trackCancel)
throws IOException,
AutomationException
initialize in interface IMaplexOverposterextent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)spatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)overposterProps - A reference to a com.esri.arcgis.carto.IMaplexOverposterProperties (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCapabilities(ILayer layer)
throws IOException,
AutomationException
getCapabilities in interface IMaplexOverposterlayer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getClassCount()
throws IOException,
AutomationException
The number of labeling classes which have been added to the overposter.
getClassCount in interface IMaplexOverposterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int addClass(ILabelEngineLayerProperties props)
throws IOException,
AutomationException
addClass in interface IMaplexOverposterprops - A reference to a com.esri.arcgis.carto.ILabelEngineLayerProperties (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void resetClasses()
throws IOException,
AutomationException
resetClasses in interface IMaplexOverposterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addFeature(int classIndex,
IGeometry featureShape,
ISymbol featureSymbol,
int featureID,
String label,
double labelAngle,
int mapLevel)
throws IOException,
AutomationException
addFeature in interface IMaplexOverposterclassIndex - The classIndex (in)featureShape - A reference to a com.esri.arcgis.geometry.IGeometry (in)featureSymbol - A reference to a com.esri.arcgis.display.ISymbol (in)featureID - The featureID (in)label - The label (in)labelAngle - The labelAngle (in)mapLevel - The mapLevel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addBarriers(int weight,
IGeometryCollection barriers)
throws IOException,
AutomationException
addBarriers in interface IMaplexOverposterweight - A com.esri.arcgis.carto.esriBasicOverposterWeight constant (in)barriers - A reference to a com.esri.arcgis.geometry.IGeometryCollection (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addSymbol(int classIndex,
ISymbol symbol,
IGeometry geometry,
int featureID)
throws IOException,
AutomationException
addSymbol in interface IMaplexOverposterclassIndex - The classIndex (in)symbol - A reference to a com.esri.arcgis.display.ISymbol (in)geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)featureID - The featureID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void placeLabels()
throws IOException,
AutomationException
Tells the MaplexOverposter to place the labels.
placeLabels in interface IMaplexOverposterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getPlacedLabelCount()
throws IOException,
AutomationException
getPlacedLabelCount in interface IMaplexOverposterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getUnplacedLabelCount()
throws IOException,
AutomationException
getUnplacedLabelCount in interface IMaplexOverposterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMaplexPlacedLabel getPlacedLabels()
throws IOException,
AutomationException
Returns an enumeration containing the labels (as MaplexPlacedLabels) for which Maplex has obtained satisfactory positions.
getPlacedLabels in interface IMaplexOverposterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumMaplexPlacedLabel getUnplacedLabels()
throws IOException,
AutomationException
Returns an enumeration containing the labels (as MaplexPlacedLabels) for which Maplex could not obtain satisfactory positions. The best possible position is given to each label anyway and its PlacementCode is set to esriPlacementUnplaced.
getUnplacedLabels in interface IMaplexOverposterIOException - 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 | ||||||||