JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java Tools  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
作者 JFreeChart 的圓餅圖標籤英文字換行問題
dreamltf

wicket



發文: 649
積分: 5
於 2009-01-14 17:29 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請教大家如何處理圓餅圖標籤英文字換行的問題
如圖, 過長的英文會被隨格子大小切割

我現在只能採用 org.apache.commons.lang.WordUtils 的 wrap() method 勉強避掉
1
2
3
4
5
6
7
8
9
10
11
12
13
private static PieDataset createDataset() {
    DefaultPieDataset dataset = new DefaultPieDataset();
    dataset.setValue("One", new Double(43.2));
    dataset.setValue("Two1", new Double(10.0));
    dataset.setValue("Three", new Double(27.5));
    dataset
        .setValue(
            "this is a veryveryveryveryveryveryveryveryveryvery simple demo of jfreechart",
            new Double(17.5));
    dataset.setValue("Five", new Double(11.0));
    dataset.setValue("Six", new Double(19.4));
    return dataset;
  }



reply to postreply to post
» JWorld@TW »  Java Tools

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8