Table of Contents

Class LayoutStrategy

Namespace
NMF.Glsp.Language.Layouting
Assembly
NMF.Glsp.dll

Denotes a layout strategy

public abstract class LayoutStrategy
Inheritance
LayoutStrategy
Inherited Members

Properties

Edge

Gets the implementation of the edge layout strategy

public static LayoutStrategy Edge { get; }

Property Value

LayoutStrategy

FreeForm

Gets the implementation of the free form layout strategy

public static LayoutStrategy FreeForm { get; }

Property Value

LayoutStrategy

Hbox

Gets the implementation of the Hbox layout strategy

public static LayoutStrategy Hbox { get; }

Property Value

LayoutStrategy

NeedsLayout

True, if the layout strategy needs automatic layout calculation, otherwise false

public abstract bool NeedsLayout { get; }

Property Value

bool

Vbox

Gets the implementation of the Vbox layout strategy

public static LayoutStrategy Vbox { get; }

Property Value

LayoutStrategy

Methods

Apply(GElement)

Applies the layout for the given container

public abstract void Apply(GElement container)

Parameters

container GElement

The container element

SetPosition(GElement, Point)

Sets the position for the given element

public abstract void SetPosition(GElement element, Point position)

Parameters

element GElement

The element

position Point

The position

Update(GElement)

Updates the layout for the given element

public abstract void Update(GElement element)

Parameters

element GElement

the element