C# Class Company.OrmLanguage.OrmLanguageDiagram

Inheritance: DslDiagrams::Diagram
Afficher le fichier Open project: thabart/SimpleOrm Class Usage Examples

Méthodes publiques

Свойство Type Description
DomainClassId global::System.Guid

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

Dispose() protected méthode

Dispose of connect actions.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InitializeShapeFields() protected méthode

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
Résultat void

InitializeShapeFields() protected méthode

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
Résultat void

OnChildConfiguring() protected méthode

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
Résultat void

OnChildConfiguring() protected méthode

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
Résultat void

OnMouseActionDeactivated() protected méthode

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
Résultat void

OnViewMouseEnter() public méthode

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
Résultat void

OnViewMouseEnter() public méthode

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

OrmLanguageDiagram() public méthode

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

OrmLanguageDiagram() public méthode

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

OrmLanguageDiagram() public méthode

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

SelectedToolboxItemSupportsFilterString() protected méthode

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
Résultat bool

SelectedToolboxItemSupportsFilterString() protected méthode

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
Résultat bool

ShouldAddShapeForElement() protected méthode

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
Résultat bool

ShouldAddShapeForElement() protected méthode

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
Résultat bool

SubscribeCompartmentItemsEvents() public méthode

Subscribe to events fired when compartment items changes.
public SubscribeCompartmentItemsEvents ( ) : void
Résultat void

UnsubscribeCompartmentItemsEvents() public méthode

Unsubscribe to events fired when compartment items changes.
public UnsubscribeCompartmentItemsEvents ( ) : void
Résultat void

Property Details

DomainClassId public_oe static_oe property

OrmLanguageDiagram domain class Id.
public static global::System.Guid DomainClassId
Résultat global::System.Guid