|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEngineInkEnvironment
Provides access to members that control the EngineInkEnvironment singleton.
The IEngineInkEnvironment interface manages the state of ink collection and the ink sketch.
Method Summary | |
---|---|
void |
clear()
Deletes any active ink from the screen. |
int |
getInkCollectionMode()
Indicates if the extension is collecting ink. |
Object |
getInkCollector()
The internal ink collecting object. |
Object |
getInkGeometry()
The current Ink sketch as a geometry. |
float |
getToolCommitDelay()
The auto commit delay interval in seconds. |
int |
getToolCommitType()
The ink tool commit type. |
boolean |
isAlwaysShowAlternates()
Indicates if the alternates dialog will always be shown when performing text recognition. |
boolean |
isAutoRecognizeInkGraphics()
Indicates whether to attempt to recognize newly created InkGraphics as text. |
boolean |
isGeneralizeInk()
Indicates whether the Ink should be generalized. |
boolean |
isMapNavigationGesturesEnabled()
Indicates whether the map navigation gestures should be enabled. |
boolean |
isOnlyEraseActiveInkSketch()
Indicates if only the active ink sketch may be erased. |
boolean |
isPressureSensitiveStylus()
Indicates if the ink stylus is pressure-sensitive. |
boolean |
isProjectInkGraphicGeometry()
Indicates whether to project an InkGraphic's Geometry. |
boolean |
isScratchoutEnabled()
Indicates whether the scratch-out gesture should be enabled. |
void |
setAlwaysShowAlternates(boolean showAlternates)
Indicates if the alternates dialog will always be shown when performing text recognition. |
void |
setAutoRecognizeInkGraphics(boolean autoRecognize)
Indicates whether to attempt to recognize newly created InkGraphics as text. |
void |
setGeneralizeInk(boolean generalizeInk)
Indicates whether the Ink should be generalized. |
void |
setMapNavigationGesturesEnabled(boolean pEnabled)
Indicates whether the map navigation gestures should be enabled. |
void |
setOnlyEraseActiveInkSketch(boolean onlyActive)
Indicates if only the active ink sketch may be erased. |
void |
setPressureSensitiveStylus(boolean usePressureSensitive)
Indicates if the ink stylus is pressure-sensitive. |
void |
setProjectInkGraphicGeometry(boolean projectInkGraphics)
Indicates whether to project an InkGraphic's Geometry. |
void |
setScratchoutEnabled(boolean pScratchout)
Indicates whether the scratch-out gesture should be enabled. |
void |
setToolCommitDelay(float pDelay)
The auto commit delay interval in seconds. |
void |
setToolCommitType(int pToolCommitType)
The ink tool commit type. |
void |
start(boolean bGesturesOnly)
Starts obtaining ink from the stylus. |
void |
stop(boolean bKeepInk)
Stops obtaining ink from the stylus. |
Method Detail |
---|
void start(boolean bGesturesOnly) throws IOException, AutomationException
Starts the collection of ink from the stylus. Access the ink collected using the InkGeometry property or as a Microsoft InkOverlay object using the InkCollector property.
bGesturesOnly
- The bGesturesOnly (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void stop(boolean bKeepInk) throws IOException, AutomationException
Stops the collection of ink from the stylus. Access the ink collected using the InkGeometry property or as a Microsoft InkOverlay object using the InkCollector property.
bKeepInk
- The bKeepInk (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clear() throws IOException, AutomationException
Clears the ink strokes from the ink collection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getInkCollectionMode() throws IOException, AutomationException
Returns the current collection mode of the class. There are 3 modes for collection: NotCollecting, InkAndGestures, and Gestures only. Note that gestures are supported on tablet pcs only.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getInkCollector() throws IOException, AutomationException
Returns an InkOverlay object. To get the InkOverlay object, reference the Microsoft Tablet PC Type Library. Properties of the Ink itself can be changed with the native Ink objects.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setToolCommitType(int pToolCommitType) throws IOException, AutomationException
pToolCommitType
- A com.esri.arcgis.controls.esriEngineInkToolCommitType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getToolCommitType() throws IOException, AutomationException
The ToolCommitType property controls the Tablet "Auto-Finish" options that are on the Tablet Options dialog. If the ToolCommitType is not set to ETPC_Manual, then the ToolCommitDelay is used to automatically complete the ink sketch within x number of seconds.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setToolCommitDelay(float pDelay) throws IOException, AutomationException
pDelay
- The pDelay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.float getToolCommitDelay() throws IOException, AutomationException
The ToolCommitDelay property is used to automatically complete the ink sketch within x number of seconds. If the ToolCommitType is set to ETPC_Manual, then this property is not used.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPressureSensitiveStylus(boolean usePressureSensitive) throws IOException, AutomationException
usePressureSensitive
- The usePressureSensitive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isPressureSensitiveStylus() throws IOException, AutomationException
Enables or disables the pressure sensitivity of the stylus.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setGeneralizeInk(boolean generalizeInk) throws IOException, AutomationException
generalizeInk
- The generalizeInk (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isGeneralizeInk() throws IOException, AutomationException
Generalizes the ink sketch to reduce the size of the ink geometry that is created.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getInkGeometry() throws IOException, AutomationException
A representation of the Ink that has been captured.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAutoRecognizeInkGraphics(boolean autoRecognize) throws IOException, AutomationException
autoRecognize
- The autoRecognize (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAutoRecognizeInkGraphics() throws IOException, AutomationException
When AutoRecgonizeInkGraphics is set to true, every time that an ink graphic is created or updated, its ink will be recognized and the textual representation will be stored with the graphic element. The ControlsInkFindInkCommand will then use the text property to search for ink stored in a graphics layer. This is important if the Find is going to be performed on a non-tablet pc as recognition is only support on tablets.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setScratchoutEnabled(boolean pScratchout) throws IOException, AutomationException
pScratchout
- The pScratchout (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isScratchoutEnabled() throws IOException, AutomationException
The ScratchOutEnabled property determines whether or not the ScratchOut gesture can be used to erase ink strokes. If ink is being used to create a graphic representation, pen motions can be confused as a scratch out gesture and therefore turning off this property can be quite useful.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setProjectInkGraphicGeometry(boolean projectInkGraphics) throws IOException, AutomationException
projectInkGraphics
- The projectInkGraphics (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isProjectInkGraphicGeometry() throws IOException, AutomationException
Sets whether or not ink will rendered as polylines when the data frame is projected. If the projection is quite different from the projection that ink was captured in, the ink display result may be less than desirable. By rendering as polyline geometry, the result will be slightly coarse, but more legible.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAlwaysShowAlternates(boolean showAlternates) throws IOException, AutomationException
showAlternates
- The showAlternates (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAlwaysShowAlternates() throws IOException, AutomationException
When using the ControlsInkFindInkCommand, alternate text representations can be shown if recognition results are poor. Setting the AlwaysShowAlternates to true will force the ControlsInkFindInkCommand to display all textual representations of the ink sketched.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOnlyEraseActiveInkSketch(boolean onlyActive) throws IOException, AutomationException
onlyActive
- The onlyActive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isOnlyEraseActiveInkSketch() throws IOException, AutomationException
Indicates whether or not the ControlsInkEraserTool can delete just the active ink sketch or any ink from the map. When the OnlyEraseActiveInkSketch is set to true the ControlsInkEraserTool will only remove ink that has not yet been committed (i.e. active). When the OnlyEraseActiveInkSketch is set to false the ControlsInkEraserTool will delete any ink from the map.
By default only the active ink sketch can be erased.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMapNavigationGesturesEnabled(boolean pEnabled) throws IOException, AutomationException
pEnabled
- The pEnabled (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isMapNavigationGesturesEnabled() throws IOException, AutomationException
Indicates whether or not a map navigation gesture can be made using a pen. Map navigation gestures are only supported on platforms that recognize gestures (e.g. Microsoft Windows XP Tablet PC Edition or the appropriate Tablet PC SDK).
If ink is being used to create graphic representation then pen motions (e.g. V) can be confused as map gestures (Pan Down) and therefore it is useful to be able to turn off this property, by setting MapNavigationGesturesEnabled to false.
By default map navigation gestures are disabled.
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 |