C# 클래스 Company.OrmLanguage.OrmLanguageDiagram

상속: DslDiagrams::Diagram
파일 보기 프로젝트 열기: thabart/SimpleOrm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DomainClassId global::System.Guid

공개 메소드들

메소드 설명
OnViewMouseEnter ( global::Microsoft.VisualStudio.Modeling.Diagrams pointArgs ) : void

Override to provide the right mouse action when trying to create links on the diagram

OnViewMouseEnter ( DslDiagrams::DiagramPointEventArgs pointArgs ) : void

Override to provide the right mouse action when trying to create links on the diagram

OrmLanguageDiagram ( DslModeling::Partition partition )

Constructor

OrmLanguageDiagram ( DslModeling::Store store )

Constructor

OrmLanguageDiagram ( global::Microsoft.VisualStudio.Modeling store )

Constructor

SubscribeCompartmentItemsEvents ( ) : void

Subscribe to events fired when compartment items changes.

UnsubscribeCompartmentItemsEvents ( ) : void

Unsubscribe to events fired when compartment items changes.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Dispose of connect actions.

InitializeShapeFields ( global::System.Collections.Generic.IList shapeFields ) : void

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.

InitializeShapeFields ( global shapeFields ) : void

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.

OnChildConfiguring ( global::Microsoft.VisualStudio.Modeling.Diagrams child, bool createdDuringViewFixup ) : void

Called during view fixup to configure the given child element, after it has been created.

Custom code for choosing the shapes attached to either end of a connector is called from here.

OnChildConfiguring ( DslDiagrams::ShapeElement child, bool createdDuringViewFixup ) : void

Called during view fixup to configure the given child element, after it has been created.

Custom code for choosing the shapes attached to either end of a connector is called from here.

OnMouseActionDeactivated ( ) : void

Overridable method to manage the mouse deactivation. The default implementation snap stoolbox selection back to regular pointer after using a custom connect action.

SelectedToolboxItemSupportsFilterString ( global::Microsoft.VisualStudio.Modeling.Diagrams activeView, string filter ) : bool

Virtual method to provide a filter when to select the mouse action

SelectedToolboxItemSupportsFilterString ( DslDiagrams::DiagramView activeView, string filter ) : bool

Virtual method to provide a filter when to select the mouse action

ShouldAddShapeForElement ( DslModeling::ModelElement element ) : bool

Called during view fixup to ask the parent whether a shape should be created for the given child element.

Always return true, since we assume there is only one diagram per model file for DSL scenarios.

ShouldAddShapeForElement ( global::Microsoft.VisualStudio.Modeling element ) : bool

Called during view fixup to ask the parent whether a shape should be created for the given child element.

Always return true, since we assume there is only one diagram per model file for DSL scenarios.

비공개 메소드들

메소드 설명
CompartmentItemAdded ( object sender, DslModeling::ElementAddedEventArgs e ) : void

Event for element added.

CompartmentItemAdded ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for element added.

CompartmentItemDeleted ( object sender, DslModeling::ElementDeletedEventArgs e ) : void

Event for element deleted.

CompartmentItemDeleted ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for element deleted.

CompartmentItemPropertyChanged ( object sender, DslModeling::ElementPropertyChangedEventArgs e ) : void

Event for element property changed.

CompartmentItemPropertyChanged ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for element property changed.

CompartmentItemRolePlayerChanged ( object sender, DslModeling::RolePlayerChangedEventArgs e ) : void

Event for role-player changed.

CompartmentItemRolePlayerChanged ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for role-player changed.

CompartmentItemRolePlayerOrderChanged ( object sender, DslModeling::RolePlayerOrderChangedEventArgs e ) : void

Event for role-player order changed.

CompartmentItemRolePlayerOrderChanged ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for role-player order changed.

CreateChildShape ( DslModeling::ModelElement element ) : DslDiagrams::ShapeElement
CreateChildShape ( global::Microsoft.VisualStudio.Modeling element ) : DslDiagrams::ShapeElement
GetEndShapesForConnector ( global::Microsoft.VisualStudio.Modeling.Diagrams connector ) : DslDiagrams::NodeShape[]

Helper method to find shapes for either end of a connector by looking for shapes associated with either end of the relationship mapped to the connector.

GetEndShapesForConnector ( DslDiagrams::BinaryLinkShape connector ) : DslDiagrams::NodeShape[]

Helper method to find shapes for either end of a connector by looking for shapes associated with either end of the relationship mapped to the connector.

GetSourceAndTargetForConnector ( global::Microsoft.VisualStudio.Modeling.Diagrams connector, global::Microsoft.VisualStudio.Modeling.Diagrams &sourceShape, global::Microsoft.VisualStudio.Modeling.Diagrams &targetShape ) : void
GetSourceAndTargetForConnector ( DslDiagrams::BinaryLinkShape connector, DslDiagrams::NodeShape &sourceShape, DslDiagrams::NodeShape &targetShape ) : void
OnConnectActionDeactivated ( object sender, global::Microsoft.VisualStudio.Modeling.Diagrams e ) : void

