当前位置: 首页>>代码示例>>Java>>正文


Java StandardURLTagFragmentGenerator类代码示例

本文整理汇总了Java中org.jfree.chart.imagemap.StandardURLTagFragmentGenerator的典型用法代码示例。如果您正苦于以下问题:Java StandardURLTagFragmentGenerator类的具体用法?Java StandardURLTagFragmentGenerator怎么用?Java StandardURLTagFragmentGenerator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


StandardURLTagFragmentGenerator类属于org.jfree.chart.imagemap包,在下文中一共展示了StandardURLTagFragmentGenerator类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getChartMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
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();
}
 
开发者ID:strator-dev,项目名称:greenpepper,代码行数:20,代码来源:AbstractChartBuilder.java

示例2: getChartMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * <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();
}
 
开发者ID:strator-dev,项目名称:greenpepper,代码行数:27,代码来源:AbstractChartBuilder.java

示例3: writeImageMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * 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()
    );

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:21,代码来源:ChartUtilities.java

示例4: getImageMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * 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()
    );
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:ChartUtilities.java

示例5: getChartMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
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();
}
 
开发者ID:testIT-LivingDoc,项目名称:livingdoc-confluence,代码行数:14,代码来源:AbstractChartBuilder.java

示例6: testGenerateURLFragment

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * Some checks for the generateURLFragment() method.
 */
public void testGenerateURLFragment() {
    StandardURLTagFragmentGenerator g
            = new StandardURLTagFragmentGenerator();
    assertEquals(" href=\"abc\"", g.generateURLFragment("abc"));
    assertEquals(" href=\"images/abc.png\"",
            g.generateURLFragment("images/abc.png"));
    assertEquals(" href=\"http://www.jfree.org/images/abc.png\"",
            g.generateURLFragment("http://www.jfree.org/images/abc.png"));
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:13,代码来源:StandardURLTagFragmentGeneratorTests.java

示例7: getImageMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:ChartUtilities.java

示例8: getImageMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:17,代码来源:ChartUtilities.java

示例9: getImageMap

import org.jfree.chart.imagemap.StandardURLTagFragmentGenerator; //导入依赖的package包/类
/**
 * 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());
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:17,代码来源:ChartUtils.java


注:本文中的org.jfree.chart.imagemap.StandardURLTagFragmentGenerator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。