com.esri.arcgis.maplex
Class MaplexPlacedLabel

java.lang.Object
  extended by com.esri.arcgis.maplex.MaplexPlacedLabel
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IMaplexPlacedLabel, java.io.Serializable

public class MaplexPlacedLabel
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IMaplexPlacedLabel

COM Class 'MaplexPlacedLabel'. Generated 3/19/2015 1:20:49 PM from 'C:\ArcGIS\COM\esriMaplex.olb'

Description 'A label created by the Maplex Overposter.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.maplex.IMaplexPlacedLabel
IID, IID20664808_b1b4_ad3d_90dd_08a009ec732a, xxDummy
 
Constructor Summary
MaplexPlacedLabel(java.lang.Object obj)
          Construct a MaplexPlacedLabel using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 IPoint getAnchorPoint()
          The anchor point used for text backgrounds with a callout.
 IPolygon getBounds()
          The bounds of the placed label.
 double getCharacterSpacing()
          The character spacing of the placed label.
 double getCharacterWidth()
          The character width of the placed label.
 int getClassIndex()
          Class index associated with the label.
 int getFeatureID()
          FeatureID associated with the placed label.
 int getHorizontalAlignment()
          The horizontal alignment for the placed label.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getLabel()
          Text string that represents the label.
 double getLeading()
          The leading value for stacked labels.
 int getObjectType()
          Type of the placed object.
 int getPlacementCode()
          Code that indicates success/failure of placement.
 double getSize()
          Text size of the placed label.
 IGeometry getTextPath()
          Text path geometry for positioning the text.
 int getTextPathType()
          Type of text path.
 double getWordSpacing()
          The word spacing of the placed label.
 int hashCode()
          the hashcode for this object
 boolean isCJKCharactersRotation()
          Indicates if CJK charcters are rotated.
 void release()
          Release a MaplexPlacedLabel.
 void setAnchorPoint(IPoint anchorPoint)
          The anchor point used for text backgrounds with a callout.
 void setBounds(IPolygon bounds)
          The bounds of the placed label.
 void setCharacterSpacing(double spacing)
          The character spacing of the placed label.
 void setCharacterWidth(double width)
          The character width of the placed label.
 void setCJKCharactersRotation(boolean rotation)
          Indicates if CJK charcters are rotated.
 void setClassIndex(int index)
          Class index associated with the label.
 void setFeatureID(int featureID)
          FeatureID associated with the placed label.
 void setHorizontalAlignment(int alignment)
          The horizontal alignment for the placed label.
 void setLabel(java.lang.String label)
          Text string that represents the label.
 void setLeading(double leading)
          The leading value for stacked labels.
 void setObjectType(int type)
          Type of the placed object.
 void setPlacementCode(int placementCode)
          Code that indicates success/failure of placement.
 void setSize(double size)
          Text size of the placed label.
 void setTextPath(IGeometry shape)
          Text path geometry for positioning the text.
 void setTextPathType(int textPathType)
          Type of text path.
 void setWordSpacing(double spacing)
          The word spacing of the placed label.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaplexPlacedLabel

public MaplexPlacedLabel(java.lang.Object obj)
                  throws java.io.IOException
Construct a MaplexPlacedLabel using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to MaplexPlacedLabel.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
MaplexPlacedLabel o = (MaplexPlacedLabel)obj; // will not work

