C# Class SilverlightMappingToolBasic.UI.SuperGraph.View.SuperGraphControl

Inheritance: System.Windows.Controls.UserControl, ISidebarOperationHandler, IBreadcrumbOperationHandler, IRealignControl, ISelectorControl, IArrowContainerControl, IRelatedContentOperationsHandler, IContextMenuParent
Show file Open project: chris-tomich/Glyma Class Usage Examples

Private Properties

Property Type Description
CentraliseNode void
CentraliseNodeVertically void
ContextMenuContainerOnCreateNewNodeClicked void
ContextMenuContainerOnExportClicked void
ContextMenuContainerOnImportClicked void
ContextMenuOnCommitCollapseStatesClicked void
Explorer_OnLeftButtonSingleClick void
ExportJobCreated void
GetVisibleNodeLocations Point>.Dictionary
IBreadcrumbOperationHandler void
IOperationHandler void
ISelectorControl void
ISelectorControl void
OnChangeNodeTypeClicked void
OnCloneClicked void
OnCopyClicked void
OnCutClicked void
OnFileDragAndDrop void
OnKeyDown void
OnKeyUp void
OnNodeClicked void
OnNodeSelected void
Pointer_MouseMove void
Pointer_OnLeftButtonDragMove void
Pointer_OnLeftButtonDragReleased void
Pointer_OnLeftButtonDragStart void
Pointer_OnLeftButtonSingleClick void
Pointer_OnRightButtonDragMove void
Pointer_OnRightButtonDragReleased void
Pointer_OnRightButtonDragStart void
Pointer_RightButtonDragReleased void
Pointer_RightButtonSingleClick void
SerializeToJsonDictionary string
SuperGraphControl_Loaded void
SuperGraphControl_OnSizeChanged void
TransclusionsLoadCompleted void
UserControl_MouseLeave void
UserControl_MouseWheel void

Public Methods

Method Description
Add ( ArrowControl arrowControl ) : void
AuthorMode ( ) : void
AutoRealign ( NodeControl focusedControl = null ) : void

This method is for automatical realignment, it will realigns the map (horizontally or vertically) based on last realign operation. If there is no realign action occurred, it will realign the map horizontally.

ClearMapObjects ( bool isSaveStates = true ) : void
DefaultZoom ( ) : void
DragRelease ( ) : void
DragStart ( MouseManagerEventArgs e ) : void
Explorer_OnLeftButtonDragMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
Explorer_OnLeftButtonDragReleased ( object sender, MouseManagerEventArgs e ) : void
Explorer_OnLeftButtonDragStart ( object sender, MouseManagerEventArgs e ) : void
GetArrowControls ( ) : IEnumerable
GetMapBounds ( double &left, double &right, double &top, double &bottom ) : void
GetNodeControls ( ) : IEnumerable
GetRelationships ( ) : IEnumerable
GetVisibleNodeControls ( ) : IEnumerable
HasVisibleNodes ( ) : bool
HorizontalRealign ( bool isPartialRealign = false ) : void
IsArrowExist ( NodeControl from, NodeControl to ) : bool
LoadCookie ( ) : void
ModelChanged ( object sender, Relationship>.ModelChangedEventArgs e ) : void
MoveMap ( double x, double y ) : void
ReScanForCollapseStates ( ) : void
ReaderMode ( ) : void
RecheckIncorrectVisibility ( ) : void
RecheckLocations ( ) : void
Remove ( ArrowControl arrowControl ) : void
ResetViewport ( ) : void
SearchNodeControlsByName ( string searchTerm ) : List
SetMouse ( ) : void
ShowDescription ( Node node ) : void
ShowRelatedMaps ( Node node ) : void
ShowVideoControl ( Node node ) : void
SuperGraphControl ( ) : System
VerticalRealign ( bool isPartialRealign = false ) : void
ZoomIn ( ) : void
ZoomOut ( ) : void

Private Methods

