Add edge label for edgesprite of Flare

Source: Internet
Author: User

Http://goosebumps4all.net/34all/bb/showthread.php? Tid = 182

Using the labeler operator to add edge labels

Good morning,

This demo adds labels to edges with help of the labeler operator. doing this is a bit more complicated than adding labels to nodes since the edge label position has to updated whenever the edge is rendered newly (as far as I understand ), independent of which labeler policy is chosen (labeler. child or labeler. layer ). this seems to be case since the X and Y position fields of an edgesprite are not set newly (or at all) When an edgesprite is changing its position. (happy to be refuted on that)

Here we choose the labeler. layer policy since we want to ensure that edge labels are always drawn abve all edges.

Cheers

Martin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.