|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.DimensionGraphic
public class DimensionGraphic
The graphic asscoiated with a DimensionFeature.
The DimensionGraphic coclass draws DimensionFeatures.
The DimensionGraphic is used for dynamically rendering dimensions using a DimensionStyle and DimensionShape .
| Constructor Summary | |
|---|---|
DimensionGraphic()
Constructs a DimensionGraphic using ArcGIS Engine. |
|
DimensionGraphic(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DimensionGraphic theDimensionGraphic = (DimensionGraphic) obj; |
|
| Method Summary | |
|---|---|
void |
draw(int hDC,
ITransformation transformation)
Draws the dimension style. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
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. |
int |
hashCode()
the hashcode for this object |
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. |
| 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 DimensionGraphic()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public DimensionGraphic(Object obj)
throws IOException
DimensionGraphic theDimensionGraphic = (DimensionGraphic) obj;
obj to DimensionGraphic.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setDimensionShapeByRef(IDimensionShape shape)
throws IOException,
AutomationException
setDimensionShapeByRef in interface IDimensionGraphicshape - A reference to a com.esri.arcgis.carto.IDimensionShape (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDimensionShape getDimensionShape()
throws IOException,
AutomationException
getDimensionShape in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getStyle in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setStyleByRef in interface IDimensionGraphicstyle - A reference to a com.esri.arcgis.carto.IDimensionStyle (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
draw in interface IDimensionGraphichDC - 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.
public void queryBoundary(int hDC,
ITransformation transformation,
IPolygon boundary)
throws IOException,
AutomationException
The QueryBoundary method returns the Envelope of the dimension.
queryBoundary in interface IDimensionGraphichDC - 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.
public double getLength()
throws IOException,
AutomationException
getLength in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getCustomLength in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setCustomLength in interface IDimensionGraphiclength - The length (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
isUseCustomLength in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setUseCustomLength in interface IDimensionGraphiclength - The length (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getMask(int hDC,
ITransformation transformation,
IGeometry mask)
throws IOException,
AutomationException
The GetMask method returns the outline polygon of the dimension.
getMask in interface IDimensionGraphichDC - 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.
public 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.
updateShape in interface IDimensionGraphichDC - 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.
public 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.
getNativeUnits in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setNativeUnits in interface IDimensionGraphicunits - A com.esri.arcgis.system.esriUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getDefaultTextPoint in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getNativeTransformation in interface IDimensionGraphicIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setNativeTransformationByRef in interface IDimensionGraphictransformation - 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 | ||||||||