IGraph |
public interface IGraphController : IMVCANController, IMVCAController, IMVCController, IDisposable, IApplyController
The IGraphController type exposes the following members.
| Name | Description | |
|---|---|---|
| ActiveLayer | Returns the currently active layer, or null if there is no active layer. | |
| CurrentPlotNumber | Gets or sets the currently active plot number. | |
| Doc | This returns the GraphDocument that is managed by this controller. | |
| ModelObject |
Gets the model (document) that this controller manages.
(Inherited from IMVCController) | |
| UseDocumentCopy |
Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied,
all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted.
Use the last option if a controller higher in the hierarchy has already made a copy of the document.
(Inherited from IMVCANController) | |
| ViewObject |
Gets or sets the GUI element that shows the model to the user.
(Inherited from IMVCController) |
| Name | Description | |
|---|---|---|
| Apply |
Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
(Inherited from IApplyController) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) | |
| EnsureValidityOfCurrentLayerNumber | Checks the validity of the current layer number and corrects it if necessary. | |
| EnsureValidityOfCurrentPlotNumber | This ensures that the current plot number is valid. If there is no plot on the currently active layer, the current plot number is set to -1. | |
| InitializeDocument |
Initializes the controller with the document.
(Inherited from IMVCANController) | |
| Revert |
Try to revert changes to the model, i.e. restores the original state of the model.
(Inherited from IApplyController) |