Snap toolbox selection back to regular pointer after using a custom connect action.

OnConnectActionDeactivated ( object sender, DslDiagrams::DiagramEventArgs e ) : void

Snap toolbox selection back to regular pointer after using a custom connect action.

메소드 상세

Dispose() 보호된 메소드

Dispose of connect actions.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

InitializeShapeFields() 보호된 메소드

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.
protected InitializeShapeFields ( global::System.Collections.Generic.IList shapeFields ) : void
shapeFields global::System.Collections.Generic.IList
리턴 void

InitializeShapeFields() 보호된 메소드

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.
protected InitializeShapeFields ( global shapeFields ) : void
shapeFields global
리턴 void

OnChildConfiguring() 보호된 메소드

Called during view fixup to configure the given child element, after it has been created.
Custom code for choosing the shapes attached to either end of a connector is called from here.
protected OnChildConfiguring ( global::Microsoft.VisualStudio.Modeling.Diagrams child, bool createdDuringViewFixup ) : void
child global::Microsoft.VisualStudio.Modeling.Diagrams
createdDuringViewFixup bool
리턴 void

OnChildConfiguring() 보호된 메소드

Called during view fixup to configure the given child element, after it has been created.
Custom code for choosing the shapes attached to either end of a connector is called from here.
protected OnChildConfiguring ( DslDiagrams::ShapeElement child, bool createdDuringViewFixup ) : void
child DslDiagrams::ShapeElement
createdDuringViewFixup bool
리턴 void

OnMouseActionDeactivated() 보호된 메소드

Overridable method to manage the mouse deactivation. The default implementation snap stoolbox selection back to regular pointer after using a custom connect action.
protected OnMouseActionDeactivated ( ) : void
리턴 void

OnViewMouseEnter() 공개 메소드

Override to provide the right mouse action when trying to create links on the diagram
public OnViewMouseEnter ( global::Microsoft.VisualStudio.Modeling.Diagrams pointArgs ) : void
pointArgs global::Microsoft.VisualStudio.Modeling.Diagrams
리턴 void

OnViewMouseEnter() 공개 메소드

Override to provide the right mouse action when trying to create links on the diagram
public OnViewMouseEnter ( DslDiagrams::DiagramPointEventArgs pointArgs ) : void
pointArgs DslDiagrams::DiagramPointEventArgs
리턴 void

OrmLanguageDiagram() 공개 메소드

Constructor
public OrmLanguageDiagram ( DslModeling::Partition partition )
partition DslModeling::Partition Partition where new element is to be created.

OrmLanguageDiagram() 공개 메소드

Constructor
public OrmLanguageDiagram ( DslModeling::Store store )
store DslModeling::Store Store where new element is to be created.

OrmLanguageDiagram() 공개 메소드

Constructor
public OrmLanguageDiagram ( global::Microsoft.VisualStudio.Modeling store )
store global::Microsoft.VisualStudio.Modeling Store where new element is to be created.

SelectedToolboxItemSupportsFilterString() 보호된 메소드

Virtual method to provide a filter when to select the mouse action
protected SelectedToolboxItemSupportsFilterString ( global::Microsoft.VisualStudio.Modeling.Diagrams activeView, string filter ) : bool
activeView global::Microsoft.VisualStudio.Modeling.Diagrams Currently active view
filter string filter string used to filter the toolbox items
리턴 bool

SelectedToolboxItemSupportsFilterString() 보호된 메소드

Virtual method to provide a filter when to select the mouse action
protected SelectedToolboxItemSupportsFilterString ( DslDiagrams::DiagramView activeView, string filter ) : bool
activeView DslDiagrams::DiagramView Currently active view
filter string filter string used to filter the toolbox items
리턴 bool

ShouldAddShapeForElement() 보호된 메소드

Called during view fixup to ask the parent whether a shape should be created for the given child element.
Always return true, since we assume there is only one diagram per model file for DSL scenarios.
protected ShouldAddShapeForElement ( DslModeling::ModelElement element ) : bool
element DslModeling::ModelElement
리턴 bool

ShouldAddShapeForElement() 보호된 메소드

Called during view fixup to ask the parent whether a shape should be created for the given child element.
Always return true, since we assume there is only one diagram per model file for DSL scenarios.
protected ShouldAddShapeForElement ( global::Microsoft.VisualStudio.Modeling element ) : bool
element global::Microsoft.VisualStudio.Modeling
리턴 bool

SubscribeCompartmentItemsEvents() 공개 메소드

Subscribe to events fired when compartment items changes.
public SubscribeCompartmentItemsEvents ( ) : void
리턴 void

UnsubscribeCompartmentItemsEvents() 공개 메소드

Unsubscribe to events fired when compartment items changes.
public UnsubscribeCompartmentItemsEvents ( ) : void
리턴 void

프로퍼티 상세

DomainClassId 공개적으로 정적으로 프로퍼티

OrmLanguageDiagram domain class Id.
public static global::System.Guid DomainClassId
리턴 global::System.Guid