com.esri.arcgis.schematic
Class SchematicInMemoryDiagram

java.lang.Object
  extended by com.esri.arcgis.schematic.SchematicInMemoryDiagram
All Implemented Interfaces:
IGeoDataset, com.esri.arcgis.interop.RemoteObjRef, ISchematicInMemoryDiagram, ISchematicInMemoryFeatureClassContainer, ISchematicInMemoryObject, ISchematicObject, java.io.Serializable

public class SchematicInMemoryDiagram
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ISchematicInMemoryDiagram, IGeoDataset, ISchematicObject, ISchematicInMemoryObject, ISchematicInMemoryFeatureClassContainer

COM Class 'SchematicInMemoryDiagram'. Generated 3/19/2015 1:20:46 PM from 'C:\ArcGIS\COM\esriSchematic.olb'

Description 'Schematic in memory diagram object.' 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.schematic.ISchematicInMemoryDiagram
IID, IIDee80922c_6dc5_4729_8b60_e67f166cc9ef, xxDummy
 
Fields inherited from interface com.esri.arcgis.schematic.ISchematicObject
IID, IID79ae6386_1d47_4cdf_9cf3_f66357b2cef3, xxDummy
 
Fields inherited from interface com.esri.arcgis.schematic.ISchematicInMemoryObject
IID, IID7ce4bc10_03ff_4cba_835d_c2514e16d986, xxDummy
 
Fields inherited from interface com.esri.arcgis.schematic.ISchematicInMemoryFeatureClassContainer
IID, IID99b2d0d7_836e_4392_a417_c570f96020ea, xxDummy
 
Constructor Summary
SchematicInMemoryDiagram(java.lang.Object obj)
          Construct a SchematicInMemoryDiagram 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
 IObjectClass esri_getClass()
          Object class related to the schematic object.
 IEnvelope getExtent()
          The extent of the GeoDataset.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getName()
          Name of the schematic in memory diagram.
 ISchematicDiagram getSchematicDiagram()
          The schematic diagram relative to the schematic in memory diagram.
 ISchematicDiagramClass getSchematicDiagramClass()
          The schematic diagram class the schematic in memory diagram belongs to.
 ISchematicInMemoryFeature getSchematicInMemoryFeatureByType(int elementType, java.lang.String name)
          Finds a schematic in memory feature referenced by the specified name and the specified element type within the schematic in memory net feature.
 ISchematicInMemoryFeatureClass getSchematicInMemoryFeatureClass(ISchematicElementClass schematicElementClass)
          Finds the in memory feature classes corresponding to a schematic element class.
 IEnumSchematicInMemoryFeatureClass getSchematicInMemoryFeatureClasses()
          Enumeration of in memory feature classes.
 IEnumSchematicInMemoryFeature getSchematicInMemoryFeatures()
          Schematic in memory features enumeration within the schematic in memory diagram.
 IEnumSchematicInMemoryFeature getSchematicInMemoryFeaturesByClass(ISchematicElementClass schematicElementClass)
          Finds a schematic in memory features enumeration by the specified schematic element class within the schematic in memory net feature.
 IEnumSchematicInMemoryFeature getSchematicInMemoryFeaturesByType(int elementType)
          Finds a schematic in memory features enumeration by the specified element type within the schematic in memory net feature.
 ISchematicObjectClass getSchematicObjectClass()
          The schematic object class the schematic in memory object belongs to.
 ISpatialReference getSpatialReference()
          The spatial reference of the GeoDataset.
 int hashCode()
          the hashcode for this object
 boolean isHasChanged()
          Indicates if the schematic in memory diagram has changed in the current session.
 boolean isLayoutHasChanged()
          Indicates if the saved layout of the schematic diagram is no more the initial layout.
 void refresh()
          Refreshes the schematic in memory diagram.
 void release()
          Release a SchematicInMemoryDiagram.
 void save(ILayer layer)
          Saves the schematic in memory diagram.
 void setHasChanged(boolean hasChanged)
          Indicates if the schematic in memory diagram has changed in the current session.
 void setLayoutHasChanged(boolean layoutHasChanged)
          Indicates if the saved layout of the schematic diagram is no more the initial layout.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchematicInMemoryDiagram

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

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

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

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

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
Name of the schematic in memory diagram.

Specified by:
getName in interface ISchematicInMemoryDiagram
Specified by:
getName in interface ISchematicInMemoryObject
Specified by:
getName in interface ISchematicObject
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicDiagram

public ISchematicDiagram getSchematicDiagram()
                                      throws java.io.IOException,
                                             AutomationException
The schematic diagram relative to the schematic in memory diagram.

Specified by:
getSchematicDiagram in interface ISchematicInMemoryDiagram
Returns:
A reference to a com.esri.arcgis.schematic.ISchematicDiagram
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicDiagramClass

public ISchematicDiagramClass getSchematicDiagramClass()
                                                throws java.io.IOException,
                                                       AutomationException
The schematic diagram class the schematic in memory diagram belongs to.

Specified by:
getSchematicDiagramClass in interface ISchematicInMemoryDiagram
Returns:
A reference to a com.esri.arcgis.schematic.ISchematicDiagramClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

save

public void save(ILayer layer)
          throws java.io.IOException,
                 AutomationException
Saves the schematic in memory diagram.

Specified by:
save in interface ISchematicInMemoryDiagram
Parameters:
layer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refresh

public void refresh()
             throws java.io.IOException,
                    AutomationException
