Class GraphicalLanguage
Denotes a graphical language
public abstract class GraphicalLanguage : IClientSessionProvider
- Inheritance
-
GraphicalLanguage
- Implements
- Inherited Members
Properties
AllRules
Gets a collection of all rules
public IEnumerable<DescriptorBase> AllRules { get; }
Property Value
DefaultLayoutEngine
Gets the default layout engine for this language
public virtual ILayoutEngine DefaultLayoutEngine { get; }
Property Value
DiagramType
Gets the diagram type supported by this graphical language
public virtual string DiagramType { get; }
Property Value
StartRule
Gets the rule to start with
public abstract DescriptorBase StartRule { get; }
Property Value
SupportedActions
Gets a collection with supported action kinds
public virtual IEnumerable<string> SupportedActions { get; }
Property Value
Methods
ActionKindsSupportedByDefault()
Gets a collection of action kinds supported by default
protected IEnumerable<string> ActionKindsSupportedByDefault()
Returns
AddRule(DescriptorBase)
Adds the given rule to the list of supported descriptors
protected void AddRule(DescriptorBase rule)
Parameters
ruleDescriptorBase
CalculateTypeHints()
Calculates shape hints for this language
public IEnumerable<TypeHint> CalculateTypeHints()
Returns
- IEnumerable<TypeHint>
A collection of shape hints
Create(object, IDiagram, ISkeletonTrace)
Creates a graph element for the given semantic root element
public GGraph Create(object semanticRoot, IDiagram diagram, ISkeletonTrace trace)
Parameters
semanticRootobjectThe semantic root element
diagramIDiagramThe notational instance
traceISkeletonTraceThe trace object
Returns
- GGraph
A graph notation
CreateSession(IDictionary<string, object>, IModelServer)
Creates a session
public virtual IGlspClientSession CreateSession(IDictionary<string, object> args, IModelServer modelServer)
Parameters
argsIDictionary<string, object>arguments passed by the GLSP client
modelServerIModelServerthe model server for which to create the session
Returns
- IGlspClientSession
A GLSP session
Descriptor<T>()
Resolves the given descriptor type to a descriptor
public T Descriptor<T>() where T : DescriptorBase
Returns
- T
The descriptor instance, if any
Type Parameters
TThe type of elements
Initialize()
Initializes the graphical language
public void Initialize()
RetrieveRootActions(string)
Obtains a collection of root actions
public virtual IEnumerable<LabeledAction> RetrieveRootActions(string contextId)
Parameters
contextIdstring