The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

yEd::Label::NodeLabel - Textlabels for Nodes

DESCRIPTION

Use this class to label your Nodes.

Make sure to have a look at yEd::Label, the properties and functions described there will not be repeated here.

If you want to label an Edge class element use yEd::Label::EdgeLabel.

SUPPORTED FEATURES

see yEd::Label

PROPERTIES

all properties from base class

yEd::Label

positionModell

Type: descrete values ( see below )

Default: 'internal-c'

Describes how to position the Label on the Node.

free

Free positioning (use x, y properties)

internal-X

Within the Node.

Where X is one of:

  • c : centered

  • t : top

  • b : bottom

  • l : left

  • r : right

  • tl : top left

  • tr : top right

  • bl : bottom left

  • br : bottom right

corners-X

Outside of the Node.

Where X is one of:

  • nw : north west

  • ne : north east

  • se : south east

  • sw : south west

sandwich-X

Outside of the Node.

Where X is one of:

  • n : north

  • s : south

sides-X

Outside of the Node.

Where X is one of:

  • n : north

  • s : south

  • w : west

  • e : east

eight_pos-X

Outside of the Node.

Where X is one of:

  • n : north

  • s : south

  • w : west

  • e : east

  • nw : north west

  • ne : north east

  • se : south east

  • sw : south west

edge_opposite

Outside of the Node, opposing the side that is connected to an Edge.

borderDistance

Type: float

Default: 0

Effect unknown ...

autoSizePolicy

Type: descrete values ( content | node_size | node_height | node_width )

Default: 'content'

The way to automatically determine the Labels height and/or witdh.

cropping

Type: bool

Default: false

Whether to wrap the text at Node boundaries (true) or let it emerge (false).

SUBROUTINES/METHODS

all functions from base class

yEd::Label

SEE ALSO

yEd::Document for further informations about the whole package

yEd::PropertyBasedObject for further basic information about properties and their additional functions

yEd::Label for information about the Label base class

yEd::Label::EdgeLabel for information about specialized Label elements for Edges