com.esri.arcgis.carto
Class DimensionGraphic

java.lang.Object
  extended by com.esri.arcgis.carto.DimensionGraphic
All Implemented Interfaces:
IDimensionGraphic, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class DimensionGraphic
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IDimensionGraphic

COM Class 'DimensionGraphic'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'The graphic asscoiated with a DimensionFeature.' 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.carto.IDimensionGraphic
IID, IID7126d088_fb61_11d3_80d3_00c04f601565, xxDummy
 
Constructor Summary
DimensionGraphic()
          Constructs a DimensionGraphic using ArcGIS Engine.
DimensionGraphic(java.lang.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(java.lang.Object o)
          Compare this object with another
static java.lang.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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 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 release()
          Release a DimensionGraphic.
 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
 

Constructor Detail

DimensionGraphic

public DimensionGraphic()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a DimensionGraphic using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

DimensionGraphic

public DimensionGraphic(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DimensionGraphic theDimensionGraphic = (DimensionGraphic) obj;

Construct a DimensionGraphic using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DimensionGraphic.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


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 DimensionGraphic.

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

setDimensionShapeByRef

public void setDimensionShapeByRef(IDimensionShape shape)
                            throws java.io.IOException,
                                   AutomationException
The begin dimension point.

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

getDimensionShape

public IDimensionShape getDimensionShape()
                                  throws java.io.IOException,
                                         AutomationException
The begin dimension point.

Specified by:
getDimensionShape in interface IDimensionGraphic
Returns:
A reference to a com.esri.arcgis.carto.IDimensionShape
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStyle

public IDimensionStyle getStyle()
                         throws java.io.IOException,
                                AutomationException
The dimension style.

Specified by:
getStyle in interface IDimensionGraphic
Returns:
A reference to a com.esri.arcgis.carto.IDimensionStyle
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStyleByRef

public void setStyleByRef(IDimensionStyle style)
                   throws java.io.IOException,
                          AutomationException
The dimension style.

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

draw

public void draw(int hDC,
                 ITransformation transformation)
          throws java.io.IOException,
                 AutomationException
Draws the dimension style.

Specified by:
draw in interface IDimensionGraphic
Parameters:
hDC - The hDC (A COM typedef) (in)
transformation - A reference to a com.esri.arcgis.geometry.ITransformation (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryBoundary

public void queryBoundary(int hDC,
                          ITransformation transformation,
                          IPolygon boundary)
                   throws java.io.IOException,
                          AutomationException
The boundary of the dimension style.

Specified by:
queryBoundary in interface IDimensionGraphic
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLength

public double getLength()
                 throws java.io.IOException,
                        AutomationException
The length of the dimension graphic.

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

getCustomLength

public double getCustomLength()
                       throws java.io.IOException,
                              AutomationException
The custom length of the dimension graphic.

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

setCustomLength

public void setCustomLength(double length)
                     throws java.io.IOException,
                            AutomationException
The custom length of the dimension graphic.

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

isUseCustomLength

public boolean isUseCustomLength()
                          throws java.io.IOException,
                                 AutomationException
Indicates if a custom length is displayed for the dimsnion graphic.

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

setUseCustomLength

public void setUseCustomLength(boolean length)
                        throws java.io.IOException,
                               AutomationException
Indicates if a custom length is displayed for the dimsnion graphic.

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

getMask

public void getMask(int hDC,
                    ITransformation transformation,
                    IGeometry mask)
             throws java.io.IOException,
                    AutomationException
The dimension graphic mask.

Specified by:
getMask in interface IDimensionGraphic
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateShape

public void updateShape(int hDC,
                        ITransformation transformation,
                        IFeature pFeature)
                 throws java.io.IOException,
                        AutomationException
Updates the dimension geometries for the dimension graphic.

Specified by:
updateShape in interface IDimensionGraphic
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNativeUnits

public int getNativeUnits()
                   throws java.io.IOException,
                          AutomationException
The native units of the dimension graphic.

Specified by:
getNativeUnits in interface IDimensionGraphic
Returns:
A com.esri.arcgis.system.esriUnits constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setNativeUnits

public void setNativeUnits(int units)
                    throws java.io.IOException,
                           AutomationException
The native units of the dimension graphic.

Specified by:
setNativeUnits in interface IDimensionGraphic
Parameters:
units - A com.esri.arcgis.system.esriUnits constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefaultTextPoint

public IPoint getDefaultTextPoint()
                           throws java.io.IOException,
                                  AutomationException
The default location of the dimension text placement.

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

getNativeTransformation

public ITransformation getNativeTransformation()
                                        throws java.io.IOException,
                                               AutomationException
The native transformation for the dimension graphic.

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

setNativeTransformationByRef

public void setNativeTransformationByRef(ITransformation transformation)
                                  throws java.io.IOException,
                                         AutomationException
The native transformation for the dimension graphic.

Specified by:
setNativeTransformationByRef in interface IDimensionGraphic
Parameters:
transformation - A reference to a com.esri.arcgis.geometry.ITransformation (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.