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

私は最後のパラメータのURLを使用することについて知りたいと思います。jfreechartで円グラフを理解する

どういう意味ですか?

どのような例ですか?

URLを生成するようにチャートを設定しますか?それはどういう意味ですか?

答えて

1

私はChartFactoryhttp://www.jfree.org/jfreechart/api/gjdoc/org/jfree/chart/ChartFactory-source.html

のこのコードはjsfreechartヘルプが伝えそこに新しいStandardPieURLGenerator

のインスタンスをURLを使ってのテストで探したグーグルで:

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' [here](http://stackoverflow.com/a/6295405/230513)を使った例があります。 – trashgod

関連する問題