Table of Contents

Class Shape

Namespace
NMF.Glsp.Notation
Assembly
NMF.Glsp.dll

The default implementation of the Shape class

[XmlNamespace("http://www.eclipse.org/glsp/notation")]
[XmlNamespacePrefix("notation")]
[ModelRepresentationClass("http://www.eclipse.org/glsp/notation#//Shape")]
public class Shape : NotationElement, IShape, INotationElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Shape
Implements
Inherited Members

Properties

Children

Gets the child model elements of this model element

public override IEnumerableExpression<IModelElement> Children { get; }

Property Value

IEnumerableExpression<IModelElement>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Position

The position property

[Browsable(false)]
[XmlElementName("position")]
[XmlAttribute(false)]
[Containment]
public IGPoint Position { get; set; }

Property Value

IGPoint

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Size

The size property

[Browsable(false)]
[XmlElementName("size")]
[XmlAttribute(false)]
[Containment]
public IGDimension Size { get; set; }

Property Value

IGDimension

Methods

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

GetRelativePathForNonIdentifiedChild(IModelElement)

Gets the relative URI fragment for the given child model element

protected override string GetRelativePathForNonIdentifiedChild(IModelElement element)

Parameters

element IModelElement

The element that should be looked for

Returns

string

A fragment of the relative URI

OnPositionChanged(ValueChangedEventArgs)

Raises the PositionChanged event

protected virtual void OnPositionChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnPositionChanging(ValueChangedEventArgs)

Raises the PositionChanging event

protected virtual void OnPositionChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnSizeChanged(ValueChangedEventArgs)

Raises the SizeChanged event

protected virtual void OnSizeChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnSizeChanging(ValueChangedEventArgs)

Raises the SizeChanging event

protected virtual void OnSizeChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

Events

PositionChanged

Gets fired when the Position property changed its value

public event EventHandler<ValueChangedEventArgs> PositionChanged

Event Type

EventHandler<ValueChangedEventArgs>

PositionChanging

Gets fired before the Position property changes its value

public event EventHandler<ValueChangedEventArgs> PositionChanging

Event Type

EventHandler<ValueChangedEventArgs>

SizeChanged

Gets fired when the Size property changed its value

public event EventHandler<ValueChangedEventArgs> SizeChanged

Event Type

EventHandler<ValueChangedEventArgs>

SizeChanging

Gets fired before the Size property changes its value

public event EventHandler<ValueChangedEventArgs> SizeChanging

Event Type

EventHandler<ValueChangedEventArgs>