|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.DimensionClassExtension
public class DimensionClassExtension
A class extension which contains all the style properties for a dimension feature class.
The DimensionClassExtension CoClass manages the drawing of DimensionFeatures.
The DimensionClassExtension is used to configure the drawing properties and symbology for DimensionFeatures.
Constructor Summary | |
---|---|
DimensionClassExtension()
Constructs a DimensionClassExtension using ArcGIS Engine. |
|
DimensionClassExtension(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DimensionClassExtension theDimensionClassExtension = (DimensionClassExtension) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IDimensionStyles |
getDimensionStyles()
The collection of dimension styles associated with the dimension feature class. |
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 |
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 |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public DimensionClassExtension() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DimensionClassExtension(Object obj) throws IOException
DimensionClassExtension theDimensionClassExtension = (DimensionClassExtension) obj;
obj
to DimensionClassExtension
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void init(IClassHelper classHelper, IPropertySet extensionProperties) throws IOException, AutomationException
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.
init
in interface IClassExtension
classHelper
- A reference to a com.esri.arcgis.geodatabase.IClassHelper (in)extensionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws IOException, AutomationException
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.
shutdown
in interface IClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDimensionStyles getDimensionStyles() throws IOException, AutomationException
getDimensionStyles
in interface IDimensionClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateProperties() throws IOException, AutomationException
As with any schema related modifications, an exclusive schema lock should be obtained on the feature class before calling UpdateProperties().
updateProperties
in interface IDimensionClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resetProperties() throws IOException, AutomationException
As with any schema related modifications, an exclusive schema lock should be obtained on the feature class before calling ResetProperties().
resetProperties
in interface IDimensionClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getReferenceScale() throws IOException, AutomationException
The ReferenceScale property defines the scale at which symbols are drawn at their defined size. The ReferenceScaleUnits property is only used when the Dimension FeatureClass’s spatial reference is Unknown. Changing the ReferenceScale after the FeatureClass contains Features is not recommend as those Features’ geometries are controlled by the ReferenceScale property.
getReferenceScale
in interface IDimensionClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReferenceScale(double scale) throws IOException, AutomationException
The ReferenceScale property defines the scale at which symbols are drawn at their defined size. Changing the ReferenceScale after the FeatureClass contains Features is not recommend as those Features’ geometries are controlled by the ReferenceScale property.
setReferenceScale
in interface IDimensionClassExtension
scale
- The scale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getReferenceScaleUnits() throws IOException, AutomationException
The ReferenceScaleUnits property is only used when the Dimension FeatureClass’s spatial reference is Unknown.
getReferenceScaleUnits
in interface IDimensionClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReferenceScaleUnits(int units) throws IOException, AutomationException
The ReferenceScaleUnits property is only used when the Dimension FeatureClass’s spatial reference is Unknown.
setReferenceScaleUnits
in interface IDimensionClassExtension
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITransformation getNativeTransformation() throws IOException, AutomationException
getNativeTransformation
in interface IDimensionClassExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITransformation getNativeTransformation(IDimensionGraphic pGraphic) throws IOException, AutomationException
getNativeTransformation
in interface IDimensionClassExtension2
pGraphic
- A reference to a com.esri.arcgis.carto.IDimensionGraphic (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCreate(IObjectClassEventsOnCreateEvent theEvent) throws IOException, AutomationException
onCreate
in interface IObjectClassEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onDelete(IObjectClassEventsOnDeleteEvent theEvent) throws IOException, AutomationException
onDelete
in interface IObjectClassEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onChange(IObjectClassEventsOnChangeEvent theEvent) throws IOException, AutomationException
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.
onChange
in interface IObjectClassEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveClass(IStream stream) throws IOException, AutomationException
saveClass
in interface IPersistCustomFeaturesExtension
stream
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadClass(IStream stream, boolean[] canLoad) throws IOException, AutomationException
loadClass
in interface IPersistCustomFeaturesExtension
stream
- A reference to a com.esri.arcgis.system.IStream (in)canLoad
- The canLoad (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveFeature(IStream stream, IFeature feature) throws IOException, AutomationException
saveFeature
in interface IPersistCustomFeaturesExtension
stream
- A reference to a com.esri.arcgis.system.IStream (in)feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadFeature(IStream stream, IFeature feature) throws IOException, AutomationException
loadFeature
in interface IPersistCustomFeaturesExtension
stream
- A reference to a com.esri.arcgis.system.IStream (in)feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- 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 |