Click or drag to resize

XYPlotLayerContentsController Class

Provides drag support for available items in the X/Y plot layer contents controller.
Inheritance Hierarchy

Namespace: Altaxo.Gui.Graph.Gdi.Plot
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class XYPlotLayerContentsController : MVCANControllerEditOriginalDocBase<PlotItemCollection, IXYPlotLayerContentsView>

The XYPlotLayerContentsController type exposes the following members.

Constructors
 NameDescription
Public methodXYPlotLayerContentsController Initializes a new instance of the XYPlotLayerContentsController class.
Top
Properties
 NameDescription
Public propertyAvailableContent Initializes the treeview of available data with content.
Public propertyAvailableItemsDragHandler Gets or sets the a va il ab le it em sd ra gh an dl er.
Public propertyCmdPlotItemDoubleClick Gets or sets the c md pl ot it em do ub le cl ic k.
Public propertyCmdPlotItemOpen Gets or sets the c md pl ot it em op en.
Public propertyCmdPlotItemsCopy Gets or sets the c md pl ot it em sc op y.
Public propertyCmdPlotItemsCut Gets or sets the c md pl ot it em sc ut.
Public propertyCmdPlotItemsDelete Gets or sets the c md pl ot it em sd el et e.
Public propertyCmdPlotItemsEditRange Gets or sets the c md pl ot it em se di tr an ge.
Public propertyCmdPlotItemsGroupIntoExistent Gets or sets the c md pl ot it em sg ro up in to ex is te nt.
Public propertyCmdPlotItemsGroupIntoNew Gets or sets the c md pl ot it em sg ro up in to ne w.
Public propertyCmdPLotItemsMoveDownSelected Gets or sets the c md pl ot it em sm ov ed ow ns el ec te d.
Public propertyCmdPLotItemsMoveUpSelected Gets or sets the c md pl ot it em sm ov eu ps el ec te d.
Public propertyCmdPlotItemsPaste Gets or sets the c md pl ot it em sp as te.
Public propertyCmdPlotItemsUngroup Gets or sets the c md pl ot it em su ng ro up.
Public propertyCmdPutDataToPlotItems Gets or sets the c md pu td at at op lo ti te ms.
Public propertyCommandChangeColumnsForSelectedItems Gets or sets the c om ma nd ch an ge co lu mn sf or se le ct ed it em s.
Public propertyCommandChangeTableForSelectedItems Gets or sets the c om ma nd ch an ge ta bl ef or se le ct ed it em s.
Protected propertyCreateNotInitializedException Gets an exception that is thrown when the controller was not initialized with a document.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Protected propertyCreateNoViewException Gets an exception that is thrown when the controller currently has no view.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Public propertyDataClipping The data clipping choices.
Public propertyDocGets 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)
Public propertyIsDisposed Gets a value indicating whether this controller is already disposed.
(Inherited from ControllerBase)
Public propertyModelObject Gets the model (document) that this controller manages.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Protected propertyNoDocumentException Gets an exception that is thrown when a controller was not initialized with a document.
(Inherited from ControllerBase)
Protected propertyNotInitializedException Gets an exception that is thrown when a controller is not properly initialized.
(Inherited from ControllerBase)
Protected propertyNoViewException Gets an exception that is thrown when a controller currently has no view.
(Inherited from ControllerBase)
Public propertyPlotItems Initializes the content list box by setting the items.
Public propertyPlotItemsDragDropHandler Gets or sets the p lo ti te ms dr ag dr op ha nd le r.
Public propertyShowRange Provides access to this member.
Public propertyUseDocumentCopy 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)
Public propertyViewObject Gets or sets the GUI element that shows the model to the user.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns if applying succeeded.
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewApply(Boolean))
Protected methodApplyEnd 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)
Protected methodAttachView 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)
Public methodAvailableItems_PutDataToPlotItems Puts the selected data columns into the plot content.
Protected methodCheckDocumentInitializedT Checks whether the document has been initialized and throws an exception if it is null.
(Inherited from ControllerBase)
Public methodContentsListBox_MoveUpDown Moves the selected plot-item nodes up or down.
Protected methodDetachView 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)
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from ControllerBase)
Public methodDispose(Boolean) Releases unmanaged and, optionally, managed resources.
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewDispose(Boolean))
Public methodEhShowRangeChanged Updates the displayed plot-item names after the range display option changed.
Public methodEhView_DataAvailableBeforeExpand Loads the available data columns before a table node is expanded.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSubControllers 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)
Protected methodGetSuspendTokenForControllerDocument Gets the suspend token for the controller document. Here we try to suspend the parent XYPlotLayer instead of the PlotItemCollection, because we want to modify the clipping property of the layer too.
(Overrides MVCANControllerEditOriginalDocBaseTModel, TViewGetSuspendTokenForControllerDocument)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize 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))
Public methodInitializeDocument Initialize the controller with the document. If successful, the function has to return .
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnPropertyChanged Raises the PropertyChanged event.
(Inherited from ControllerBase)
Public methodPlotItem_DoubleClick Performs the p lo ti te m d ou bl ec li ck operation.
Public methodPlotItem_Open Performs the p lo ti te m o pe n operation.
Public methodPlotItems_CanCopy Determines whether plot items can currently be copied.
Public methodPlotItems_CanCut Determines whether plot items can currently be cut.
Public methodPlotItems_CanDelete Determines whether plot items can currently be deleted.
Public methodPlotItems_CanPaste Determines whether plot items can currently be pasted.
Public methodPlotItems_Copy Performs the p lo ti te ms c op y operation.
Public methodPlotItems_Cut Performs the p lo ti te ms c ut operation.
Public methodPlotItems_Delete Performs the p lo ti te ms d el et e operation.
Public methodPlotItems_EditRangeClick Performs the p lo ti te ms e di tr an ge cl ic k operation.
Public methodPlotItems_GroupClick Group the selected nodes.
Public methodPlotItems_GroupIntoExistentGroup Group the selected nodes. The items were grouped into the first group that was selected. If no group is selected, the items are grouped into a new group.
Public methodPlotItems_GroupIntoNewGroup Group the selected nodes into a new group.
Public methodPlotItems_MoveDownSelected Performs the p lo ti te ms m ov ed ow ns el ec te d operation.
Public methodPlotItems_MoveUpSelected Performs the p lo ti te ms m ov eu ps el ec te d operation.
Public methodPlotItems_Paste Performs the p lo ti te ms p as te operation.
Public methodPlotItems_UngroupClick Performs the p lo ti te ms u ng ro up cl ic k operation.
Public methodRevert Tries to revert changes to the model, i.e. restores the original state of the model.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Protected methodThrowIfNotInitializedThrows an exception if the controller is not initialized with a document.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChangedOccurs when a property value changes.
(Inherited from ControllerBase)
Top
Fields
 NameDescription
Protected field_clonedCopyOfDocCloned 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)
Protected field_docThe document to edit.
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Protected field_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)
Protected field_useDocumentCopyIf 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)
Protected field_viewThe Gui view of this controller
(Inherited from MVCANControllerEditOriginalDocBaseTModel, TView)
Top
See Also