|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IShapeConstructor
Provides access to a Shape Constructor to be hosted by tools that build sketches.
Method Summary | |
---|---|
void |
activate()
Prepares a shape constructor to begin receiving events. |
void |
addPoint(IPoint point,
boolean esri_clone,
boolean allowUndo)
Adds a point to the sketch. |
void |
deactivate()
Resets a shape constructor. |
IPoint |
getAnchor()
The anchor of the sketch. |
double |
getAngleConstraint()
The sketch's angular constraint. |
int |
getConstraint()
The sketch constraint. |
int |
getCursor()
The mouse pointer for this constructor. |
double |
getDistanceConstraint()
The sketch's distance constraint. |
String |
getID()
Name string identifying this shape constructor. |
IPoint |
getLocation()
The current location of the mouse. |
void |
initialize(IEditor pEditor)
Initializes a newly constructed shape constructor. |
boolean |
isActive()
Indicates whether the constructor is currently active. |
boolean |
isEnabled()
Indicates whether the constructor is enabled. |
boolean |
isStreaming()
Indicates whether stream mode digitizing is enabled. |
boolean |
onContextMenu(int x,
int y)
Context menu event occured at the given xy location. |
void |
onKeyDown(int keyState,
int shift)
Occurs when a key on the keyboard is pressed when this constructor is active. |
void |
onKeyUp(int keyState,
int shift)
Occurs when a key on the keyboard is released when this constructor is active. |
void |
onMouseDown(int button,
int shift,
int x,
int y)
Occurs when a mouse button is pressed when this constructor is active. |
void |
onMouseMove(int button,
int shift,
int x,
int y)
Occurs when the mouse is moved when this constructor is active. |
void |
onMouseUp(int button,
int shift,
int x,
int y)
Occurs when a mouse button is released when this constructor is active. |
void |
refresh(int hdc)
Occurs when a screen display in the application is refreshed. |
void |
setAngleConstraint(double val)
The sketch's angular constraint. |
void |
setConstraint(int constraint)
The sketch constraint. |
void |
setDistanceConstraint(double val)
The sketch's distance constraint. |
void |
setIsStreaming(boolean isStreaming)
Indicates whether stream mode digitizing is enabled. |
void |
sketchModified()
Called when Sketch is modified. |
Method Detail |
---|
void initialize(IEditor pEditor) throws IOException, AutomationException
pEditor
- A reference to a com.esri.arcgis.editor.IEditor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isEnabled() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void activate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deactivate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isActive() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void onMouseDown(int button, int shift, int x, int y) throws IOException, AutomationException
button
- The button (in)shift
- The shift (in)x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void onMouseMove(int button, int shift, int x, int y) throws IOException, AutomationException
button
- The button (in)shift
- The shift (in)x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void onMouseUp(int button, int shift, int x, int y) throws IOException, AutomationException
button
- The button (in)shift
- The shift (in)x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void onKeyDown(int keyState, int shift) throws IOException, AutomationException
keyState
- The keyState (in)shift
- The shift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void onKeyUp(int keyState, int shift) throws IOException, AutomationException
keyState
- The keyState (in)shift
- The shift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean onContextMenu(int x, int y) throws IOException, AutomationException
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refresh(int hdc) throws IOException, AutomationException
hdc
- The hdc (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCursor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPoint getAnchor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPoint getLocation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getConstraint() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConstraint(int constraint) throws IOException, AutomationException
constraint
- A com.esri.arcgis.editor.esriSketchConstraint constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getAngleConstraint() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAngleConstraint(double val) throws IOException, AutomationException
val
- The val (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDistanceConstraint() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDistanceConstraint(double val) throws IOException, AutomationException
val
- The val (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStreaming() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsStreaming(boolean isStreaming) throws IOException, AutomationException
isStreaming
- The isStreaming (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addPoint(IPoint point, boolean esri_clone, boolean allowUndo) throws IOException, AutomationException
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)esri_clone
- The esri_clone (in)allowUndo
- The allowUndo (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void sketchModified() throws IOException, AutomationException
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 |