If you do not want an automatic JScrollPane
around
your legend, you can use:
IlvMapLegend legend = new IlvMapLegend ();
legend.setView(view);
The Legend panel uses the properties of map
layers to retrieve the
IlvMapStyle.CATEGORY
and
IlvMapStyle.LEGEND_GROUP
string
properties (for details of these properties, see
Common styling properties).
By default (when these values are null), each map layer
has its own line in the legend. The user can override this by setting
identical values in the Category
or Legend
Group
fields.
Layers are ordered according to their legend group (all
layers with the same legend group are displayed together, inside the
same frame).
When
layers share the same legend group and category,
they are displayed on a single legend line – possibly with
more than one legend caption to display all the different aspects
this legend item can have.