2012-01-18 3 views
0
public static JFreeChart createPieChart(java.lang.String title, 
         PieDataset dataset, 
         boolean legend, 
         boolean tooltips, 
         boolean urls) 

Я хочу знать об использовании последних параметров URL;понимание piechart in jfreechart

Что это?

любой пример?

Настроить диаграмму для создания URL-адресов? Что это значит?

ответ

1

прибегая к помощи я нашел этот код ChartFactoryhttp://www.jfree.org/jfreechart/api/gjdoc/org/jfree/chart/ChartFactory-source.html

Looking в тесте с использованием URLs там экземпляр нового StandardPieURLGenerator

jsfreechart помощь говорит:

Interface for a URL generator for plots that use data from a PieDataset. Classes that implement this interface: 
- are responsible for correctly escaping any text that is derived from the dataset, as this may be user-specified and could pose a security risk; 
- should be either (a) immutable, or (b) cloneable via the PublicCloneable interface (defined in the JCommon class library). This provides a mechanism for the referring plot to clone the generator if necessary. 

http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/urls/PieURLGenerator.html

Надеюсь, это поможет.

+0

Вы можете указать ссылку примера, которая ее реализует. –

+0

@HemantMetalia: Пример использования «StandardPieURLGenerator» [здесь] (http://stackoverflow.com/a/6295405/230513). – trashgod

Смежные вопросы