Note
Before reading this section, you should be familiar with the
IlvLabelingModel class (see Labels and obstacles in Java).
It is sometimes necessary to add label
layout features to an existing application.
If the application uses a diagram
component with styling, using the Annealing Label Layout is a
straightforward process. You use the internal labeling model of
the label layout renderer, but you do not need to worry about the
details.
If your application is not based on styling, but already uses the
class IlvManagerLayer to manipulate and display
labels and obstacles, you can use and adapt the default labeling
model ( IlvDefaultLabelingModel).
Even if the application uses data structures
that are independent of the Rogue Wave® JViews data structures, it
is possible to apply a supplied label layout algorithm.
If you need to define your own labeling model, create a subclass of
IlvLabelingModel. If the layout is to support
rotated labels, your subclass must additionally implement the
interface IlvLabelingModelWithRotation.