Method Description
CentraliseNode ( NodeControl nodeControl ) : void
CentraliseNodeVertically ( NodeControl nodeControl ) : void
ContextMenuContainerOnCreateNewNodeClicked ( object sender, CreateNewNodeClickedEventArgs e ) : void
ContextMenuContainerOnExportClicked ( object sender, ExportClickedEventArgs e ) : void
ContextMenuContainerOnImportClicked ( object sender, EventArgs eventArgs ) : void
ContextMenuOnCommitCollapseStatesClicked ( object sender, CommitCollapseStatesEventArgs e ) : void
Explorer_OnLeftButtonSingleClick ( object sender, MouseManagerEventArgs mouseManagerEventArgs ) : void
ExportJobCreated ( object sender, ResultEventArgs e ) : void
GetVisibleNodeLocations ( ) : Point>.Dictionary
IBreadcrumbOperationHandler ( ) : void
IOperationHandler ( ) : void
ISelectorControl ( ) : void
ISelectorControl ( System.Guid id ) : void
OnChangeNodeTypeClicked ( object sender, ChangeNodeTypeEventArgs e ) : void
OnCloneClicked ( object sender, EventArgs e ) : void
OnCopyClicked ( object sender, EventArgs e ) : void
OnCutClicked ( object sender, EventArgs e ) : void
OnFileDragAndDrop ( object sender, System.Windows.DragEventArgs e ) : void
OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnNodeClicked ( object sender, NodeClickedEventArgs e ) : void
OnNodeSelected ( object sender, NodeSelectedEventArgs e ) : void
Pointer_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
Pointer_OnLeftButtonDragMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
Pointer_OnLeftButtonDragReleased ( object sender, MouseManagerEventArgs e ) : void
Pointer_OnLeftButtonDragStart ( object sender, MouseManagerEventArgs e ) : void
Pointer_OnLeftButtonSingleClick ( object sender, MouseManagerEventArgs mouseManagerEventArgs ) : void
Pointer_OnRightButtonDragMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
Pointer_OnRightButtonDragReleased ( object sender, MouseManagerEventArgs e ) : void
Pointer_OnRightButtonDragStart ( object sender, MouseManagerEventArgs e ) : void
Pointer_RightButtonDragReleased ( object sender, MouseManagerEventArgs e ) : void
Pointer_RightButtonSingleClick ( object sender, MouseManagerEventArgs e ) : void
SerializeToJsonDictionary ( string>.IEnumerable dictionary, System.Guid domainId, System.Guid selectedNodeId ) : string

Lightweight helper method to serialise a Dictionary into a JSON object to pass to a JavaScript function

SuperGraphControl_Loaded ( object sender, RoutedEventArgs e ) : void
SuperGraphControl_OnSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
TransclusionsLoadCompleted ( object sender, TransclusionLoadEventArgs eventArgs ) : void
UserControl_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
UserControl_MouseWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void

Method Details

Add() public method

public Add ( ArrowControl arrowControl ) : void
arrowControl SilverlightMappingToolBasic.UI.SuperGraph.View.Arrow.ArrowControl
return void

AuthorMode() public method

public AuthorMode ( ) : void
return void

AutoRealign() public method

This method is for automatical realignment, it will realigns the map (horizontally or vertically) based on last realign operation. If there is no realign action occurred, it will realign the map horizontally.
public AutoRealign ( NodeControl focusedControl = null ) : void
focusedControl SilverlightMappingToolBasic.UI.SuperGraph.View.NodeControlSupportClasses.NodeControl /// If focusedControl has been set, it will automatically moves the map to make sure the focused control not being /// moved. ///
return void

ClearMapObjects() public method

public ClearMapObjects ( bool isSaveStates = true ) : void
isSaveStates bool
return void

DefaultZoom() public method

public DefaultZoom ( ) : void
return void

DragRelease() public method

public DragRelease ( ) : void
return void

DragStart() public method

