分享

标签专题图的问题

 WindySky 2009-01-07

如果要使用tl.items,必须设置tl.rangeExpression。

参考代码:

ThemeLabel tl = new ThemeLabel();
   tl.labelExpression = "Country";
   tl.rangeExpression = "SmID";
   tl.items = new ThemeLabelItem[2];
   tl.items[0] = new ThemeLabelItem();
   tl.items[0].start = 1;
   tl.items[0].end = 147;
   tl.items[0].style = new TextStyle();
   tl.items[0].style.bold = true;
   tl.items[0].style.italic = true;
   tl.items[0].style.color = Color.sysColorToServicesColor(java.awt.Color.RED);
   tl.items[0].visible = true;
   tl.items[0].caption = "caption0";
   
   tl.items[1] = new ThemeLabelItem();
   tl.items[1].start = 147;
   tl.items[1].end = 247;
   tl.items[1].style = new TextStyle();
   tl.items[1].style.bold = true;
   tl.items[1].style.italic = true;
   tl.items[1].style.color = Color.sysColorToServicesColor(java.awt.Color.YELLOW);
   tl.items[1].visible = true;
   tl.items[1].caption = "caption1";

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约