MaplexPlacedLabel o = new MaplexPlacedLabel(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems MaplexPlacedLabel theMaplexPlacedLabel = (MaplexPlacedLabel) obj;
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a MaplexPlacedLabel.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getObjectType

public int getObjectType()
                  throws java.io.IOException,
                         AutomationException
Type of the placed object.

Specified by:
getObjectType in interface IMaplexPlacedLabel
Returns:
A com.esri.arcgis.carto.esriPlacedObjectType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setObjectType

public void setObjectType(int type)
                   throws java.io.IOException,
                          AutomationException
Type of the placed object.

Specified by:
setObjectType in interface IMaplexPlacedLabel
Parameters:
type - A com.esri.arcgis.carto.esriPlacedObjectType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLabel

public java.lang.String getLabel()
                          throws java.io.IOException,
                                 AutomationException
Text string that represents the label.

Specified by:
getLabel in interface IMaplexPlacedLabel
Returns:
The label
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLabel

public void setLabel(java.lang.String label)
              throws java.io.IOException,
                     AutomationException
Text string that represents the label.

Specified by:
setLabel in interface IMaplexPlacedLabel
Parameters:
label - The label (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTextPath

public IGeometry getTextPath()
                      throws java.io.IOException,
                             AutomationException
Text path geometry for positioning the text.

Specified by:
getTextPath in interface IMaplexPlacedLabel
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTextPath

public void setTextPath(IGeometry shape)
                 throws java.io.IOException,
                        AutomationException
Text path geometry for positioning the text.

Specified by:
setTextPath in interface IMaplexPlacedLabel
Parameters:
shape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTextPathType

public int getTextPathType()
                    throws java.io.IOException,
                           AutomationException
Type of text path.

Specified by:
getTextPathType in interface IMaplexPlacedLabel
Returns:
A com.esri.arcgis.maplex.esriMaplexTextPathType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTextPathType

public void setTextPathType(int textPathType)
                     throws java.io.IOException,
                            AutomationException
Type of text path.

Specified by:
setTextPathType in interface IMaplexPlacedLabel
Parameters:
textPathType - A com.esri.arcgis.maplex.esriMaplexTextPathType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeatureID

public int getFeatureID()
                 throws java.io.IOException,
                        AutomationException
FeatureID associated with the placed label.

Specified by:
getFeatureID in interface IMaplexPlacedLabel
Returns:
The featureID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFeatureID

public void setFeatureID(int featureID)
                  throws java.io.IOException,
                         AutomationException
FeatureID associated with the placed label.

Specified by:
setFeatureID in interface IMaplexPlacedLabel
Parameters:
featureID - The featureID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPlacementCode

public int getPlacementCode()
                     throws java.io.IOException,
                            AutomationException
Code that indicates success/failure of placement.

Specified by:
getPlacementCode in interface IMaplexPlacedLabel
Returns:
A com.esri.arcgis.carto.esriPlacementCode constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPlacementCode

public void setPlacementCode(int placementCode)
                      throws java.io.IOException,
                             AutomationException
Code that indicates success/failure of placement.

Specified by:
setPlacementCode in interface IMaplexPlacedLabel
Parameters:
placementCode - A com.esri.arcgis.carto.esriPlacementCode constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassIndex

public int getClassIndex()
                  throws java.io.IOException,
                         AutomationException
Class index associated with the label.

Specified by:
getClassIndex in interface IMaplexPlacedLabel
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setClassIndex

public void setClassIndex(int index)
                   throws java.io.IOException,
                          AutomationException
Class index associated with the label.

Specified by:
setClassIndex in interface IMaplexPlacedLabel
Parameters:
index - The index (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSize

public double getSize()
               throws java.io.IOException,
                      AutomationException
Text size of the placed label.

Specified by:
getSize in interface IMaplexPlacedLabel
Returns:
The size
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSize

public void setSize(double size)
             throws java.io.IOException,
                    AutomationException
Text size of the placed label.

Specified by:
setSize in interface IMaplexPlacedLabel
Parameters:
size - The size (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCharacterWidth

public double getCharacterWidth()
                         throws java.io.IOException,
                                AutomationException
The character width of the placed label.

Specified by:
getCharacterWidth in interface IMaplexPlacedLabel
Returns:
The width
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCharacterWidth

public void setCharacterWidth(double width)
                       throws java.io.IOException,
                              AutomationException
The character width of the placed label.

Specified by:
setCharacterWidth in interface IMaplexPlacedLabel
Parameters:
width - The width (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWordSpacing

public double getWordSpacing()
                      throws java.io.IOException,
                             AutomationException
The word spacing of the placed label.

Specified by:
getWordSpacing in interface IMaplexPlacedLabel
Returns:
The spacing
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWordSpacing

public void setWordSpacing(double spacing)
                    throws java.io.IOException,
                           AutomationException
The word spacing of the placed label.

Specified by:
setWordSpacing in interface IMaplexPlacedLabel
Parameters:
spacing - The spacing (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCharacterSpacing

public double getCharacterSpacing()
                           throws java.io.IOException,
                                  AutomationException
The character spacing of the placed label.

Specified by:
getCharacterSpacing in interface IMaplexPlacedLabel
Returns:
The spacing
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCharacterSpacing

public void setCharacterSpacing(double spacing)
                         throws java.io.IOException,
                                AutomationException
The character spacing of the placed label.

Specified by:
setCharacterSpacing in interface IMaplexPlacedLabel
Parameters:
spacing - The spacing (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLeading

public double getLeading()
                  throws java.io.IOException,
                         AutomationException
The leading value for stacked labels.

Specified by:
getLeading in interface IMaplexPlacedLabel
Returns:
The leading
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLeading

public void setLeading(double leading)
                throws java.io.IOException,
                       AutomationException
The leading value for stacked labels.

Specified by:
setLeading in interface IMaplexPlacedLabel
Parameters:
leading - The leading (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHorizontalAlignment

public int getHorizontalAlignment()
                           throws java.io.IOException,
                                  AutomationException
The horizontal alignment for the placed label.

Specified by:
getHorizontalAlignment in interface IMaplexPlacedLabel
Returns:
A com.esri.arcgis.display.esriTextHorizontalAlignment constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHorizontalAlignment

public void setHorizontalAlignment(int alignment)
                            throws java.io.IOException,
                                   AutomationException
The horizontal alignment for the placed label.

Specified by:
setHorizontalAlignment in interface IMaplexPlacedLabel
Parameters:
alignment - A com.esri.arcgis.display.esriTextHorizontalAlignment constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAnchorPoint

public IPoint getAnchorPoint()
                      throws java.io.IOException,
                             AutomationException
The anchor point used for text backgrounds with a callout.

Specified by:
getAnchorPoint in interface IMaplexPlacedLabel
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAnchorPoint

public void setAnchorPoint(IPoint anchorPoint)
                    throws java.io.IOException,
                           AutomationException
The anchor point used for text backgrounds with a callout.

Specified by:
setAnchorPoint in interface IMaplexPlacedLabel
Parameters:
anchorPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBounds

public IPolygon getBounds()
                   throws java.io.IOException,
                          AutomationException
The bounds of the placed label.

Specified by:
getBounds in interface IMaplexPlacedLabel
Returns:
A reference to a com.esri.arcgis.geometry.IPolygon
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBounds

public void setBounds(IPolygon bounds)
               throws java.io.IOException,
                      AutomationException
The bounds of the placed label.

Specified by:
setBounds in interface IMaplexPlacedLabel
Parameters:
bounds - A reference to a com.esri.arcgis.geometry.IPolygon (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCJKCharactersRotation

public void setCJKCharactersRotation(boolean rotation)
                              throws java.io.IOException,
                                     AutomationException
Indicates if CJK charcters are rotated.

Specified by:
setCJKCharactersRotation in interface IMaplexPlacedLabel
Parameters:
rotation - The rotation (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCJKCharactersRotation

public boolean isCJKCharactersRotation()
                                throws java.io.IOException,
                                       AutomationException
Indicates if CJK charcters are rotated.

Specified by:
isCJKCharactersRotation in interface IMaplexPlacedLabel
Returns:
The rotation
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.