public class ImageMapUtilities extends Object
ChartUtilities
.Constructor and Description |
---|
ImageMapUtilities() |
Modifier and Type | Method and Description |
---|---|
static String |
getImageMap(String name,
ChartRenderingInfo info)
Creates an image map element that complies with the XHTML 1.0
specification.
|
static String |
getImageMap(String name,
ChartRenderingInfo info,
ToolTipTagFragmentGenerator toolTipTagFragmentGenerator,
URLTagFragmentGenerator urlTagFragmentGenerator)
Creates an image map element that complies with the XHTML 1.0
specification.
|
static String |
htmlEscape(String input)
Returns a string that is equivalent to the input string, but with
special characters converted to HTML escape sequences.
|
static String |
javascriptEscape(String input)
Returns a string that is equivalent to the input string, but with
special characters converted to JavaScript escape sequences.
|
static void |
writeImageMap(PrintWriter writer,
String name,
ChartRenderingInfo info)
Writes an image map to an output stream.
|
static void |
writeImageMap(PrintWriter writer,
String name,
ChartRenderingInfo info,
boolean useOverLibForToolTips)
Writes an image map to an output stream.
|
static void |
writeImageMap(PrintWriter writer,
String name,
ChartRenderingInfo info,
ToolTipTagFragmentGenerator toolTipTagFragmentGenerator,
URLTagFragmentGenerator urlTagFragmentGenerator)
Writes an image map to an output stream.
|
public static void writeImageMap(PrintWriter writer, String name, ChartRenderingInfo info) throws IOException
writer
- the writer (null
not permitted).name
- the map name (null
not permitted).info
- the chart rendering info (null
not permitted).IOException
- if there are any I/O errors.public static void writeImageMap(PrintWriter writer, String name, ChartRenderingInfo info, boolean useOverLibForToolTips) throws IOException
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/).IOException
- if there are any I/O errors.public static void writeImageMap(PrintWriter writer, String name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator) throws IOException
writer
- the writer (null
not permitted).name
- the map name (null
not permitted).info
- the chart rendering info (null
not permitted).toolTipTagFragmentGenerator
- a generator for the HTML fragment
that will contain the tooltip text (null
not permitted
if info
contains tooltip information).urlTagFragmentGenerator
- a generator for the HTML fragment that
will contain the URL reference (null
not permitted if
info
contains URLs).IOException
- if there are any I/O errors.public static String getImageMap(String name, ChartRenderingInfo info)
name
- the map name (null
not permitted).info
- the chart rendering info (null
not permitted).public static String getImageMap(String name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
name
- the map name (null
not permitted).info
- the chart rendering info (null
not permitted).toolTipTagFragmentGenerator
- a generator for the HTML fragment
that will contain the tooltip text (null
not permitted
if info
contains tooltip information).urlTagFragmentGenerator
- a generator for the HTML fragment that
will contain the URL reference (null
not permitted if
info
contains URLs).public static String htmlEscape(String input)
input
- the string to escape (null
not permitted).public static String javascriptEscape(String input)
input
- the string to escape (null
not permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics