本文整理汇总了Java中org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator类的典型用法代码示例。如果您正苦于以下问题:Java StandardToolTipTagFragmentGenerator类的具体用法?Java StandardToolTipTagFragmentGenerator怎么用?Java StandardToolTipTagFragmentGenerator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StandardToolTipTagFragmentGenerator类属于org.jfree.chart.imagemap包,在下文中一共展示了StandardToolTipTagFragmentGenerator类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getChartMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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();
}
示例2: getChartMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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();
}
示例3: writeImageMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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()
);
}
示例4: getImageMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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()
);
}
示例5: getChartMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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();
}
示例6: testGenerateURLFragment
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的package包/类
/**
* Some checks for the generateURLFragment() method.
*/
public void testGenerateURLFragment() {
StandardToolTipTagFragmentGenerator g
= new StandardToolTipTagFragmentGenerator();
assertEquals(" title=\"abc\" alt=\"\"",
g.generateToolTipFragment("abc"));
assertEquals(" title=\"Series "A", 100.0\" alt=\"\"",
g.generateToolTipFragment("Series \"A\", 100.0"));
}
示例7: getImageMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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());
}
示例8: getImageMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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());
}
示例9: getImageMap
import org.jfree.chart.imagemap.StandardToolTipTagFragmentGenerator; //导入依赖的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());
}