com.esri.arcgis.carto
Class DimensionClassExtension

java.lang.Object
  extended by com.esri.arcgis.carto.DimensionClassExtension
All Implemented Interfaces:
IDimensionClassExtension, IDimensionClassExtension2, IClassExtension, IFeatureClassExtension, IObjectClassEvents, IObjectClassExtension, IPersistCustomFeaturesExtension, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable, java.util.EventListener

public class DimensionClassExtension
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IClassExtension, IDimensionClassExtension, IDimensionClassExtension2, IFeatureClassExtension, IObjectClassExtension, IObjectClassEvents, IPersistCustomFeaturesExtension

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

Description 'A class extension which contains all the style properties for a dimension feature class.' 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.IDimensionClassExtension
IID, IID6558fe26_da81_11d3_80ce_00c04f601565, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IDimensionClassExtension2
IID, IID7402bfe1_f2f1_22e9_052f_735ebbc50ac2, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IObjectClassExtension
IID, IID01b7e2d1_e2ee_11d2_8a56_000000000000, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IPersistCustomFeaturesExtension
IID, IID600811e1_2c1d_11d4_8303_0080c7e20671, xxDummy
 
Constructor Summary
DimensionClassExtension()
          Constructs a DimensionClassExtension using ArcGIS Engine.
