Automatic Node Labeling Demo
This demo shows how to use the GenericLabeling algorithm (see also
Generic Labeling in the Developer's
Guide) to set the positions of labels. Additionally, we show how to set rules which define
preferred placement positions of specific label positions using
NodeLabelCandidates.
Things to Try
- Add a new city by clicking on the canvas.
- Edit a label by selecting it and pressing F2.
- Run the label placement algorithm by clicking the button 'Place Labels'.
-
Change the label model using the select box in the toolbar. The label placement
algorithm runs automatically.
-
Change the font size of the labels using the select box in the toolbar. The label
placement algorithm runs automatically.
-
If not positioned to your liking, drag labels to reposition them. This will 'pin' them
locking their position for generic labeling.
- Clicking a label will 'unpin' it.