Refreshes the schematic in memory diagram.

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

getSchematicInMemoryFeatures

public IEnumSchematicInMemoryFeature getSchematicInMemoryFeatures()
                                                           throws java.io.IOException,
                                                                  AutomationException
Schematic in memory features enumeration within the schematic in memory diagram.

Specified by:
getSchematicInMemoryFeatures in interface ISchematicInMemoryDiagram
Returns:
A reference to a com.esri.arcgis.schematic.IEnumSchematicInMemoryFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicInMemoryFeatureByType

public ISchematicInMemoryFeature getSchematicInMemoryFeatureByType(int elementType,
                                                                   java.lang.String name)
                                                            throws java.io.IOException,
                                                                   AutomationException
Finds a schematic in memory feature referenced by the specified name and the specified element type within the schematic in memory net feature.

Specified by:
getSchematicInMemoryFeatureByType in interface ISchematicInMemoryDiagram
Parameters:
elementType - A com.esri.arcgis.schematic.esriSchematicElementType constant (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.schematic.ISchematicInMemoryFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicInMemoryFeaturesByType

public IEnumSchematicInMemoryFeature getSchematicInMemoryFeaturesByType(int elementType)
                                                                 throws java.io.IOException,
                                                                        AutomationException
Finds a schematic in memory features enumeration by the specified element type within the schematic in memory net feature.

Specified by:
getSchematicInMemoryFeaturesByType in interface ISchematicInMemoryDiagram
Parameters:
elementType - A com.esri.arcgis.schematic.esriSchematicElementType constant (in)
Returns:
A reference to a com.esri.arcgis.schematic.IEnumSchematicInMemoryFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicInMemoryFeaturesByClass

public IEnumSchematicInMemoryFeature getSchematicInMemoryFeaturesByClass(ISchematicElementClass schematicElementClass)
                                                                  throws java.io.IOException,
                                                                         AutomationException
Finds a schematic in memory features enumeration by the specified schematic element class within the schematic in memory net feature.

Specified by:
getSchematicInMemoryFeaturesByClass in interface ISchematicInMemoryDiagram
Parameters:
schematicElementClass - A reference to a com.esri.arcgis.schematic.ISchematicElementClass (in)
Returns:
A reference to a com.esri.arcgis.schematic.IEnumSchematicInMemoryFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasChanged

public boolean isHasChanged()
                     throws java.io.IOException,
                            AutomationException
Indicates if the schematic in memory diagram has changed in the current session.

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

setHasChanged

public void setHasChanged(boolean hasChanged)
                   throws java.io.IOException,
                          AutomationException
Indicates if the schematic in memory diagram has changed in the current session.

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

isLayoutHasChanged

public boolean isLayoutHasChanged()
                           throws java.io.IOException,
                                  AutomationException
Indicates if the saved layout of the schematic diagram is no more the initial layout.

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

setLayoutHasChanged

public void setLayoutHasChanged(boolean layoutHasChanged)
                         throws java.io.IOException,
                                AutomationException
Indicates if the saved layout of the schematic diagram is no more the initial layout.

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

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
The spatial reference of the GeoDataset.

Remarks

This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.

Instances of the esriCarto.GroupLayer class will return null for this property, as a group layer can contain multiple datasets with different spatial references.

Modifications to a spatial reference returned by this property will not be persisted. To modify the spatial reference of a dataset, the IGeoDatasetSchemaEdit and IGeoDatasetSchemaEdit2 interfaces should be used.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getExtent

public IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
The extent of the GeoDataset.

Remarks

The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.

Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.

The red box represents the IGeoDataset extent

If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.

The red box represents the IGeoDataset extent after some of the features have been deleted

If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.

The red box represents the IGeoDataset extent after it has been updated

ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

esri_getClass

public IObjectClass esri_getClass()
                           throws java.io.IOException,
                                  AutomationException
Object class related to the schematic object.

Specified by:
esri_getClass in interface ISchematicObject
Returns:
A reference to a com.esri.arcgis.geodatabase.IObjectClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicObjectClass

public ISchematicObjectClass getSchematicObjectClass()
                                              throws java.io.IOException,
                                                     AutomationException
The schematic object class the schematic in memory object belongs to.

Specified by:
getSchematicObjectClass in interface ISchematicInMemoryObject
Returns:
A reference to a com.esri.arcgis.schematic.ISchematicObjectClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicInMemoryFeatureClasses

public IEnumSchematicInMemoryFeatureClass getSchematicInMemoryFeatureClasses()
                                                                      throws java.io.IOException,
                                                                             AutomationException
Enumeration of in memory feature classes.

Specified by:
getSchematicInMemoryFeatureClasses in interface ISchematicInMemoryFeatureClassContainer
Returns:
A reference to a com.esri.arcgis.schematic.IEnumSchematicInMemoryFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSchematicInMemoryFeatureClass

public ISchematicInMemoryFeatureClass getSchematicInMemoryFeatureClass(ISchematicElementClass schematicElementClass)
                                                                throws java.io.IOException,
                                                                       AutomationException
Finds the in memory feature classes corresponding to a schematic element class.

Specified by:
getSchematicInMemoryFeatureClass in interface ISchematicInMemoryFeatureClassContainer
Parameters:
schematicElementClass - A reference to a com.esri.arcgis.schematic.ISchematicElementClass (in)
Returns:
A reference to a com.esri.arcgis.schematic.ISchematicInMemoryFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.