Scale |
public class ScaleWithTicksController : MVCANControllerEditOriginalDocInstanceCanChangeBase<Scale, IScaleWithTicksView>
The ScaleWithTicksController type exposes the following members.
| Name | Description | |
|---|---|---|
| ScaleWithTicksController | Initializes a new instance of the ScaleWithTicksController class. |
| Name | Description | |
|---|---|---|
| CreateNotInitializedException |
Gets an exception that is thrown when the controller was not initialized with a document.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| CreateNoViewException |
Gets an exception that is thrown when the controller currently has no view.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| Doc | Gets the current document of this controller. If the document is null, an InvalidOperationException is thrown. To check whether
the document is null, check the member _doc directly. (Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| IsDisposed |
Gets a value indicating whether this controller is already disposed.
(Inherited from ControllerBase) | |
| LinkedScaleParameterController | Gets or sets the controller for parameters of a linked scale. | |
| LinkScaleChoices | Gets or sets the selectable target scales for linking. | |
| LinkScaleType | Gets or sets a value indicating whether the scale type is linked to the target scale. | |
| LinkTicksStraight | Gets or sets a value indicating whether the tick spacing is linked to the target scale. | |
| ModelObject |
Gets the model (document) that this controller manages.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| NoDocumentException |
Gets an exception that is thrown when a controller was not initialized with a document.
(Inherited from ControllerBase) | |
| NotInitializedException |
Gets an exception that is thrown when a controller is not properly initialized.
(Inherited from ControllerBase) | |
| NoViewException |
Gets an exception that is thrown when a controller currently has no view.
(Inherited from ControllerBase) | |
| RescalingController | Gets or sets the controller that edits the rescaling settings. | |
| ScaleController | Gets or sets the controller that edits the scale-specific parameters. | |
| ScaleLinkedTo | Gets or sets the scale to which the edited scale is linked. | |
| ScaleToEdit | Gets or sets the scale to edit. This is the scale that is shown in the dialog. If _doc is a LinkedScale, the ScaleToEdit is the scale wrapped by the LinkedScale. Otherwise it is _doc. | |
| ScaleTypes | Gets or sets the selectable scale types. | |
| ShowLinkTargets | Gets or sets a value indicating whether the link targets are shown. | |
| ShowOtherLinkProperties | Gets or sets a value indicating whether additional link properties are shown. | |
| TickSpacingController | Gets or sets the controller that edits the tick-spacing settings. | |
| TickSpacingTypes | Gets or sets the selectable tick-spacing types. | |
| 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 MVCANControllerEditOriginalDocBaseTModel, TView) | |
| ViewObject |
Gets or sets the GUI element that shows the model to the user.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) |
| Name | Description | |
|---|---|---|
| Apply |
Called when the user input has to be applied to the document being controlled. Returns if applying succeeded.
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewApply(Boolean)) | |
| ApplyEnd |
Standard procedure at the end of the apply phase. If the applyResult is true, the controller is either disposed (if disposeController is true) or
the document is temporarily resumed (if disposeController is false). Nothing is done if applyResult is false.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| AttachView |
Override this function to attach the view to the controller, either by subscribing to events of the view, or by setting the controller object on the view.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| CheckDocumentInitializedT |
Checks whether the document has been initialized and throws an exception if it is null.
(Inherited from ControllerBase) | |
| DetachView |
Override this function to detach the view from the controller, either by unsubscribing to events of the view, or by setting the controller object on the view to null.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ControllerBase) | |
| Dispose(Boolean) |
Releases unmanaged and, optionally, managed resources.
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewDispose(Boolean)) | |
| EhView_LinkTargetChanged | Handles changes to the selected link target. | |
| EhView_ScaleTypeChanged | Handles changes to the selected scale type. | |
| EhView_TickSpacingTypeChanged | Handles changes to the selected tick-spacing type. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetSubControllers |
Enumerates the sub controllers. This function is called on Dispose(Boolean) of this controller to dispose the sub controllers too.
By overriding this function, there is no need to override Dispose(Boolean).
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewGetSubControllers) | |
| GetSuspendTokenForControllerDocument |
Gets the suspend token for the controller document. This default implementation calls SuspendGetToken() on the document if it implements ISuspendableByToken.
By overriding this function, you can suspend parent nodes in case it is necessary to modify nodes at lower levels of the hierarchy.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Initialize |
Basic initialization of the document.
Here, it is tried to suspend the event handling of the document by calling GetSuspendTokenForControllerDocument (but only if _useDocumentCopy is true).
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewInitialize(Boolean)) | |
| InitializeDocument |
Initialize the controller with the document. If successful, the function has to return .
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| InitLinkProperties | Initializes the properties that are only relevant for linked scales. | |
| InitRescalingController | Initializes the controller that edits the rescaling settings. | |
| InitScaleController | Initializes the controller that edits the scale-specific settings. | |
| InitScaleTypes | Initializes the list of selectable scale types. | |
| InitTickSpacingController | Initializes the controller that edits the tick-spacing settings. | |
| InitTickSpacingTypes | Initializes the list of selectable tick-spacing types. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnDocumentInstanceChanged |
Updates the controller after the model instance has changed.
(Inherited from MVCANControllerEditOriginalDocInstanceCanChangeBaseTModel, TView) | |
| OnPropertyChanged |
Raises the PropertyChanged event.
(Inherited from ControllerBase) | |
| Revert |
Tries to revert changes to the model, i.e. restores the original state of the model.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| ThrowIfNotInitialized | Throws an exception if the controller is not initialized with a document. (Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| PropertyChanged | Occurs when a property value changes. (Inherited from ControllerBase) |
| Name | Description | |
|---|---|---|
| _clonedCopyOfDoc | Cloned copy of the document (is null if _useDocumentCopy is false). Used to revert the edited document to the state before editing. (Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| _doc | The document to edit. (Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| _lockScaleType | If true, the scale type can not be changed. | |
| _setInstanceInParentNode |
Action that updates the edited instance in the parent node.
(Inherited from MVCANControllerEditOriginalDocInstanceCanChangeBaseTModel, TView) | |
| _suspendToken |
The suspend token of the document being edited. If _useDocumentCopy is false, we assume that a controller higher in the hierarchy has made a copy
of the document, thus we do not use a suspend token for the document.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| _useDocumentCopy | If true, a copy of the document is made before editing; this copy can later be used to revert the state of the document to the original state. (Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) | |
| _view | The Gui view of this controller (Inherited from MVCANControllerEditOriginalDocBaseTModel, TView) |