Java 类org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator 实例源码

项目:greenpepper    文件:AbstractChartBuilder.java   
public String getChartMap(String chartMapId)
        throws IOException
{
    StringWriter writer = new StringWriter();
    PrintWriter pw = new PrintWriter(writer);

    try
    {
        ChartUtilities.writeImageMap(pw, chartMapId, chartRenderingInfo,
                                     new StandardToolTipTagFragmentGenerator(),
                                     new StandardURLTagFragmentGenerator());
    }
    finally
    {
        IOUtil.closeQuietly(pw);
    }

    return writer.toString();
}
项目:greenpepper    文件:AbstractChartBuilder.java   
/**
 * <p>getChartMap.</p>
 *
 * @param chartMapId a {@link java.lang.String} object.
 * @return a {@link java.lang.String} object.
 * @throws java.io.IOException if any.
 */
public String getChartMap(String chartMapId)
        throws IOException
{
    StringWriter writer = new StringWriter();
    PrintWriter pw = new PrintWriter(writer);

    try
    {
        ChartUtilities.writeImageMap(pw, chartMapId, chartRenderingInfo,
                                     new StandardToolTipTagFragmentGenerator(),
                                     new StandardURLTagFragmentGenerator());
    }
    finally
    {
        IOUtil.closeQuietly(pw);
    }

    return writer.toString();
}
项目:parabuild-ci    文件:ChartUtilities.java   
/**
 * Writes an image map to an output stream.
 *
 * @param writer  the writer (<code>null</code> not permitted).
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @throws IOException if there are any I/O errors.
 */
public static void writeImageMap(PrintWriter writer, String name, ChartRenderingInfo info)
    throws IOException {

    // defer argument checking...
    ImageMapUtil.writeImageMap(
        writer, name, info,
        new StandardToolTipTagFragmentGenerator(),
        new StandardURLTagFragmentGenerator()
    );

}
项目:parabuild-ci    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return the map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtil.getImageMap(
        name,
        info,
        new StandardToolTipTagFragmentGenerator(),
        new StandardURLTagFragmentGenerator()
    );
}
项目:livingdoc-confluence    文件:AbstractChartBuilder.java   
public String getChartMap(String chartMapId) throws IOException {
    StringWriter writer = new StringWriter();
    PrintWriter pw = new PrintWriter(writer);

    try {
        ChartUtilities.writeImageMap(pw, chartMapId, chartRenderingInfo, new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
    } finally {
        IOUtils.closeQuietly(pw);
    }

    return writer.toString();
}
项目:astor    文件:StandardToolTipTagFragmentGeneratorTests.java   
/**
 * Some checks for the generateURLFragment() method.
 */
public void testGenerateURLFragment() {
    StandardToolTipTagFragmentGenerator g
            = new StandardToolTipTagFragmentGenerator();
    assertEquals(" title=\"abc\" alt=\"\"",
            g.generateToolTipFragment("abc"));
    assertEquals(" title=\"Series &quot;A&quot;, 100.0\" alt=\"\"",
            g.generateToolTipFragment("Series \"A\", 100.0"));
}
项目:parabuild-ci    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to 
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo, 
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default 
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:ccu-historian    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:jfreechart    文件:ChartUtils.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtils#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name ({@code null} not permitted).
 * @param info  the chart rendering info ({@code null} not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtils.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:aya-lang    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:HTML5_WebSite    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:populus    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:PI    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:nabs    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to 
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo, 
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default 
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:ECG-Viewer    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:astor    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:opensim-gui    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to 
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo, 
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default 
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:group-five    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:manydesigns.cn    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:buffer_bci    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:buffer_bci    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:proyecto-teoria-control-utn-frro    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}
项目:Memetic-Algorithm-for-TSP    文件:ChartUtilities.java   
/**
 * Creates an HTML image map.  This method maps to
 * {@link ImageMapUtilities#getImageMap(String, ChartRenderingInfo,
 * ToolTipTagFragmentGenerator, URLTagFragmentGenerator)}, using default
 * generators.
 *
 * @param name  the map name (<code>null</code> not permitted).
 * @param info  the chart rendering info (<code>null</code> not permitted).
 *
 * @return The map tag.
 */
public static String getImageMap(String name, ChartRenderingInfo info) {
    return ImageMapUtilities.getImageMap(name, info,
            new StandardToolTipTagFragmentGenerator(),
            new StandardURLTagFragmentGenerator());
}