Class
SegmentationService

Represents the service responsible for logical segmentation of Diagram.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class SegmentationService : GraphServiceBase, ISegmentationService

Inheritance: objectGraphServiceBaseSegmentationService

Implements: ISegmentationService

Inherited Members GraphServiceBase.Graph

Constructors

SegmentationService(IGraphInternal)

Initializes a new instance of the SegmentationService class.

Declaration

cs-api-definition
public SegmentationService(IGraphInternal graph)

Parameters

graph

IGraphInternal

The graph.

Properties

IsSegmentationEnabled

Gets a value indicating whether this instance is segmentation enabled.

Declaration

cs-api-definition
public virtual bool IsSegmentationEnabled { get; }

Property Value

bool

Implements ISegmentationService.IsSegmentationEnabled

SegmentStep

Gets or sets the segment step.

Declaration

cs-api-definition
public int SegmentStep { get; set; }

Property Value

int

Methods

GetShapes(Point, double)

Gets the shapes.

Declaration

cs-api-definition
public virtual IEnumerable<IShape> GetShapes(Point point, double delta)

Parameters

point

Point

The point.

delta

double

The delta.

Returns

IEnumerable<IShape>

Implements ISegmentationService.GetShapes(Point, double)

GetShapes(Rect)

Gets the shapes.

Declaration

cs-api-definition
public virtual IEnumerable<IShape> GetShapes(Rect rect)

Parameters

rect

Rect

The rectangle.

Returns

IEnumerable<IShape>

Implements ISegmentationService.GetShapes(Rect)

MapShape(IShape)

Maps the shape.

Declaration

cs-api-definition
public virtual void MapShape(IShape shape)

Parameters

shape

IShape

The shape.

Implements ISegmentationService.MapShape(IShape)

MapShape(IShape, Rect)

Maps the shape.

Declaration

cs-api-definition
public virtual void MapShape(IShape shape, Rect bounds)

Parameters

shape

IShape

The shape.

bounds

Rect

The bounds.

Implements ISegmentationService.MapShape(IShape, Rect)

MapShapes(IEnumerable<IShape>)

Maps the shapes.

Declaration

cs-api-definition
public virtual void MapShapes(IEnumerable<IShape> shapes)

Parameters

shapes

IEnumerable<IShape>

The shapes.

Implements ISegmentationService.MapShapes(IEnumerable<IShape>)

UnmapShape(IShape)

Un-maps the shape.

Declaration

cs-api-definition
public virtual void UnmapShape(IShape shape)

Parameters

shape

IShape

The shape.

Implements ISegmentationService.UnmapShape(IShape)