NShape Reference
LabelBase Class

<< Click to Display Table of Contents >>

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

NShape Reference
LabelBase Class

Previous pageReturn to chapter overviewNext page

Base class for shapes displaying text that can be attached to another shape.

Syntax

public abstract class LabelBase : TextBase

Description

LabelBase can but need not be used as a base class for text shapes. It provides support for the following areas:

Hit- and intersection testing

(Re-)Calculating, transforming and resizing

Glue point and connection handling

Public Properties

Name

Description

MaintainOrientation

Indicates wether the shape should keep its angle or should be rotated with its attached shape.

Public Methods

Name

Description

Connect

Connects the shape's glue point with a shape or a connection point.

CopyFrom

Copies as many properties as possible from the given shape.

Disconnect

Disconnects the shape's glue point from a connected shape or connection point.

Draw

Draws the shape.

DrawOutline

Draws the outline of the shape.

DrawThumbnail

Creates a thumbnail image of the shape.

FollowConnectionPointWithGluePoint

Follows

GetControlPointPosition

Implementation of Shape.GetControlPointPosition.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

HasControlPointCapability

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

HitTest

Implementation of Shape.HitTest.

Invalidate

Implementation of Shape.Invalidate.

MakePreview

Transforms the shape into a preview shape.

Protected Properties and Fields

Name

Description

calcInfo

A structure containing information on how the position of the label (and its glue point) have to be calculated.

ControlPointCount

Returns the number of control points.

gluePointPos

The position of the shape's glue point.

Protected Methods

Name

Description

CalcControlPoints

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

CalcGluePoint

Calculates the new position of the shape's connected glue point when the connected shape has moved or resized.

CalculateBoundingRectangle

Calculates the axis aligned bounding rectangle of the shape.

CalculatePath

Calculates the shape's graphics path at the point of origin.

Constructors

Constructs a new shape instance.

ContainsPointCore

Implementation of Shape.ContainsPoint.

InitializeToDefault

Initializes the shape with default values.

IntersectsWithCore

Implementation of Shape.IntersectsWith.

InvalidateDrawCache

Clears all objects and buffers needed for drawing the shape so that they will be recalculated the next time.

LoadFieldsCore

Implementation of IEntity.LoadFields.

MoveByCore

Implementation of Shape.MoveBy.

MovePointByCore

implementation of Shape.MoveControlPointBy.

RotateCore

Implementation of Shape.Rotate.

SaveFieldsCore

Implementation of IEntity.SaveFields.

TransformDrawCache

Transforms all objects and buffers to the current position and angle.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape