NShape Reference
DiameterShapeBase Class

<< Click to Display Table of Contents >>

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

NShape Reference
DiameterShapeBase Class

Previous pageReturn to chapter overviewNext page

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

Syntax

public abstract class DiameterShapeBase : CaptionedShapeBase

Description

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

Public Methods

Name

Description

CalculateAbsolutePosition

Calculates coordinates from the given RelativePosition.

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.

DiameterInternal

The internal diameter implementation.

Protected Methods

Name

Description

CalcCaptionBounds

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

Constructors

Constructs a new shape instance.

InitializeToDefault

Initializes the shape with default values.

LoadFieldsCore

Implementation of IEntity.LoadFields.

MovePointByCore

Implementation of Shape.MovePointBy.

SaveFieldsCore

Implementation of IEntity.SaveFields.

Derived Classes

Derived classes are:

CircleBase

SquareBase

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape