|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.RotatedLinearConstructor
public class RotatedLinearConstructor
A dimension feature constructor for creating linear dimension features.
Constructor Summary | |
---|---|
RotatedLinearConstructor()
Constructs a RotatedLinearConstructor using ArcGIS Engine. |
|
RotatedLinearConstructor(Object obj)
Construct a RotatedLinearConstructor using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
void |
addFeedbackPoint(IPoint point)
Adds a point to the display feedback. |
void |
constructDimension(IDimensionFeature feature,
IGeometry geometry,
IDimensionStyle style)
Creates the dimension shape for a dimension feature given the geometry constructed in the dimension constructor. |
IDisplayFeedback |
createFeedback()
The display feedback for the constructor. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getDimensionType()
The type of dimension created with the dimension constructor. |
String |
getName()
Name of the dimension constructor. |
int |
getSketchGeometryType()
The type of geometry used for the edit sketch constructor. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isCanFinish(IGeometry sketchGeometry)
Indicates if the dimension feature can be constructed given the number of points in the edit sketch. |
boolean |
isHasFeedback()
Indicates if the constructor will use a custom feedback. |
void |
shutdown()
The constructor start event. |
void |
startFeedback(IPoint point,
IDimensionStyle style)
Starts the display feedback for the dimension constructor. |
void |
startFeedbackFromShape(IGeometry shape,
IDimensionStyle style)
Starts the display feedback for the dimension constructor from an existing geometry. |
void |
startup(IDimensionEditExtension extension)
The dimension editor extension. |
void |
stopFeedback()
Stops the display feedback. |
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 RotatedLinearConstructor() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RotatedLinearConstructor(Object obj) throws IOException
obj
to RotatedLinearConstructor
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
RotatedLinearConstructor theRotatedLinearConstructor = (RotatedLinearConstructor) obj;
Method Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
Returns the name of the dimension constructor. This is the name listed in the Dimension Constructors control on the Dimensioning toolbar.
getName
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSketchGeometryType() throws IOException, AutomationException
Returns the geometry type of the dimension constructor used for the sketch geometry. Most of the standard dimension constructors use esriGeometryMultipoint.
getSketchGeometryType
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDimensionType() throws IOException, AutomationException
getDimensionType
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanFinish(IGeometry sketchGeometry) throws IOException, AutomationException
isCanFinish
in interface IDimensionConstructor
sketchGeometry
- 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 constructDimension(IDimensionFeature feature, IGeometry geometry, IDimensionStyle style) throws IOException, AutomationException
When IDimensionConstructor::CanFinish returns True ConstructDimension is called.
constructDimension
in interface IDimensionConstructor
feature
- A reference to a com.esri.arcgis.carto.IDimensionFeature (in)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)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.public void startup(IDimensionEditExtension extension) throws IOException, AutomationException
Startup is called when the constructor is instantiated by the DimensionEditExtension.
startup
in interface IDimensionConstructor
extension
- A reference to a com.esri.arcgis.editor.IDimensionEditExtension (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 DimensionEditExtension's destructor is called, typically when ArcMap is shut down.
shutdown
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDisplayFeedback createFeedback() throws IOException, AutomationException
When implementing IDimensionConstructor CreateFeedback is where the chosen feedback object should be instantiated and the necessary properties of the feedback object are set. For example, you should set the DimensionType and ReferenceScale, and ReferenceUnits values on the feedback object at this time.
createFeedback
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startFeedback(IPoint point, IDimensionStyle style) throws IOException, AutomationException
StartFeedback will start the display of the feedback object when the first point is added to the edit sketch. All properties required by the feedback object should be specified at this point and the feedback should be started.
startFeedback
in interface IDimensionConstructor
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)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.public void addFeedbackPoint(IPoint point) throws IOException, AutomationException
When the first point is added StartFeedbackFromShape is called. For all subsequent points that are added AddFeedbackPoint is called. The point can be used to update the feedback if desired.
addFeedbackPoint
in interface IDimensionConstructor
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopFeedback() throws IOException, AutomationException
StopFeedback will stop the display feedback. StopFeedback is automatically called when IDimensionConstructor::CanFinish returns True. At this time you should stop the DimensionFeedback object and dereference it. If desired you can use the IDimensionShape returned from INewDimensionFeedback::Stop as the basis for constructing the dimension feature. ConstructDimension is called immediately follwing StopFeedback.
stopFeedback
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasFeedback() throws IOException, AutomationException
isHasFeedback
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startFeedbackFromShape(IGeometry shape, IDimensionStyle style) throws IOException, AutomationException
StartFeedbackFromShape is called when the first point is added to the edit sketch. The input geometry should be used to add all the points in the sketchGeometry to the DimensionFeedback object.
startFeedbackFromShape
in interface IDimensionConstructor
shape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)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.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 |