KLay Layered - Dynamic Label Sizing 

Page / - last modified by cds on 2013/05/07 17:33 

Dynamic Label Sizing 
last modified by cds
on 2013/05/07 17:33

Table of Contents
Basic Ideas
Integrating Dynamic Label Sizing With KLay Layered
Edge Labels (Center)

Work in Progress
Hey, there! You've arrived at the end of what humanity used to be capable of. That's right, this is the frontier to new and exciting realms of knowledge and expertise. Please bear in mind that since new frontiers are dangerous and fluctuating, everything explained on this page is also very much subject to change. Don't rely on this stuff just yet. You've been warned!
Labels of nodes, ports, and especially of edges can quickly become wider than we're comfortable with, causing diagram elements to increase in size to the point where the diagram becomes illegible. This page documents approaches we're exploring to tackle this problem.
Contents
•	Basic Ideas
•	Integrating Dynamic Label Sizing With KLay Layered
•	Edge Labels (Center)
Basic Ideas
There's two basic approaches for dynamically adjusting the size of labels:
 1.	Wrapping. This strategy splits the label's text into multiple lines, thus decreasing the width, but increasing the height of the label.
 2.	Abbreviating. This strategy shortens the label's text, thus effectively reducing its width and keeping the height constant.
These strategies can either be integrated with the layout algorithm or not. We will mostly be exploring how such strategies can be integrated into the layout algorithm.
Integrating Dynamic Label Sizing With KLay Layered
This is the status of support for dynamic label sizes of the different types of labels:
Label Type	Status	
Node	unsupported	
Port	Unsupported	
Edge (Source)	Unsupported	
Edge (Center)	Basic Support	
Edge (Target)	Unsupported	
Edge Labels (Center)
ToDo
Write this section.