JClass 4.5.0 API
Documentation

com.klg.jclass.util.legend
Interface JCLegendPopulator

All Known Implementing Classes:
DefaultLegendPopulatorRenderer

public interface JCLegendPopulator

JCLegendPopulator is an interface implemented by classes that wish to populate a legend with data.


Method Summary
 List getLegendItems(FontMetrics fm)
          Retrives the legend items that make up the legend.
 boolean isTitleItem(JCLegendItem item)
          Checks whether a specified JCLegendItem is a title item for the legend, meaning that no symbol will be drawn.
 

Method Detail

getLegendItems

public List getLegendItems(FontMetrics fm)
Retrives the legend items that make up the legend.
Parameters:
fm - the font metrics for this legend
Returns:
a List of List objects, with each internal List object containing the list of JCLegendItem objects that make up one column of the legend.

isTitleItem

public boolean isTitleItem(JCLegendItem item)
Checks whether a specified JCLegendItem is a title item for the legend, meaning that no symbol will be drawn.
Parameters:
item - the JCLegendItem to check.
Returns:
true if this item is a title item, false otherwise.

Copyright© 1999-2000 KL Group Inc.
All rights reserved.