Class Shape
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Position
The position property
[Browsable(false)]
[XmlElementName("position")]
[XmlAttribute(false)]
[Containment]
public IGPoint Position { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Size
The size property
[Browsable(false)]
[XmlElementName("size")]
[XmlAttribute(false)]
[Containment]
public IGDimension Size { get; set; }
Property Value
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe 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
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
IModelElementThe 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
ValueChangedEventArgsThe event data
OnPositionChanging(ValueChangedEventArgs)
Raises the PositionChanging event
protected virtual void OnPositionChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnSizeChanged(ValueChangedEventArgs)
Raises the SizeChanged event
protected virtual void OnSizeChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnSizeChanging(ValueChangedEventArgs)
Raises the SizeChanging event
protected virtual void OnSizeChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
PositionChanged
Gets fired when the Position property changed its value
public event EventHandler<ValueChangedEventArgs> PositionChanged
Event Type
PositionChanging
Gets fired before the Position property changes its value
public event EventHandler<ValueChangedEventArgs> PositionChanging
Event Type
SizeChanged
Gets fired when the Size property changed its value
public event EventHandler<ValueChangedEventArgs> SizeChanged
Event Type
SizeChanging
Gets fired before the Size property changes its value
public event EventHandler<ValueChangedEventArgs> SizeChanging