Package org.jfree.chart.imagemap

Examples of org.jfree.chart.imagemap.URLTagFragmentGenerator


    }
    try {
      // Tooltip
      if(showtooltip) {
        ToolTipTagFragmentGenerator tttfg = new ToolTipTagFragmentGeneratorImpl(url);
        URLTagFragmentGenerator utfg=new EmptyURLTagFragmentGenerator();
       
        String map=ImageMapUtilities.getImageMap(mapName, info,tttfg,utfg).trim();
        pageContext.write(map);
      }
      pageContext.write("<img border=\"0\" usemap=\"#"+mapName+"\" src=\""+src+"\">");
View Full Code Here


                        ChartUtilities.writeChartAsPNG(imageStream, chart, width(), height(), info, true, 0);
                    }
                    if(showToolTips() || showUrls()) {
                        _imageMapName = "ERP" + System.identityHashCode(chart);
                        ToolTipTagFragmentGenerator toolTipGenerator = null;
                        URLTagFragmentGenerator urlTagFragmentGenerator = null;
                        if(showToolTips()) {
                            toolTipGenerator = new ToolTipTagFragmentGenerator() {
                                public String generateToolTipFragment(String toolTip) {
                                    return " title=\"" +toolTip + "\"";
                                }
                            };
                        }
                        if(showUrls()) {
                            urlTagFragmentGenerator = new URLTagFragmentGenerator() {
                                public String generateURLFragment(String url) {
                                    return " href=\""+url+"\"";
                                }
                            };
                        }
View Full Code Here

TOP

Related Classes of org.jfree.chart.imagemap.URLTagFragmentGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.