|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDimensionGraphic
Provides access to members that control a dimension graphic.
The IDimensionGraphic interface provides methods and properties for drawing dimensions.
Method Summary | |
---|---|
void |
draw(int hDC,
ITransformation transformation)
Draws the dimension style. |
double |
getCustomLength()
The custom length of the dimension graphic. |
IPoint |
getDefaultTextPoint()
The default location of the dimension text placement. |
IDimensionShape |
getDimensionShape()
The begin dimension point. |
double |
getLength()
The length of the dimension graphic. |
void |
getMask(int hDC,
ITransformation transformation,
IGeometry mask)
The dimension graphic mask. |
ITransformation |
getNativeTransformation()
The native transformation for the dimension graphic. |
int |
getNativeUnits()
The native units of the dimension graphic. |
IDimensionStyle |
getStyle()
The dimension style. |
boolean |
isUseCustomLength()
Indicates if a custom length is displayed for the dimsnion graphic. |
void |
queryBoundary(int hDC,
ITransformation transformation,
IPolygon boundary)
The boundary of the dimension style. |
void |
setCustomLength(double length)
The custom length of the dimension graphic. |
void |
setDimensionShapeByRef(IDimensionShape shape)
The begin dimension point. |
void |
setNativeTransformationByRef(ITransformation transformation)
The native transformation for the dimension graphic. |
void |
setNativeUnits(int units)
The native units of the dimension graphic. |
void |
setStyleByRef(IDimensionStyle style)
The dimension style. |
void |
setUseCustomLength(boolean length)
Indicates if a custom length is displayed for the dimsnion graphic. |
void |
updateShape(int hDC,
ITransformation transformation,
IFeature pFeature)
Updates the dimension geometries for the dimension graphic. |
Method Detail |
---|
void setDimensionShapeByRef(IDimensionShape shape) throws IOException, AutomationException
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
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDimensionStyle getStyle() throws IOException, AutomationException
The Style property sets the DimensionStyle for the DimensionGraphic. The DimensionShape defines the location of the dimension’s measurements and text.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStyleByRef(IDimensionStyle style) throws IOException, AutomationException
The Style property sets the DimensionStyle for the DimensionGraphic. The DimensionShape defines the location of the dimension’s measurements and text.
style
- A reference to a com.esri.arcgis.carto.IDimensionStyle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void draw(int hDC, ITransformation transformation) throws IOException, AutomationException
The Draw method draws a dimension on the device context specified by the hDC parameter using the transformation specified in the pTransformation parameter.
hDC
- The hDC (A COM typedef) (in)transformation
- A reference to a com.esri.arcgis.geometry.ITransformation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryBoundary(int hDC, ITransformation transformation, IPolygon boundary) throws IOException, AutomationException
The QueryBoundary method returns the Envelope of the dimension.
hDC
- The hDC (A COM typedef) (in)transformation
- A reference to a com.esri.arcgis.geometry.ITransformation (in)boundary
- A reference to a com.esri.arcgis.geometry.IPolygon (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
The Length property returns the current calculated length for the Dimension. A custom length value can be specified using the CustomLength and UseCustomLength properties.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCustomLength(double length) throws IOException, AutomationException
The Length property returns the current calculated length for the Dimension. A custom length value can be specified using the CustomLength and UseCustomLength properties.
length
- The length (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseCustomLength() throws IOException, AutomationException
The Length property returns the current calculated length for the Dimension. A custom length value can be specified using the CustomLength and UseCustomLength properties.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseCustomLength(boolean length) throws IOException, AutomationException
The Length property returns the current calculated length for the Dimension. A custom length value can be specified using the CustomLength and UseCustomLength properties.
length
- The length (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getMask(int hDC, ITransformation transformation, IGeometry mask) throws IOException, AutomationException
The GetMask method returns the outline polygon of the dimension.
hDC
- The hDC (A COM typedef) (in)transformation
- A reference to a com.esri.arcgis.geometry.ITransformation (in)mask
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void updateShape(int hDC, ITransformation transformation, IFeature pFeature) throws IOException, AutomationException
If the properties of the DimensionGraphic are changed, it is necessary to call the UpdateShape method to recalculate the dimension. The pFeature parameter of the UpdateShape method is only necessary when the current style is using a text expression.
hDC
- The hDC (A COM typedef) (in)transformation
- A reference to a com.esri.arcgis.geometry.ITransformation (in)pFeature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getNativeUnits() throws IOException, AutomationException
If the current DimensionStyle supports text value conversion, the native units and transformation can be set with the NativeUnits and NativeTransformation properties.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNativeUnits(int units) throws IOException, AutomationException
If the current DimensionStyle supports text value conversion, the native units and transformation can be set with the NativeUnits and NativeTransformation properties.
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPoint getDefaultTextPoint() throws IOException, AutomationException
If the current DimensionShape contains a non-empty TextPoint, the default location for the text is available through the GetDefaultTextPoint method.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITransformation getNativeTransformation() throws IOException, AutomationException
If the current DimensionStyle supports text value conversion, the native units and transformation can be set with the NativeUnits and NativeTransformation properties.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNativeTransformationByRef(ITransformation transformation) throws IOException, AutomationException
If the current DimensionStyle supports text value conversion, the native units and transformation can be set with the NativeUnits and NativeTransformation properties.
transformation
- A reference to a com.esri.arcgis.geometry.ITransformation (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 |