public DragStart ( MouseManagerEventArgs e ) : void
e SilverlightMappingToolBasic.UI.SuperGraph.View.Mouse.MouseManagerEventArgs
return void

Explorer_OnLeftButtonDragMove() public method

public Explorer_OnLeftButtonDragMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

Explorer_OnLeftButtonDragReleased() public method

public Explorer_OnLeftButtonDragReleased ( object sender, MouseManagerEventArgs e ) : void
sender object
e SilverlightMappingToolBasic.UI.SuperGraph.View.Mouse.MouseManagerEventArgs
return void

Explorer_OnLeftButtonDragStart() public method

public Explorer_OnLeftButtonDragStart ( object sender, MouseManagerEventArgs e ) : void
sender object
e SilverlightMappingToolBasic.UI.SuperGraph.View.Mouse.MouseManagerEventArgs
return void

GetArrowControls() public method

public GetArrowControls ( ) : IEnumerable
return IEnumerable

GetMapBounds() public method

public GetMapBounds ( double &left, double &right, double &top, double &bottom ) : void
left double
right double
top double
bottom double
return void

GetNodeControls() public method

public GetNodeControls ( ) : IEnumerable
return IEnumerable

GetRelationships() public method

public GetRelationships ( ) : IEnumerable
return IEnumerable

GetVisibleNodeControls() public method

public GetVisibleNodeControls ( ) : IEnumerable
return IEnumerable

HasVisibleNodes() public method

public HasVisibleNodes ( ) : bool
return bool

HorizontalRealign() public method

public HorizontalRealign ( bool isPartialRealign = false ) : void
isPartialRealign bool
return void

IsArrowExist() public method

public IsArrowExist ( NodeControl from, NodeControl to ) : bool
from SilverlightMappingToolBasic.UI.SuperGraph.View.NodeControlSupportClasses.NodeControl
to SilverlightMappingToolBasic.UI.SuperGraph.View.NodeControlSupportClasses.NodeControl
return bool

LoadCookie() public method

public LoadCookie ( ) : void
return void

ModelChanged() public method

public ModelChanged ( object sender, Relationship>.ModelChangedEventArgs e ) : void
sender object
e Relationship>.ModelChangedEventArgs
return void

MoveMap() public method

public MoveMap ( double x, double y ) : void
x double
y double
return void

ReScanForCollapseStates() public method

public ReScanForCollapseStates ( ) : void
return void

ReaderMode() public method

public ReaderMode ( ) : void
return void

RecheckIncorrectVisibility() public method

public RecheckIncorrectVisibility ( ) : void
return void

RecheckLocations() public method

public RecheckLocations ( ) : void
return void

Remove() public method

public Remove ( ArrowControl arrowControl ) : void
arrowControl SilverlightMappingToolBasic.UI.SuperGraph.View.Arrow.ArrowControl
return void

ResetViewport() public method

public ResetViewport ( ) : void
return void

SearchNodeControlsByName() public method

public SearchNodeControlsByName ( string searchTerm ) : List
searchTerm string
return List

SetMouse() public method

public SetMouse ( ) : void
return void

ShowDescription() public method

public ShowDescription ( Node node ) : void
node SilverlightMappingToolBasic.UI.SuperGraph.ViewModel.Node
return void

ShowRelatedMaps() public method

public ShowRelatedMaps ( Node node ) : void
node SilverlightMappingToolBasic.UI.SuperGraph.ViewModel.Node
return void

ShowVideoControl() public method

public ShowVideoControl ( Node node ) : void
node SilverlightMappingToolBasic.UI.SuperGraph.ViewModel.Node
return void

SuperGraphControl() public method

public SuperGraphControl ( ) : System
return System

VerticalRealign() public method

public VerticalRealign ( bool isPartialRealign = false ) : void
isPartialRealign bool
return void

ZoomIn() public method

public ZoomIn ( ) : void
return void

ZoomOut() public method

public ZoomOut ( ) : void
return void