Click or drag to resize

GraphController Methods

The GraphController type exposes the following members.

Methods
 NameDescription
Public methodApply Applies the controller changes.
Public methodArrange Arranges the objects so they share a common boundary.
Public methodArrangeBottomToBottom Arranges the objects so they share the bottom boundary with the bottom boundary of the master element.
Public methodArrangeBottomToTop Arranges the objects so they share the bottom boundary with the top boundary of the master element.
Public methodArrangeHorizontal Arranges the objects so they share the vertical middle line of the last selected object.
Public methodArrangeHorizontalTable Arranges the objects so they their vertical middle line is uniform spaced between the first and the last selected object.
Public methodArrangeLeftToLeft Arranges the objects so they share the left boundary with the left boundary of the master element.
Public methodArrangeLeftToRight Arranges the objects so they share the left boundary with the right boundary of the master element.
Public methodArrangeRightToLeft Arranges the objects so they share the right boundary with the left boundary of the master element.
Public methodArrangeRightToRight Arranges the objects so they share the right boundary with the right boundary of the master element.
Public methodArrangeSameHorizontalSize Arranges the selected objects to have the same horizontal size.
Public methodArrangeSameSizeBase Arranges the selected objects to match the master size using the specified routine.
Public methodArrangeSameVerticalSize Arranges the selected objects to have the same vertical size.
Public methodArrangeTopToBottom Arranges the objects so they share the top boundary with the bottom boundary of the master element.
Public methodArrangeTopToTop Arranges the objects so they share the top boundary with the top boundary of the master element.
Public methodArrangeVertical Arranges the objects so they share the horizontal middle line of the last selected object.
Public methodArrangeVerticalTable Arranges the objects so they their horizontal middle line is uniform spaced between the first and the last selected object.
Public methodBuildNavPoint Builds an INavigationPoint for the current position.
(Inherited from AbstractViewContent)
Protected methodCanClose Determines whether the view content can be closed.
(Inherited from AbstractViewContent)
Public methodClearIsDirty Clears the dirty state.
(Inherited from AbstractViewContent)
Public methodCmdDelete Deletes the selected objects or, if none are selected, the graph document.
Public methodConvertGraphCoordinateToScrollbarValueConverts a graph coordinate to scrollbar values. See the remarks in ConvertScrollbarValueToGraphCoordinate(PointD2D) to learn how the scroll bar parameters are set.
Public methodConvertGraphToMouseCoordinates Converts graph coordinates to wpf coordinates.
Public methodConvertMouseToRootLayerCoordinates Converts from mouse coordinates to graph coordinates.
Public methodConvertScrollbarValueToGraphCoordinateConverts the scrollbar values to the corresponding graph coordinate.
Public methodCopySelectedObjectsToClipboard Copy the selected objects of this graph to the clipboard.
Public methodCutSelectedObjectsToClipboard Cuts the selected objects to the clipboard.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides AbstractViewContentDispose)
Public methodDoPaintOverlay Infrastructure: intended to be used by graph views to draw the overlay (the selection rectangles and handles of the currently selected tool) into a bitmap.
Protected methodStatic memberEhEditPlotItem Handles the double click event onto a plot item.
Protected methodStatic memberEhEditTextGraphics Handles the double click event onto a plot item.
Protected methodEhGraph_BoundsChanged_Unsynchronized Updates the view after the graph bounds changed.
Protected methodEhGraph_Changed Called if something in the GraphDocument changed.
Protected methodEhGraph_LayerCollectionChanged Handler of the event LayerCollectionChanged of the graph document. Forces to check the LayerButtonBar to keep track that the number of buttons match the number of layers.
Protected methodEhGraph_LayerCollectionChanged_Unsynchronized Updates the layer structure after the layer collection changed.
Protected methodEhGraph_SizeChanged Handler of the event LayerCollectionChanged of the graph document. Forces to check the LayerButtonBar to keep track that the number of buttons match the number of layers.
Protected methodEhTitleLocalizationChanged Updates the title when the localized title changes.
(Inherited from AbstractViewContent)
Public methodEhView_CurrentGraphToolChanged Raises the notification that the current graph tool changed.
Public methodEhView_CurrentLayerChoosen Handles the selection of the current layer by the user.
Public methodEhView_GraphPanelMouseWheelHandles the mouse wheel event.
Public methodEhView_GraphPanelSizeChanged Handles the event when the size of the graph area is changed.
Public methodEhView_Scroll Updates the viewport position after the view scrollbars changed.
Public methodEhView_ShowDataContextMenu The controller should show a data context menu (contains all plots of the currentLayer).
Public methodEnsureValidityOfCurrentLayerNumber check the validity of the CurrentLayerNumber and correct it
Public methodEnsureValidityOfCurrentPlotNumber 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.
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 methodFindGraphObjectAtPixelPosition Looks for a graph object at pixel position pixelPos and returns true if one is found.
Public methodFindGraphObjectInRootLayerRectangle Finds graph objects inside the specified rectangle in root-layer coordinates.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetParentLayerOfSelectedObjects Determines the parent layer of the selected objects, as far as all selected objects belong to the same layer.
Public methodGetService(Type)Gets the service object of the specified type.
(Inherited from AbstractViewContent)
Public methodGetServiceT Gets a required service of the specified type.
(Inherited from AbstractViewContent)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGroupSelectedObjects Groups the selected objects to form a ShapeGroup.
Public methodHostWindowClosing Called if the host window is about to be closed.
Protected methodInitialize Initializes the controller and optionally reloads document-dependent state.
Public methodInitializeDocument Initializes the controller with the supplied document arguments.
Public methodIsCmdCopyEnabled Determines whether copy is currently enabled.
Public methodIsCmdCutEnabled Determines whether cut is currently enabled.
Public methodIsCmdDeleteEnabled Determines whether delete is currently enabled.
Public methodIsCmdPasteEnabled Determines whether paste is currently enabled.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMouseWheelScroll Scrolls horizontally or vertically in response to a mouse wheel scroll event.
Public methodMoveSelectedGraphItemsDown Moves the selected graph items one step down in z-order.
Public methodMoveSelectedGraphItemsToBottom Moves the selected graph items to the bottom of the z-order.
Public methodMoveSelectedGraphItemsToTop Moves the selected graph items to the top of the z-order.
Public methodMoveSelectedGraphItemsUp Moves the selected graph items one step up in z-order.
Public methodMoveSelectedObjects Moves the selected objects in a certain direction in response to an arrow key pressed.
Public methodNotifyContentIdChanged Can be used to notify the view content that the ContentId maybe has changed.
(Inherited from AbstractViewContent)
Protected methodOnClose Closes the view content.
(Inherited from AbstractViewContent)
Protected methodOnContentVisibilityChanged Notifies the view that the content visibility changed.
Public methodOnIsDirtyChanged Raises notifications that the dirty state has changed.
(Inherited from AbstractViewContent)
Protected methodOnPropertyChanged Raises the PropertyChanged event.
(Overrides AbstractViewContentOnPropertyChanged(String))
Public methodPasteObjectsFromClipboard Pastes graph objects from the clipboard.
Protected methodRefreshAutoZoom Recalculates and sets the value of m_Zoom so the whole page is visible
Public methodRefreshGraph Refreshes the graph view.
Protected methodRefreshManualZoom Performs the r ef re sh ma nu al zo om operation.
Public methodRemoveSelectedObjects Removes the currently selected objects (the IHitTestObject of the selected object(s) must provide a handler for deleting the object).
Public methodRenderOverlay If the cached graph bitmap is valid, the graph area is repainted immediately using the cached bitmap and then the custom mouse handler drawing. If the cached graph bitmap is invalid, a repaint (and thus a recreation of the cached graph bitmap) is triggered, but only with Gui render priority.
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
Public methodScaleForPaint This functions scales the graphics context to be ready for painting.
Public methodScaleForPaintingGraphDocument Prepares the graphics context for painting the graph document.
Public methodSetDirty Sets the dirty state.
(Inherited from AbstractViewContent)
Public methodSetDisposeInProgress Announces that this view content is about to be disposed very soon. The view content should remain passiv (e.g. should not react to events any more), but should not release its resources yet (this is done later in Dispose).
(Inherited from AbstractViewContent)
Public methodSetGraphToolFromInternal Updates the graph tool from controller logic.
Protected methodSetLocalizedInfoTip Sets a localized info tip that will update automatically when the language changes.
(Inherited from AbstractViewContent)
Protected methodSetLocalizedTitle Sets a localized title that will update automatically when the language changes.
(Inherited from AbstractViewContent)
Protected methodSetMemberVariablesToDefault Set the member variables to default values. Intended only for use in constructors and deserialization code.
Public methodSetPanelCursor Sets the panel cursor.
Public methodSetSelectedObjectsProperty Sets the routed property on all selected objects.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUngroupSelectedObjects Ungroups the selected objects (if they are ShapeGroup objects).
Public methodZoomAroundPivotPointZooms around a pivot point. The pivot point is the point in graph coordinates that does not change the location in the viewport window when zooming.
Top
See Also