C# Class nHydrate.Dsl.nHydrateDiagram

Mostrar archivo Open project: nHydrate/nHydrate Class Usage Examples

Public Methods

Method Description
AutoLayoutChildShapes ( System shapeElementMap ) : void
CanCommitCallback ( Microsoft transaction ) : Microsoft.VisualStudio.Modeling.CanCommitResult
CanShapeContainConnectors ( ShapeElement parentCandidate ) : bool
CoerceSelection ( DiagramItem item, DiagramClientView view, bool isAddition ) : void
DoHitTest ( PointD point, DiagramHitTestInfo hitTestInfo, bool includeTolerance ) : bool
DrawResizeFeedback ( DiagramPaintEventArgs e, RectangleD bounds ) : void
FixUpChildShapes ( Microsoft childElement ) : ShapeElement
FixUpDiagramSelection ( ShapeElement newChildShape ) : System.Collections.IList
GetChildElements ( Microsoft parentElement ) : System.Collections.ICollection
OnBeginEdit ( DiagramItemEventArgs e ) : void
OnDragDrop ( DiagramDragEventArgs e ) : void
OnDragOver ( DiagramDragEventArgs e ) : void
nHydrateDiagram ( Microsoft store ) : System

Constructor

Protected Methods

Method Description
CalculateDerivedVisible ( ShapeElement source ) : bool
CreateChildShape ( Microsoft element ) : ShapeElement
DetermineHighlightShape ( ShapeElement shape ) : ShapeElement
InitializeResources ( Microsoft classStyleSet ) : void
OnChildConfiguring ( Microsoft child, bool createdDuringViewFixup ) : void
OnElementAdded ( Microsoft e ) : void
OnElementDeleted ( Microsoft e ) : void
OnShapeConfiguring ( ModelElementEventArgs e ) : void
OnShapeDoubleClick ( ModelElementEventArgs e ) : void
nHydrateDiagram_DiagramAdded ( object sender, Microsoft e ) : void

Private Methods

Method Description
CanUndoRedoCallback ( bool isUndo, Microsoft transactionItem ) : bool
DiagramViewablePropertyChanged ( object sender, Microsoft e ) : void
FieldAdded ( object sender, Microsoft e ) : void
FieldPropertyChanged ( object sender, Microsoft e ) : void
IndexColumnAdded ( object sender, Microsoft e ) : void
NotifyShapeDoubleClick ( Microsoft shape ) : void
ViewFieldPropertyChanged ( object sender, Microsoft e ) : void

Method Details

AutoLayoutChildShapes() public method

public AutoLayoutChildShapes ( System shapeElementMap ) : void
shapeElementMap System
return void

CalculateDerivedVisible() protected method

protected CalculateDerivedVisible ( ShapeElement source ) : bool
source ShapeElement
return bool

CanCommitCallback() public method

public CanCommitCallback ( Microsoft transaction ) : Microsoft.VisualStudio.Modeling.CanCommitResult
transaction Microsoft
return Microsoft.VisualStudio.Modeling.CanCommitResult

CanShapeContainConnectors() public method

public CanShapeContainConnectors ( ShapeElement parentCandidate ) : bool
parentCandidate ShapeElement
return bool

CoerceSelection() public method

public CoerceSelection ( DiagramItem item, DiagramClientView view, bool isAddition ) : void
item DiagramItem
view DiagramClientView
isAddition bool
return void

CreateChildShape() protected method

protected CreateChildShape ( Microsoft element ) : ShapeElement
element Microsoft
return ShapeElement

DetermineHighlightShape() protected method

protected DetermineHighlightShape ( ShapeElement shape ) : ShapeElement
shape ShapeElement
return ShapeElement

DoHitTest() public method

public DoHitTest ( PointD point, DiagramHitTestInfo hitTestInfo, bool includeTolerance ) : bool
point PointD
hitTestInfo DiagramHitTestInfo
includeTolerance bool
return bool

DrawResizeFeedback() public method

public DrawResizeFeedback ( DiagramPaintEventArgs e, RectangleD bounds ) : void
e DiagramPaintEventArgs
bounds RectangleD
return void

FixUpChildShapes() public method

public FixUpChildShapes ( Microsoft childElement ) : ShapeElement
childElement Microsoft
return ShapeElement

FixUpDiagramSelection() public method

public FixUpDiagramSelection ( ShapeElement newChildShape ) : System.Collections.IList
newChildShape ShapeElement
return System.Collections.IList

GetChildElements() public method

public GetChildElements ( Microsoft parentElement ) : System.Collections.ICollection
parentElement Microsoft
return System.Collections.ICollection

InitializeResources() protected method

protected InitializeResources ( Microsoft classStyleSet ) : void
classStyleSet Microsoft
return void

OnBeginEdit() public method

public OnBeginEdit ( DiagramItemEventArgs e ) : void
e DiagramItemEventArgs
return void

OnChildConfiguring() protected method

protected OnChildConfiguring ( Microsoft child, bool createdDuringViewFixup ) : void
child Microsoft
createdDuringViewFixup bool
return void

OnDragDrop() public method

public OnDragDrop ( DiagramDragEventArgs e ) : void
e DiagramDragEventArgs
return void

OnDragOver() public method

public OnDragOver ( DiagramDragEventArgs e ) : void
e DiagramDragEventArgs
return void

OnElementAdded() protected method

protected OnElementAdded ( Microsoft e ) : void
e Microsoft
return void

OnElementDeleted() protected method

protected OnElementDeleted ( Microsoft e ) : void
e Microsoft
return void

OnShapeConfiguring() protected method

protected OnShapeConfiguring ( ModelElementEventArgs e ) : void
e ModelElementEventArgs
return void

OnShapeDoubleClick() protected method

protected OnShapeDoubleClick ( ModelElementEventArgs e ) : void
e ModelElementEventArgs
return void

nHydrateDiagram() public method

Constructor
public nHydrateDiagram ( Microsoft store ) : System
store Microsoft Store where new element is to be created.
return System

nHydrateDiagram_DiagramAdded() protected method

protected nHydrateDiagram_DiagramAdded ( object sender, Microsoft e ) : void
sender object
e Microsoft
return void