com.esri.arcgis.carto
Class BasicPlacedObject

java.lang.Object
  extended by com.esri.arcgis.carto.BasicPlacedObject
All Implemented Interfaces:
IPlacedObject, IPlacedObject2, IPlacedObject3, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class BasicPlacedObject
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IPlacedObject, IPlacedObject2, IPlacedObject3

COM Class 'BasicPlacedObject'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'Placed object handed out by the standard label engine.' 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.carto.IPlacedObject
IID, IID3141f2f2_38e2_11d1_8809_080009ec732a, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IPlacedObject2
IID, IIDbddfa62b_1810_4e9c_85c3_2c2b50ea70b6, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IPlacedObject3
IID, IID2f68dd01_d7e6_4e21_8ef9_14165ef00552, xxDummy
 
Constructor Summary
BasicPlacedObject(java.lang.Object obj)
          Construct a BasicPlacedObject 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
 double getAngle()
          Angle for the placed object.
 _WKSPoint getAreaCentroid()
          The centroid of the polygon shape.
 int getClassIndex()
          Class index of the placed object.
 IGeometry getControlShape()
          Control shape of the placed object.
 _WKSPoint getControlShapeEndPoint()
          The end point of the control shape.
 int getFeatureId()
          FeatureID associated with the placed object.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getLabel()
          Labeling string for the placed object.
 double getLabelHeight()
          Height of the label.
 double getLabelWidth()
          Width of the label.
 int getObjectType()
          Type of the placed object.
 int getPlacementCode()
          Code that indicates success/failure of placement.
 java.lang.String getPlacementMessage()
          Placement result message.
 int hashCode()
          the hashcode for this object
 boolean isLabelInsidePolygon()
          Indicates whether the label is completely inside the polygons.
 void release()
          Release a BasicPlacedObject.
 void setClassIndex(int index)
          Class index of the placed object.
 void setControlShape(IGeometry shape)
          Control shape of the placed object.
 void setFeatureId(int featureId)
          FeatureID associated with the placed object.
 void setLabel(java.lang.String label)
          Labeling string for the placed object.
 void setObjectType(int type)
          Type of the placed object.
 void setPlacementCode(int placementCode)
          Code that indicates success/failure of placement.
 void setPlacementMessage(java.lang.String message)
          Placement result message.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPlacedObject

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

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

Throws:
java.io.IOException - if there are interop problems BasicPlacedObject theBasicPlacedObject = (BasicPlacedObject) 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 BasicPlacedObject.

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 IPlacedObject
Specified by:
getObjectType in interface IPlacedObject2
Specified by:
getObjectType in interface IPlacedObject3
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 IPlacedObject
Specified by:
setObjectType in interface IPlacedObject2
Specified by:
setObjectType in interface IPlacedObject3
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.

getFeatureId

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

Specified by:
getFeatureId in interface IPlacedObject
Specified by:
getFeatureId in interface IPlacedObject2
Specified by:
getFeatureId in interface IPlacedObject3
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 object.

Specified by:
setFeatureId in interface IPlacedObject
Specified by:
setFeatureId in interface IPlacedObject2
Specified by:
setFeatureId in interface IPlacedObject3
Parameters:
featureId - The featureId (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getControlShape

public IGeometry getControlShape()
                          throws java.io.IOException,
                                 AutomationException
Control shape of the placed object.

Specified by:
getControlShape in interface IPlacedObject
Specified by:
getControlShape in interface IPlacedObject2
Specified by:
getControlShape in interface IPlacedObject3
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.

setControlShape

public void setControlShape(IGeometry shape)
                     throws java.io.IOException,
                            AutomationException
Control shape of the placed object.

Specified by:
setControlShape in interface IPlacedObject
Specified by:
setControlShape in interface IPlacedObject2
Specified by:
setControlShape in interface IPlacedObject3
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.

getLabel

public java.lang.String getLabel()
                          throws java.io.IOException,
                                 AutomationException
Labeling string for the placed object.

Specified by:
getLabel in interface IPlacedObject
Specified by:
getLabel in interface IPlacedObject2
Specified by:
getLabel in interface IPlacedObject3
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
Labeling string for the placed object.

Specified by:
setLabel in interface IPlacedObject
Specified by:
setLabel in interface IPlacedObject2
Specified by:
setLabel in interface IPlacedObject3
Parameters:
label - The label (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 of the placed object.

Specified by:
getClassIndex in interface IPlacedObject
Specified by:
getClassIndex in interface IPlacedObject2
Specified by:
getClassIndex in interface IPlacedObject3
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 of the placed object.

Specified by:
setClassIndex in interface IPlacedObject
Specified by:
setClassIndex in interface IPlacedObject2
Specified by:
setClassIndex in interface IPlacedObject3
Parameters:
index - The index (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 IPlacedObject
Specified by:
getPlacementCode in interface IPlacedObject2
Specified by:
getPlacementCode in interface IPlacedObject3
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 IPlacedObject
Specified by:
setPlacementCode in interface IPlacedObject2
Specified by:
setPlacementCode in interface IPlacedObject3
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.

getPlacementMessage

public java.lang.String getPlacementMessage()
                                     throws java.io.IOException,
                                            AutomationException
Placement result message.

Specified by:
getPlacementMessage in interface IPlacedObject
Specified by:
getPlacementMessage in interface IPlacedObject2
Specified by:
getPlacementMessage in interface IPlacedObject3
Returns:
The message
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPlacementMessage

public void setPlacementMessage(java.lang.String message)
                         throws java.io.IOException,
                                AutomationException
Placement result message.

Specified by:
setPlacementMessage in interface IPlacedObject
Specified by:
setPlacementMessage in interface IPlacedObject2
Specified by:
setPlacementMessage in interface IPlacedObject3
Parameters:
message - The message (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAngle

public double getAngle()
                throws java.io.IOException,
                       AutomationException
Angle for the placed object.

Specified by:
getAngle in interface IPlacedObject
Specified by:
getAngle in interface IPlacedObject2
Specified by:
getAngle in interface IPlacedObject3
Returns:
The angle
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getControlShapeEndPoint

public _WKSPoint getControlShapeEndPoint()
                                  throws java.io.IOException,
                                         AutomationException
The end point of the control shape.

Specified by:
getControlShapeEndPoint in interface IPlacedObject2
Specified by:
getControlShapeEndPoint in interface IPlacedObject3
Returns:
A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLabelWidth

public double getLabelWidth()
                     throws java.io.IOException,
                            AutomationException
Width of the label.

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

getLabelHeight

public double getLabelHeight()
                      throws java.io.IOException,
                             AutomationException
Height of the label.

Specified by:
getLabelHeight in interface IPlacedObject2
Specified by:
getLabelHeight in interface IPlacedObject3
Returns:
The height
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAreaCentroid

public _WKSPoint getAreaCentroid()
                          throws java.io.IOException,
                                 AutomationException
The centroid of the polygon shape.

Specified by:
getAreaCentroid in interface IPlacedObject3
Returns:
A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isLabelInsidePolygon

public boolean isLabelInsidePolygon()
                             throws java.io.IOException,
                                    AutomationException
Indicates whether the label is completely inside the polygons.

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