Graph |
[Missing <summary> documentation for "T:Altaxo.Gui.Graph.Gdi.Viewing.GraphController"]
public class GraphController : AbstractViewContent, IGraphController, IMVCANController, IMVCAController, IMVCController, IDisposable, IApplyController, IGraphViewEventSink
The GraphController type exposes the following members.
Name | Description | |
---|---|---|
GraphController | Initializes a new instance of the GraphController class | |
GraphController(GraphDocument) | Creates a GraphController which shows the GraphDocumentgraphdoc. |
Name | Description | |
---|---|---|
ActiveLayer | Returns the currently active layer. There is always an active layer. | |
AutoZoomFactor | Gets the current zoom factor that would be used for auto zoom, but does not set it. Does not change any member variables. | |
CloseCommand | (Inherited from AbstractViewContent) | |
CloseWithSolution | (Inherited from AbstractViewContent) | |
ContentId |
Gets or sets the content identifier. Here, the content identifier is calculated of the reference hash of the document.
Setting is not implemented here.
(Inherited from AbstractViewContent) | |
CurrentGraphTool | ||
CurrentLayerNumber | Get / sets the currently active layer by number. | |
CurrentPlotNumber | Get / sets the currently active plot by number. | |
Doc | ||
FactorForGraphToMouseCoordinateConversion | Factor for conversion of graph units (in points = 1/72 inch) to mouse coordinates. The resolution used for this is _screenResolutionDpi. | |
IconSource | (Inherited from AbstractViewContent) | |
InfoTip | (Inherited from AbstractViewContent) | |
InitiallyFocusedControl | (Inherited from AbstractViewContent) | |
IsActive |
Gets or sets a value indicating whether the view of this instance is active in the UI.
(Inherited from AbstractViewContent) | |
IsAutoZoomActive | Enables / disable the autozoom feature. | |
IsContentVisible |
Gets a value indicating whether the content of this document window is visible (it is if either IsActive or IsSelected is visible.
(Inherited from AbstractViewContent) | |
IsDirty | (Inherited from AbstractViewContent) | |
IsDisposed | (Inherited from AbstractViewContent) | |
IsDisposeInProgress | (Inherited from AbstractViewContent) | |
IsOverlayPaintingRequired | ||
IsReadOnly |
Gets if the view content is read-only (can be saved only when choosing another file name).
(Inherited from AbstractViewContent) | |
IsSelected |
Gets or sets a value indicating whether the view of this instance is selected (e.g. inside its container).
(Inherited from AbstractViewContent) | |
IsViewOnly |
Gets if the view content is view-only (cannot be saved at all).
(Inherited from AbstractViewContent) | |
IsVisible |
Gets or sets the visibility of the document.
If false, the document tab header is not visible (but the document itself maybe visible !).
If true, the document tab header is visible (if it fits in the bar),
and the document is visible, if it is selected, too.
(Inherited from AbstractViewContent) | |
Margin | Gets or sets the margin. A value of 0 indicates that if autozoom is active, there is no margin around the graph. A value of 1 means that there is a right and left margin of 100 percent of the graph width, and a top and bottom margin of 100 percent of the graph heigth. | |
ModelObject | (Overrides AbstractViewContentModelObject) | |
NonPageAreaColor | Gets the color of the non page area, i.e. the area that not belongs to the graph. | |
NumberOfSelectedObjects | Returns the number of selected objects into this graph. | |
PositionOfViewportsUpperLeftCornerInGraphCoordinates | Gets or sets the position of the view port window's upper left corner in graph coordinates. | |
RootLayer | Returns the layer collection. Is the same as m_GraphDocument.XYPlotLayer. | |
SelectedObjects | ||
SelectedRealObjects | Gets the objects currently selected. The returned objects are not the HitTestObjects, but the hitted objects itself. | |
Services | (Inherited from AbstractViewContent) | |
SizeOfGraphWithMargin | Gets the size (in points = 1/72 inch) of the graph with margin (without zoom). | |
SizeOfGraphWithMarginZoomed | Gets the size (in points = 1/72 inch) of the graph with margin with taking into account the current zoom factor. This can be much greater than the actual viewport size, if the zoom factor exceeds the auto zoom factor. | |
Title |
Gets/Sets the title of the current tab page.
This value will be passed through the string parser before being displayed.
(Inherited from AbstractViewContent) | |
UseDocumentCopy | ||
ViewObject | (Overrides AbstractViewContentViewObject) | |
ZoomFactor | Zoom value of the graph view. If this property is set, AutoZoom will be set to false. |
Name | Description | |
---|---|---|
Apply | ||
Arrange | Arranges the objects so they share a common boundary. | |
ArrangeBottomToBottom | Arranges the objects so they share the bottom boundary with the bottom boundary of the master element. | |
ArrangeBottomToTop | Arranges the objects so they share the bottom boundary with the top boundary of the master element. | |
ArrangeHorizontal | Arranges the objects so they share the vertical middle line of the last selected object. | |
ArrangeHorizontalTable | Arranges the objects so they their vertical middle line is uniform spaced between the first and the last selected object. | |
ArrangeLeftToLeft | Arranges the objects so they share the left boundary with the left boundary of the master element. | |
ArrangeLeftToRight | Arranges the objects so they share the left boundary with the right boundary of the master element. | |
ArrangeRightToLeft | Arranges the objects so they share the right boundary with the left boundary of the master element. | |
ArrangeRightToRight | Arranges the objects so they share the right boundary with the right boundary of the master element. | |
ArrangeSameHorizontalSize | ||
ArrangeSameSizeBase | ||
ArrangeSameVerticalSize | ||
ArrangeTopToBottom | Arranges the objects so they share the top boundary with the bottom boundary of the master element. | |
ArrangeTopToTop | Arranges the objects so they share the top boundary with the top boundary of the master element. | |
ArrangeVertical | Arranges the objects so they share the horizontal middle line of the last selected object. | |
ArrangeVerticalTable | Arranges the objects so they their horizontal middle line is uniform spaced between the first and the last selected object. | |
BuildNavPoint | (Inherited from AbstractViewContent) | |
CanClose | (Inherited from AbstractViewContent) | |
ClearIsDirty | (Inherited from AbstractViewContent) | |
CmdDelete | ||
ConvertGraphCoordinateToScrollbarValue | Converts a graph coordinate to scrollbar values. See the remarks in ConvertScrollbarValueToGraphCoordinate(PointD2D) to learn how the scroll bar parameters are set. | |
ConvertGraphToMouseCoordinates | Converts graph coordinates to wpf coordinates. | |
ConvertMouseToRootLayerCoordinates | Converts from mouse coordinates to graph coordinates. | |
ConvertScrollbarValueToGraphCoordinate | Converts the scrollbar values to the corresponding graph coordinate. | |
CopySelectedObjectsToClipboard | Copy the selected objects of this graph to the clipboard. | |
CutSelectedObjectsToClipboard | ||
Dispose | Releases all resources used by the GraphController (Overrides AbstractViewContentDispose) | |
DoPaintOverlay | 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. | |
EhEditPlotItem | Handles the double click event onto a plot item. | |
EhEditTextGraphics | Handles the double click event onto a plot item. | |
EhGraph_BoundsChanged_Unsynchronized | ||
EhGraph_Changed | Called if something in the GraphDocument changed. | |
EhGraph_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. | |
EhGraph_LayerCollectionChanged_Unsynchronized | ||
EhGraph_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. | |
EhTitleLocalizationChanged | (Inherited from AbstractViewContent) | |
EhView_CurrentGraphToolChanged | ||
EhView_CurrentLayerChoosen | Handles the selection of the current layer by the user. | |
EhView_GraphPanelMouseWheel | Handles the mouse wheel event. | |
EhView_GraphPanelSizeChanged | Handles the event when the size of the graph area is changed. | |
EhView_Scroll | ||
EhView_ShowDataContextMenu | The controller should show a data context menu (contains all plots of the currentLayer). | |
EnsureValidityOfCurrentLayerNumber | check the validity of the CurrentLayerNumber and correct it | |
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. | |
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) | |
FindGraphObjectAtPixelPosition | Looks for a graph object at pixel position pixelPos and returns true if one is found. | |
FindGraphObjectInRootLayerRectangle | ||
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetParentLayerOfSelectedObjects | Determines the parent layer of the selected objects, as far as all selected objects belong to the same layer. | |
GetService(Type) | (Inherited from AbstractViewContent) | |
GetServiceT | (Inherited from AbstractViewContent) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
GroupSelectedObjects | Groups the selected objects to form a ShapeGroup. | |
HostWindowClosing | Called if the host window is about to be closed. | |
Initialize | ||
InitializeDocument | ||
IsCmdCopyEnabled | ||
IsCmdCutEnabled | ||
IsCmdDeleteEnabled | ||
IsCmdPasteEnabled | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
MouseWheelScroll | Scrolls horizontally or vertically in response to a mouse wheel scroll event. | |
MoveSelectedGraphItemsDown | ||
MoveSelectedGraphItemsToBottom | ||
MoveSelectedGraphItemsToTop | ||
MoveSelectedGraphItemsUp | ||
MoveSelectedObjects | Moves the selected objects in a certain direction in response to an arrow key pressed. | |
NotifyContentIdChanged |
Can be used to notify the view content that the ContentId maybe has changed.
(Inherited from AbstractViewContent) | |
OnClose | (Inherited from AbstractViewContent) | |
OnContentVisibilityChanged | ||
OnIsDirtyChanged | (Inherited from AbstractViewContent) | |
OnPropertyChanged | (Overrides AbstractViewContentOnPropertyChanged(String)) | |
PasteObjectsFromClipboard | ||
RefreshAutoZoom | Recalculates and sets the value of m_Zoom so the whole page is visible | |
RefreshGraph | ||
RefreshManualZoom | ||
RemoveSelectedObjects | Removes the currently selected objects (the IHitTestObject of the selected object(s) must provide a handler for deleting the object). | |
RenderOverlay | 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. | |
Revert | Try to revert changes to the model, i.e. restores the original state of the model. | |
ScaleForPaint | This functions scales the graphics context to be ready for painting. | |
ScaleForPaintingGraphDocument | ||
SetDirty | (Inherited from AbstractViewContent) | |
SetDisposeInProgress |
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) | |
SetGraphToolFromInternal | ||
SetLocalizedInfoTip |
Sets a localized info tip that will update automatically when the language changes.
(Inherited from AbstractViewContent) | |
SetLocalizedTitle |
Sets a localized title that will update automatically when the language changes.
(Inherited from AbstractViewContent) | |
SetMemberVariablesToDefault | Set the member variables to default values. Intended only for use in constructors and deserialization code. | |
SetPanelCursor | ||
SetSelectedObjectsProperty | ||
ToString | Returns a string that represents the current object. (Inherited from Object) | |
UngroupSelectedObjects | Ungroups the selected objects (if they are ShapeGroup objects). | |
ZoomAroundPivotPoint | Zooms 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. |
Name | Description | |
---|---|---|
CurrentGraphToolChanged | This event will be fired if the current graph tool has changed, either by the user or by the program. | |
Disposed | (Inherited from AbstractViewContent) | |
IsDirtyChanged | (Inherited from AbstractViewContent) | |
PropertyChanged | (Inherited from AbstractViewContent) |
Name | Description | |
---|---|---|
_areaFillingFactor | Ratio of view port dimension to the dimension of the graph. Example: a values of 2 means that the view port size is two times the size of the graph. | |
_currentLayerNumber | Number of the currently selected layer (or null if no layer is present). | |
_currentPlotNumber | Number of the currently selected plot (or -1 if no plot is present on the layer). | |
_doc | Holds the Graph document (the place were the layers, plots, graph elements... are stored). | |
_graphAreaBrush | Brush to fill the printable area of the graph. | |
_isActive | (Inherited from AbstractViewContent) | |
_isAutoZoomActive | If true, the view is zoomed so that the page fits exactly into the viewing area. | |
_isSelected | (Inherited from AbstractViewContent) | |
_isVisible | (Inherited from AbstractViewContent) | |
_nonPageAreaColor | Color for the area of the view, where there is no page. | |
_pageGroundBrush | Brush to fill the page ground. Since the printable area is filled with another brush, in effect this brush fills only the non printable margins of the page. | |
_positionOfViewportsUpperLeftCornerInRootLayerCoordinates | ||
_screenResolutionDpi | Screen resolution in dpi (in fact it is the factor that converts physical length on the screen (in inch) to the coordinate system used by Wpf (mouse coordinates, heights, widths, etc.). | |
_title | (Inherited from AbstractViewContent) | |
_titleToBeLocalized | (Inherited from AbstractViewContent) | |
_triggerBasedUpdate | ||
_view | Holds the view (the window where the graph is visualized). | |
_weakEventHandlerForDoc_TunneledEvent | ||
_weakEventHandlersForDoc | ||
_zoomFactor | Current zoom factor. If AutoZoom is on, this factor is calculated automatically. | |
InchPerPoint | Inches per point unit. | |
PointsPerInch | For the graph elements all the units are in points. One point is 1/72 inch. |