org.jfree.chart.imagemap
Class ImageMapUtil

java.lang.Object
  extended byorg.jfree.chart.imagemap.ImageMapUtil

public class ImageMapUtil
extends java.lang.Object

Collection of utility methods related to producing image maps. Functionality was originally in ChartUtilities.

Author:
Richard Atkinson

Constructor Summary
ImageMapUtil()
           
 
Method Summary
static java.lang.String getImageMap(java.lang.String name, ChartRenderingInfo info)
          Creates an HTML image map.
static java.lang.String getImageMap(java.lang.String name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
          Creates an HTML image map.
static void writeImageMap(java.io.PrintWriter writer, java.lang.String name, ChartRenderingInfo info)
          Writes an image map to an output stream.
static void writeImageMap(java.io.PrintWriter writer, java.lang.String name, ChartRenderingInfo info, boolean useOverLibForToolTips)
          Writes an image map to an output stream.
static void writeImageMap(java.io.PrintWriter writer, java.lang.String name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
          Writes an image map to an output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMapUtil

public ImageMapUtil()
Method Detail

writeImageMap

public static void writeImageMap(java.io.PrintWriter writer,
                                 java.lang.String name,
                                 ChartRenderingInfo info)
                          throws java.io.IOException
Writes an image map to an output stream.

Parameters:
writer - the writer (null not permitted).
name - the map name (null not permitted).
info - the chart rendering info (null not permitted).
Throws:
java.io.IOException - if there are any I/O errors.

writeImageMap

public static void writeImageMap(java.io.PrintWriter writer,
                                 java.lang.String name,
                                 ChartRenderingInfo info,
                                 boolean useOverLibForToolTips)
                          throws java.io.IOException
Writes an image map to an output stream.

Parameters:
writer - the writer (null not permitted).
name - the map name (null not permitted).
info - the chart rendering info (null not permitted).
useOverLibForToolTips - whether to use OverLIB for tooltips (http://www.bosrup.com/web/overlib/).
Throws:
java.io.IOException - if there are any I/O errors.

writeImageMap

public static void writeImageMap(java.io.PrintWriter writer,
                                 java.lang.String name,
                                 ChartRenderingInfo info,
                                 ToolTipTagFragmentGenerator toolTipTagFragmentGenerator,
                                 URLTagFragmentGenerator urlTagFragmentGenerator)
                          throws java.io.IOException
Writes an image map to an output stream.

Parameters:
writer - the writer (null not permitted).
name - the map name (null not permitted).
info - the chart rendering info (null not permitted).
toolTipTagFragmentGenerator - the tool tip generator.
urlTagFragmentGenerator - the url generator.
Throws:
java.io.IOException - if there are any I/O errors.

getImageMap

public static java.lang.String getImageMap(java.lang.String name,
                                           ChartRenderingInfo info)
Creates an HTML image map.

Parameters:
name - the map name (null not permitted).
info - the chart rendering info (null not permitted).
Returns:
the map tag.

getImageMap

public static java.lang.String getImageMap(java.lang.String name,
                                           ChartRenderingInfo info,
                                           ToolTipTagFragmentGenerator toolTipTagFragmentGenerator,
                                           URLTagFragmentGenerator urlTagFragmentGenerator)
Creates an HTML image map.

Parameters:
name - the map name (null not permitted).
info - the chart rendering info (null not permitted).
toolTipTagFragmentGenerator - the tool tip generator.
urlTagFragmentGenerator - the url generator.
Returns:
the map tag.