DimensionClassExtension(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DimensionClassExtension theDimensionClassExtension = (DimensionClassExtension) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 IDimensionStyles getDimensionStyles()
          The collection of dimension styles associated with the dimension feature class.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 ITransformation getNativeTransformation()
          The native display transformation of the dimension feature class.
 ITransformation getNativeTransformation(IDimensionGraphic pGraphic)
          The native display transformation of the dimension feature class, centered on the given graphic.
 double getReferenceScale()
          The reference scale of the dimension feature class.
 int getReferenceScaleUnits()
          The reference scale units of the dimension feature class.
 int hashCode()
          the hashcode for this object
 void init(IClassHelper classHelper, IPropertySet extensionProperties)
          Initializes the extension, passing in a reference to its class helper.
 void loadClass(IStream stream, boolean[] canLoad)
          Looks at the class information and determines if it can load the features.
 void loadFeature(IStream stream, IFeature feature)
          Loads the feature information and updates the feature.
 void onChange(IObjectClassEventsOnChangeEvent theEvent)
          This event is fired when an object's attributes or geometry is updated.
 void onCreate(IObjectClassEventsOnCreateEvent theEvent)
          This event is fired when a new object is created in the object class.
 void onDelete(IObjectClassEventsOnDeleteEvent theEvent)
          This event is fired when an object is deleted from the object class.
 void release()
          Release a DimensionClassExtension.
 void resetProperties()
          Resets the in state of the dimension feature class properties.
 void saveClass(IStream stream)
          Writes out to the stream, class information used to aid loading.
 void saveFeature(IStream stream, IFeature feature)
          Writes out to the stream, feature infomation used to aid loading.
 void setReferenceScale(double scale)
          The reference scale of the dimension feature class.
 void setReferenceScaleUnits(int units)
          The reference scale units of the dimension feature class.
 void shutdown()
          Informs the extension that its class helper is going away.
 void updateProperties()
          Updates the dimension featrue class' properties.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimensionClassExtension

public DimensionClassExtension()
                        throws java.io.IOException,
                               java.net.UnknownHostException
Constructs a DimensionClassExtension using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

DimensionClassExtension

public DimensionClassExtension(java.lang.Object obj)
                        throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DimensionClassExtension theDimensionClassExtension = (DimensionClassExtension) obj;

Construct a DimensionClassExtension using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DimensionClassExtension.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


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 DimensionClassExtension.

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

init

public void init(IClassHelper classHelper,
                 IPropertySet extensionProperties)
          throws java.io.IOException,
                 AutomationException
Initializes the extension, passing in a reference to its class helper.

Remarks

If a reference to the class is required by other class extension members, the class helper should be stored in a member variable. Storing an object or feature class directly within a class extension is strongly discouraged.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
init in interface IClassExtension
Parameters:
classHelper - A reference to a com.esri.arcgis.geodatabase.IClassHelper (in)
extensionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shutdown

public void shutdown()
              throws java.io.IOException,
                     AutomationException
Informs the extension that its class helper is going away.

Remarks

Shutdown is called when the extension's class is cleared from the client's memory, or when the extension is removed from the class. Note that if a class is deleted from a geodatabase, it may remain in memory, so this should not be relied upon for behavior that should be triggered by a class' deletion.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
shutdown in interface IClassExtension
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDimensionStyles

public IDimensionStyles getDimensionStyles()
                                    throws java.io.IOException,
                                           AutomationException
The collection of dimension styles associated with the dimension feature class.

Specified by:
getDimensionStyles in interface IDimensionClassExtension
Returns:
A reference to a com.esri.arcgis.carto.IDimensionStyles
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateProperties

public void updateProperties()
                      throws java.io.IOException,
                             AutomationException
Updates the dimension featrue class' properties.

Specified by:
updateProperties in interface IDimensionClassExtension
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

resetProperties

public void resetProperties()
                     throws java.io.IOException,
                            AutomationException
Resets the in state of the dimension feature class properties.

Specified by:
resetProperties in interface IDimensionClassExtension
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReferenceScale

public double getReferenceScale()
                         throws java.io.IOException,
                                AutomationException
The reference scale of the dimension feature class.

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

setReferenceScale

public void setReferenceScale(double scale)
                       throws java.io.IOException,
                              AutomationException
The reference scale of the dimension feature class.

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

getReferenceScaleUnits

public int getReferenceScaleUnits()
                           throws java.io.IOException,
                                  AutomationException
The reference scale units of the dimension feature class.

Specified by:
getReferenceScaleUnits in interface IDimensionClassExtension
Returns:
A com.esri.arcgis.system.esriUnits constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReferenceScaleUnits

public void setReferenceScaleUnits(int units)
                            throws java.io.IOException,
                                   AutomationException
The reference scale units of the dimension feature class.

Specified by:
setReferenceScaleUnits in interface IDimensionClassExtension
Parameters:
units - A com.esri.arcgis.system.esriUnits constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNativeTransformation

public ITransformation getNativeTransformation()
                                        throws java.io.IOException,
                                               AutomationException
The native display transformation of the dimension feature class.

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

getNativeTransformation

public ITransformation getNativeTransformation(IDimensionGraphic pGraphic)
                                        throws java.io.IOException,
                                               AutomationException
The native display transformation of the dimension feature class, centered on the given graphic.

Specified by:
getNativeTransformation in interface IDimensionClassExtension2
Parameters:
pGraphic - A reference to a com.esri.arcgis.carto.IDimensionGraphic (in)
Returns:
A reference to a com.esri.arcgis.geometry.ITransformation
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onCreate

public void onCreate(IObjectClassEventsOnCreateEvent theEvent)
              throws java.io.IOException,
                     AutomationException
This event is fired when a new object is created in the object class.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
onCreate in interface IObjectClassEvents
Parameters:
theEvent - The event
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onDelete

public void onDelete(IObjectClassEventsOnDeleteEvent theEvent)
              throws java.io.IOException,
                     AutomationException
This event is fired when an object is deleted from the object class.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
onDelete in interface IObjectClassEvents
Parameters:
theEvent - The event
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onChange

public void onChange(IObjectClassEventsOnChangeEvent theEvent)
              throws java.io.IOException,
                     AutomationException
This event is fired when an object's attributes or geometry is updated.

Remarks

In the event that a feature should be deleted due to an OnChange event, it is not recommended that the event handler delete the feature itself. Instead, an exception should be thrown to the application, where it can be made responsible for deleting the feature.

The OnChange event is not fired during a Topology Validation for performance reasons as a large number of features may be changed during a Validate. In addition, features may be changed many times.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
onChange in interface IObjectClassEvents
Parameters:
theEvent - The event
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveClass

public void saveClass(IStream stream)
               throws java.io.IOException,
                      AutomationException
Writes out to the stream, class information used to aid loading.

Specified by:
saveClass in interface IPersistCustomFeaturesExtension
Parameters:
stream - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadClass

public void loadClass(IStream stream,
                      boolean[] canLoad)
               throws java.io.IOException,
                      AutomationException
Looks at the class information and determines if it can load the features.

Specified by:
loadClass in interface IPersistCustomFeaturesExtension
Parameters:
stream - A reference to a com.esri.arcgis.system.IStream (in)
canLoad - The canLoad (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveFeature

public void saveFeature(IStream stream,
                        IFeature feature)
                 throws java.io.IOException,
                        AutomationException
Writes out to the stream, feature infomation used to aid loading.

Specified by:
saveFeature in interface IPersistCustomFeaturesExtension
Parameters:
stream - A reference to a com.esri.arcgis.system.IStream (in)
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadFeature

public void loadFeature(IStream stream,
                        IFeature feature)
                 throws java.io.IOException,
                        AutomationException
Loads the feature information and updates the feature.

Specified by:
loadFeature in interface IPersistCustomFeaturesExtension
Parameters:
stream - A reference to a com.esri.arcgis.system.IStream (in)
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.