org.jfree.chart.imagemap.StandardURLTagFragmentGenerator Java Examples

The following examples show how to use org.jfree.chart.imagemap.StandardURLTagFragmentGenerator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractChartBuilder.java    From livingdoc-confluence with GNU General Public License v3.0 5 votes vote down vote up
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();
}
 
Example #2
Source File: StandardURLTagFragmentGeneratorTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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"));
}
 
Example #3
Source File: ChartUtilities.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #4
Source File: ChartUtilities.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #5
Source File: ChartUtilities.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #6
Source File: ChartUtilities.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #7
Source File: ChartUtilities.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #8
Source File: ChartUtilities.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #9
Source File: ChartUtilities.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #10
Source File: ChartUtilities.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #11
Source File: ChartUtilities.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * 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());
}