C# Class Invert.Core.GraphDesigner.DiagramDrawer

Inheritance: Drawer, IInputHandler
显示文件 Open project: InvertGames/uFrame.Editor Class Usage Examples

Public Methods

Method Description
BubbleEvent ( Action action, MouseEvent e ) : bool
CreateSelectionRect ( Vector2 start, Vector2 current ) : Rect
DiagramDrawer ( DiagramViewModel viewModel ) : System
Draw ( IPlatformDrawer platform, float scale ) : void
DrawBreadcrumbs ( IPlatformDrawer platform, float y ) : void
DrawTabs ( IPlatformDrawer platform, Rect tabsRect ) : void
GetDrawersAtPosition ( IDrawer parent, Vector2 point ) : IEnumerable
OnMouseDoubleClick ( MouseEvent mouseEvent ) : void
OnMouseDown ( MouseEvent mouseEvent ) : void
OnMouseEnter ( MouseEvent e ) : void
OnMouseExit ( MouseEvent e ) : void
OnMouseMove ( MouseEvent e ) : void
OnMouseUp ( MouseEvent mouseEvent ) : void
OnRightClick ( MouseEvent mouseEvent ) : void
Refresh ( IPlatformDrawer platform, Vector2 position, bool hardRefresh = true ) : void
Save ( ) : void
ShowAddNewContextMenu ( MouseEvent mouseEvent ) : void
ShowContextMenu ( MouseEvent mouseEvent ) : void
ShowItemContextMenu ( MouseEvent mouseEvent ) : void

Protected Methods

Method Description
DataContextChanged ( ) : void
OnSelectionChanged ( IDiagramNode olddata, IDiagramNode newdata ) : void

Private Methods

Method Description
DrawErrors ( ) : void
DrawHelp ( ) : void
GraphItemsOnCollectionChangedWith ( NotifyCollectionChangedEventArgs changeArgs ) : void
GraphItemsOnCollectionChangedWith ( object sender, NotifyCollectionChangedEventArgs e ) : void
UpgradeOldProject ( ) : bool

Method Details

BubbleEvent() public method

public BubbleEvent ( Action action, MouseEvent e ) : bool
action Action
e MouseEvent
return bool

CreateSelectionRect() public static method

public static CreateSelectionRect ( Vector2 start, Vector2 current ) : Rect
start Vector2
current Vector2
return UnityEngine.Rect

DataContextChanged() protected method

protected DataContextChanged ( ) : void
return void

DiagramDrawer() public method

public DiagramDrawer ( DiagramViewModel viewModel ) : System
viewModel DiagramViewModel
return System

Draw() public method

public Draw ( IPlatformDrawer platform, float scale ) : void
platform IPlatformDrawer
scale float
return void

DrawBreadcrumbs() public method

public DrawBreadcrumbs ( IPlatformDrawer platform, float y ) : void
platform IPlatformDrawer
y float
return void

DrawTabs() public method

public DrawTabs ( IPlatformDrawer platform, Rect tabsRect ) : void
platform IPlatformDrawer
tabsRect UnityEngine.Rect
return void

GetDrawersAtPosition() public method

public GetDrawersAtPosition ( IDrawer parent, Vector2 point ) : IEnumerable
parent IDrawer
point Vector2
return IEnumerable

OnMouseDoubleClick() public method

public OnMouseDoubleClick ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void

OnMouseDown() public method

public OnMouseDown ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void

OnMouseEnter() public method

public OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseExit() public method

public OnMouseExit ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseMove() public method

public OnMouseMove ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseUp() public method

public OnMouseUp ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void

OnRightClick() public method

public OnRightClick ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void

OnSelectionChanged() protected method

protected OnSelectionChanged ( IDiagramNode olddata, IDiagramNode newdata ) : void
olddata IDiagramNode
newdata IDiagramNode
return void

Refresh() public method

public Refresh ( IPlatformDrawer platform, Vector2 position, bool hardRefresh = true ) : void
platform IPlatformDrawer
position Vector2
hardRefresh bool
return void

Save() public method

public Save ( ) : void
return void

ShowAddNewContextMenu() public method

public ShowAddNewContextMenu ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void

ShowContextMenu() public method

public ShowContextMenu ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void

ShowItemContextMenu() public method

public ShowItemContextMenu ( MouseEvent mouseEvent ) : void
mouseEvent MouseEvent
return void