|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.EngineInkEnvironment
public class EngineInkEnvironment
A singleton object representing Engine ink environment.
The EngineInkEnvironment object is a singleton object (only one instance of the EngineInkEnvironment object is supported per thread) that manages the state of ink collection and the ink sketch.
Constructor Summary | |
---|---|
EngineInkEnvironment()
Constructs a EngineInkEnvironment using ArcGIS Engine. |
|
EngineInkEnvironment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. EngineInkEnvironment theEngineInkEnvironment = (EngineInkEnvironment) obj; |
Method Summary | |
---|---|
void |
addIEngineInkEnvironmentEventsListener(IEngineInkEnvironmentEvents theListener)
addIEngineInkEnvironmentEventsListener. |
void |
afterDraw(IActiveViewEventsAfterDrawEvent theEvent)
Fired after the specified phase is drawn. |
void |
afterItemDraw(IActiveViewEventsAfterItemDrawEvent theEvent)
Fired after an individual view item is drawn. |
void |
allElementsDeleted(IGraphicsContainerEventsAllElementsDeletedEvent theEvent)
Occurs when all the elements are deleted. |
void |
clear()
Deletes any active ink from the screen. |
void |
contentsChanged(IActiveViewEventsContentsChangedEvent theEvent)
Fired when the contents of the view changes. |
void |
contentsCleared(IActiveViewEventsContentsClearedEvent theEvent)
Fired when the contents of the view is cleared. |
void |
elementAdded(IGraphicsContainerEventsElementAddedEvent theEvent)
Occurs when the element is added. |
void |
elementDeleted(IGraphicsContainerEventsElementDeletedEvent theEvent)
Occurs when the element is deleted. |
void |
elementsAdded(IGraphicsContainerEventsElementsAddedEvent theEvent)
Occurs when the elements are added. |
void |
elementUpdated(IGraphicsContainerEventsElementUpdatedEvent theEvent)
Occurs when the element is updated. |
boolean |
equals(Object o)
Compare this object with another |
void |
focusMapChanged(IActiveViewEventsFocusMapChangedEvent theEvent)
Fired when a new map is made active. |
static String |
getClsid()
getClsid. |
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. |
int |
hashCode()
the hashcode for this object |
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 |
itemAdded(IActiveViewEventsItemAddedEvent theEvent)
Fired when an item is added to the view. |
void |
itemDeleted(IActiveViewEventsItemDeletedEvent theEvent)
Fired when an item is deleted from the view. |
void |
itemReordered(IActiveViewEventsItemReorderedEvent theEvent)
Fired when a view item is reordered. |
void |
removeIEngineInkEnvironmentEventsListener(IEngineInkEnvironmentEvents theListener)
removeIEngineInkEnvironmentEventsListener. |
void |
selectionChanged(IActiveViewEventsSelectionChangedEvent theEvent)
Call this function to fire the selection changed event. |
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 |
spatialReferenceChanged(IActiveViewEventsSpatialReferenceChangedEvent theEvent)
Fired when the spatial reference is changed. |
void |
start(boolean bGesturesOnly)
Starts obtaining ink from the stylus. |
void |
stop(boolean bKeepInk)
Stops obtaining ink from the stylus. |
void |
viewRefreshed(IActiveViewEventsViewRefreshedEvent theEvent)
Fired when view is refreshed before draw happens. |
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 EngineInkEnvironment() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic EngineInkEnvironment(Object obj) throws IOException
EngineInkEnvironment theEngineInkEnvironment = (EngineInkEnvironment) obj;
obj
to EngineInkEnvironment
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void addIEngineInkEnvironmentEventsListener(IEngineInkEnvironmentEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.controls.IEngineInkEnvironmentEvents interface.
IOException
- If there are communications problems.public void removeIEngineInkEnvironmentEventsListener(IEngineInkEnvironmentEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.controls.IEngineInkEnvironmentEvents interface.
IOException
- If there are communications problems.public 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.
start
in interface IEngineInkEnvironment
bGesturesOnly
- The bGesturesOnly (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
stop
in interface IEngineInkEnvironment
bKeepInk
- The bKeepInk (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clear() throws IOException, AutomationException
Clears the ink strokes from the ink collection.
clear
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getInkCollectionMode
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getInkCollector
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setToolCommitType(int pToolCommitType) throws IOException, AutomationException
setToolCommitType
in interface IEngineInkEnvironment
pToolCommitType
- A com.esri.arcgis.controls.esriEngineInkToolCommitType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getToolCommitType
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setToolCommitDelay(float pDelay) throws IOException, AutomationException
setToolCommitDelay
in interface IEngineInkEnvironment
pDelay
- The pDelay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getToolCommitDelay
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPressureSensitiveStylus(boolean usePressureSensitive) throws IOException, AutomationException
setPressureSensitiveStylus
in interface IEngineInkEnvironment
usePressureSensitive
- The usePressureSensitive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isPressureSensitiveStylus() throws IOException, AutomationException
Enables or disables the pressure sensitivity of the stylus.
isPressureSensitiveStylus
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGeneralizeInk(boolean generalizeInk) throws IOException, AutomationException
setGeneralizeInk
in interface IEngineInkEnvironment
generalizeInk
- The generalizeInk (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isGeneralizeInk() throws IOException, AutomationException
Generalizes the ink sketch to reduce the size of the ink geometry that is created.
isGeneralizeInk
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getInkGeometry() throws IOException, AutomationException
A representation of the Ink that has been captured.
getInkGeometry
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoRecognizeInkGraphics(boolean autoRecognize) throws IOException, AutomationException
setAutoRecognizeInkGraphics
in interface IEngineInkEnvironment
autoRecognize
- The autoRecognize (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isAutoRecognizeInkGraphics
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setScratchoutEnabled(boolean pScratchout) throws IOException, AutomationException
setScratchoutEnabled
in interface IEngineInkEnvironment
pScratchout
- The pScratchout (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isScratchoutEnabled
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setProjectInkGraphicGeometry(boolean projectInkGraphics) throws IOException, AutomationException
setProjectInkGraphicGeometry
in interface IEngineInkEnvironment
projectInkGraphics
- The projectInkGraphics (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isProjectInkGraphicGeometry
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAlwaysShowAlternates(boolean showAlternates) throws IOException, AutomationException
setAlwaysShowAlternates
in interface IEngineInkEnvironment
showAlternates
- The showAlternates (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isAlwaysShowAlternates
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOnlyEraseActiveInkSketch(boolean onlyActive) throws IOException, AutomationException
setOnlyEraseActiveInkSketch
in interface IEngineInkEnvironment
onlyActive
- The onlyActive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isOnlyEraseActiveInkSketch
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapNavigationGesturesEnabled(boolean pEnabled) throws IOException, AutomationException
setMapNavigationGesturesEnabled
in interface IEngineInkEnvironment
pEnabled
- The pEnabled (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isMapNavigationGesturesEnabled
in interface IEngineInkEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void elementAdded(IGraphicsContainerEventsElementAddedEvent theEvent) throws IOException, AutomationException
elementAdded
in interface IGraphicsContainerEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void elementsAdded(IGraphicsContainerEventsElementsAddedEvent theEvent) throws IOException, AutomationException
elementsAdded
in interface IGraphicsContainerEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void elementDeleted(IGraphicsContainerEventsElementDeletedEvent theEvent) throws IOException, AutomationException
elementDeleted
in interface IGraphicsContainerEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void allElementsDeleted(IGraphicsContainerEventsAllElementsDeletedEvent theEvent) throws IOException, AutomationException
allElementsDeleted
in interface IGraphicsContainerEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void elementUpdated(IGraphicsContainerEventsElementUpdatedEvent theEvent) throws IOException, AutomationException
elementUpdated
in interface IGraphicsContainerEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void contentsChanged(IActiveViewEventsContentsChangedEvent theEvent) throws IOException, AutomationException
The Map object fires this event when a new document is loaded. Adding a new layer to a Map does not trigger this event.
The PageLayout object fires the event when IGraphicsContainer::DeleteAllElements in called and when a new document is loaded.
contentsChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IActiveView.contentsChanged()
public void contentsCleared(IActiveViewEventsContentsClearedEvent theEvent) throws IOException, AutomationException
contentsCleared
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void itemAdded(IActiveViewEventsItemAddedEvent theEvent) throws IOException, AutomationException
The Map fires the event every time a new layer is added.
The PageLayout fires this event whenever a new element is added to the layout. Elements include not only graphics but data frames as well.
itemAdded
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void itemDeleted(IActiveViewEventsItemDeletedEvent theEvent) throws IOException, AutomationException
The PageLayout object fires this event whenever elements are deleted from the layout.
The Map object fires this event when a layer is removed.
itemDeleted
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void itemReordered(IActiveViewEventsItemReorderedEvent theEvent) throws IOException, AutomationException
The Map objects only fire this event whenever IMap::MoveLayer is called. In the ArcMap application, this occurs when you reorder layers in the table of contents. The Map will also fire this event when new layers are added.
The PageLayout object fires this event when changing the order of graphics. For example, IGraphicsContainer::BringToFront, PutElementOrder, SendToBack, SendBackward, and BringForward all fire this event. These functions are on ArcMap's Drawing menu under the Order pull right menu. Although the Map object is also a graphics container, it does not fire this event when its graphics are reordered.
itemReordered
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectionChanged(IActiveViewEventsSelectionChangedEvent theEvent) throws IOException, AutomationException
selectionChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void viewRefreshed(IActiveViewEventsViewRefreshedEvent theEvent) throws IOException, AutomationException
Method that gets fired in response to IActiveView::Refresh and IActiveView::PartialRefresh.
This event is useful in the case where you're watching for something to change in the view and there aren't any specific events for that change (e.g. ContentsChanged, ItemAdded). You can always listen for this method as a last resort. Care must be taken however to be very efficient in your implementation of this event because it will be called quite often.
The event parameters directly coincide with the arguments to IActiveView::PartialRefresh. For additional information about the arguments, see the help for that method.
If the event object connects to both the layout and a map, then the view parameter tells you which object initiated the event.
In an implementation of this method you typically want to check the phase and respond to only one. Otherwise, your code will execute multiple times per drawing sequence.
viewRefreshed
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void afterDraw(IActiveViewEventsAfterDrawEvent theEvent) throws IOException, AutomationException
afterDraw
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void afterItemDraw(IActiveViewEventsAfterItemDrawEvent theEvent) throws IOException, AutomationException
AfterItemDraw can be used to execute after each individual item has drawn. Event firing can be an expensive operation (time consuming) when there are many layers in a map, however. As a result, the AfterItemDraw event is only fired when the IViewManger::VerboseEvents property is set to True. By default this property is False.
afterItemDraw
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void focusMapChanged(IActiveViewEventsFocusMapChangedEvent theEvent) throws IOException, AutomationException
focusMapChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void spatialReferenceChanged(IActiveViewEventsSpatialReferenceChangedEvent theEvent) throws IOException, AutomationException
spatialReferenceChanged
in interface IActiveViewEvents
theEvent
- The event
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 |