NShape Reference
RectangleBase Class

<< Click to Display Table of Contents >>

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

NShape Reference
RectangleBase Class

Previous pageReturn to chapter overviewNext page

Base class for shapes based on a rectangular shape.

Syntax

public abstract class RectangleBase : CaptionedShapeBase

Description

Base class for shapes based on a diameter like circles and squares.

Public Properties

Name

Description

Height

The height of the shape.

Width

The width of the shape.

Public Methods

Name

Description

CalculateAbsolutePosition

Calculates coordinates from the given RelativePosition.

CalculateConnectionFoot

Base implementation of calculating the foot of a point-to-shape connection based on the rectangular base shape.

CalculateRelativePosition

Calculate a RelativePosition from the given coordinates.

CopyFrom

Copies as many properties as possible from the source shape.

Draw

Draws the shape.

Fit

Fits the shape into the given bounds.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

HasControlPointCapability

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

Protected Properties

Name

Description

ControlPointCount

Returns the number of control points.

Protected Methods

Name

Description

CalcCaptionBounds

Calculates the untransformed area in which the caption's text is layouted.

CalcControlPoints

Calculates the (transformed) position of the shape's control points.

CalculateBoundingRectangle

Calculates the axis aligned bounding rectangle of the shape.

Constructors

Constructs a new shape instance.

ContainsPointCore

Implementation of Shape.ContainsPoint.

InitializeToDefault

Initializes the shape with default values.

IntersectsWIthCore

Implementation of Shape.IntersectsWith.

LoadFieldsCore

Implementation of IEntity.LoadFields.

MovePointByCore

Implementation of Shape.MoveControlPointBy.

SaveFieldsCore

Implementation of IEntity.SaveFields.

Derived Classes

Derived classes are:

DiamondBase

EllipseBase

IsoscelesTriangleBase

TextBase

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape