Conforms to NSObject
Declared in DIWDiagramView.h

Overview

The DIWDiagramViewDelegate protocol defines the methods you can implement to be notified of the activity of a DIWDiagramView object. These methods allow to monitor events such as configuration, recognition or a change in the Undo Redo stack.

All of the methods in this protocol are optional.

Instance Methods

diagramView:didFailWithError:

Tells the delegate that the Diagram Widget has failed.

- (void)diagramView:(DIWDiagramView *)diagramView didFailWithError:(NSError *)error

Parameters

diagramView

The diagram view that has failed.

error

An NSError object that encapsulates information why failed.

Declared In

DIWDiagramView.h

diagramView:didPenDownWithCaptureInfo:

Tells the delegate that diagram user has started touching the screen.

- (void)diagramView:(DIWDiagramView *)diagramView didPenDownWithCaptureInfo:(DIWCaptureInfo *)captureInfo

Parameters

diagramView

The diagram view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

DIWDiagramView.h

diagramView:didPenMoveWithCaptureInfo:

Tells the delegate that diagram user continue to touch the screen.

- (void)diagramView:(DIWDiagramView *)diagramView didPenMoveWithCaptureInfo:(DIWCaptureInfo *)captureInfo

Parameters

diagramView

The diagram view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

DIWDiagramView.h

diagramView:didPenUpWithCaptureInfo:

Tells the delegate that diagram user has ending touching the screen.

- (void)diagramView:(DIWDiagramView *)diagramView didPenUpWithCaptureInfo:(DIWCaptureInfo *)captureInfo

Parameters

diagramView

The diagram view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

DIWDiagramView.h

diagramViewDidChangeUndoRedoState:

Tells the delegate that the Diagram Widget Undo/Redo stack has changed.

- (void)diagramViewDidChangeUndoRedoState:(DIWDiagramView *)diagramView

Parameters

diagramView

The diagram view whose Undo/Redo stack has changed.

Declared In

DIWDiagramView.h

diagramViewDidModifySelection:

Tells the delegate that the Diagram Widget has modified the selection.

- (void)diagramViewDidModifySelection:(DIWDiagramView *)diagramView

Parameters

diagramView

The diagram view that has modified the selection.

Declared In

DIWDiagramView.h

diagramViewDidPenAbort:

Tells the delegate that the user has aborted touching the screen.

- (void)diagramViewDidPenAbort:(DIWDiagramView *)diagramView

Parameters

diagramView

The diagram view that has stopped receiving touches.

Declared In

DIWDiagramView.h

diagramViewDidSessionEnd:

Tells the delegate that the Diagram Widget has ended a recognition process.

- (void)diagramViewDidSessionEnd:(DIWDiagramView *)diagramView

Parameters

diagramView

The diagram view that has ended a recognition process.

Declared In

DIWDiagramView.h

diagramViewDidSessionStart:

Tells the delegate that the Diagram Widget has begun a recognition session.

- (void)diagramViewDidSessionStart:(DIWDiagramView *)diagramView

Parameters

diagramView

The diagram view that has begun a recognition process.

Discussion

A recognition session starts when the user starts writing on the screen. The session can also start after an undo or redo or a after any context restoration such as screen rotation.

Declared In

DIWDiagramView.h