NShape Reference
PolylineBase Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
PolylineBase Class

Previous pageReturn to chapter overviewNext page

A line shape consisting of several line segments.

Syntax

public abstract class PolyLineBase : LineShapeBase

Description

Public Properties

Name

Description

MaxVertexCount

The maximum number of vertices the shape can contain.

MinVertexCount

The minimum number of vertices the shape must consist of.

X

X coordinate of the shape.

Y

Y coordinate of the shape.

Public Methods

Name

Description

AddVertex

Adds a vertex to the shape at the given position.

CalculateAbsolutePosition

Transforms a relative position to absolute coordinates.

CalculateConnectionFoot


CalculateRelativePosition

Transforms absolute coordinates to a relative position.

CopyFrom

Copies as many properties as possible from the source shape.

Draw

Draws the shape.

DrawOutline

Draws the shape's outline.

DrawThumbnail

Draws a thumbnail picture of the shape.

Fit

Resizes and moves the shape to fit into the given rectangle.

FollowConnectionPointWithGluePoint

Moves a connected glue point when the connection point has moved.

HasControlPointCapability

Tests, whether a control point has at least one of a set of given capabilities.

HitTest

Tests whether the shape has a control point near the given coordinates.

InsertVertex

Inserts a new vertex before the indicated control point at the given position.

Invalidate

Invalidates the shape.

RemoveVertex

Removes the indicated vertex.

Protected Methods

Name

Description

CalculateCells

Calculates the cells occupied by this shape in the diagram's spatial index.

CalcCapAngle

Calculates the angle of the indicated line cap.

CalcGluePoint

Calculates the position of a connected glue point on the connected shape's outline.

Constructors

 

ContainsPointCore

Implementation of Shape.ContainsPoint

GetNewControlPointId

Returns a ControlPointId for a new vertex.

GetSegmentCoordinates

Retrieve the coordinates of the indicated line segment.

InitializeToDefault

Initializes a shape with default values.

IntersectsWithCore

Implementation of Shape.IntersectsWith.

MovePointByCore

Implementation of Shape.MovePointBy.

RecalcDrawCache

Clears and deletes all objects and buffers of the draw cache.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape