|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDimensionFeature
Provides access to members that control a dimension feature.
The IDimensionFeature interface provides properties for setting the style and placement of a DimensionFeature.
The StyleID property should be a valid ID from the class’s DimensionStyles collection. If the current ID is invalid, the DimensionFeature will draw its boundary in red. The DimensionShape property defines the placement of the elements of a DimensionFeature. The location and size of the DimensionFeature is determined entirely by the DimensionShape and it is not necessary to use the IFeature::Shape property. The DimensionType property defines the type of the Dimension as Linear or Aligned and affects how the EditTool behaves with the DimensionFeature during shape modification. The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle. A custom value for the DimensionFeature’s text can be set using the CustomLength property and by setting the UseCustomLength property to True.
// This example assumes a reference to an IdimensionFeature (pDimensionFeature)…IDimensionFeature pDimensionFeature = null;pDimensionFeature.setCustomLength(5.5);pDimensionFeature.setUseCustomLength(true);IFeature pFeature = new IFeatureProxy(pDimensionFeature);pFeature.store();
Method Summary | |
---|---|
double |
getCustomLength()
The dimension feature's custom or user-defined length. |
int |
getDimensionLineDisplay()
The dimension line display for the feature. |
IDimensionShape |
getDimensionShape()
The dimension feature's shape. |
int |
getDimensionType()
The dimension type of the feature. |
int |
getExtensionLineDisplay()
The extension line display of the feature. |
double |
getLength()
The dimension feature's length. |
int |
getMarkerDisplay()
The arrow display of the feature. |
int |
getStyleID()
The dimension feature's style Id. |
boolean |
isUseCustomLength()
Indicates if this dimension feature displays the dimension length or a custom length. |
void |
setCustomLength(double length)
The dimension feature's custom or user-defined length. |
void |
setDimensionLineDisplay(int displayOption)
The dimension line display for the feature. |
void |
setDimensionShape(IDimensionShape shape)
The dimension feature's shape. |
void |
setDimensionType(int type)
The dimension type of the feature. |
void |
setExtensionLineDisplay(int displayOption)
The extension line display of the feature. |
void |
setMarkerDisplay(int displayOption)
The arrow display of the feature. |
void |
setStyleID(int iD)
The dimension feature's style Id. |
void |
setUseCustomLength(boolean use)
Indicates if this dimension feature displays the dimension length or a custom length. |
Method Detail |
---|
void setDimensionShape(IDimensionShape shape) throws IOException, AutomationException
The DimensionShape property defines the placement of the elements of a DimensionFeature. The location and size of the DimensionFeature is determined entirely by the DimensionShape and it is not necessary to use the IFeature::Shape property.
shape
- A reference to a com.esri.arcgis.carto.IDimensionShape (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDimensionShape getDimensionShape() throws IOException, AutomationException
The DimensionShape property defines the placement of the elements of a DimensionFeature. The location and size of the DimensionFeature is determined entirely by the DimensionShape and it is not necessary to use the IFeature::Shape property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getStyleID() throws IOException, AutomationException
The StyleID property should be a valid ID from the class’s DimensionStyles collection. If the current ID is invalid, the DimensionFeature will draw its boundary in red.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStyleID(int iD) throws IOException, AutomationException
The StyleID property should be a valid ID from the class’s DimensionStyles collection. If the current ID is invalid, the DimensionFeature will draw its boundary in red.
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getLength() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getCustomLength() throws IOException, AutomationException
A custom value for the DimensionFeature’s text can be set using the CustomLength property and by setting the UseCustomLength property to True.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCustomLength(double length) throws IOException, AutomationException
A custom value for the DimensionFeature’s text can be set using the CustomLength property and by setting the UseCustomLength property to True.
length
- The length (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseCustomLength() throws IOException, AutomationException
A custom value for the DimensionFeature’s text can be set using the CustomLength property and by setting the UseCustomLength property to True.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseCustomLength(boolean use) throws IOException, AutomationException
A custom value for the DimensionFeature’s text can be set using the CustomLength property and by setting the UseCustomLength property to True.
use
- The use (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDimensionLineDisplay(int displayOption) throws IOException, AutomationException
The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle.
displayOption
- A com.esri.arcgis.carto.esriDimensionDisplay constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDimensionLineDisplay() throws IOException, AutomationException
The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExtensionLineDisplay(int displayOption) throws IOException, AutomationException
The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle.
displayOption
- A com.esri.arcgis.carto.esriDimensionDisplay constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getExtensionLineDisplay() throws IOException, AutomationException
The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMarkerDisplay(int displayOption) throws IOException, AutomationException
The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle.
displayOption
- A com.esri.arcgis.carto.esriDimensionDisplay constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMarkerDisplay() throws IOException, AutomationException
The DimensionLineDisplay, ExtensionLineDisplay, and MarkerDisplay properties are values that override the values of the current DimensionStyle.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDimensionType() throws IOException, AutomationException
The DimensionType property defines the type of the Dimension as Linear or Aligned and affects how the EditTool behaves with the DimensionFeature during shape modification.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDimensionType(int type) throws IOException, AutomationException
The DimensionType property defines the type of the Dimension as Linear or Aligned and affects how the EditTool behaves with the DimensionFeature during shape modification.
type
- A com.esri.arcgis.carto.esriDimensionType constant (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 |