|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.imagemap.ImageMapUtilities
public class ImageMapUtilities
Collection of utility methods related to producing image maps.
Functionality was originally in ChartUtilities
.
Constructor Summary | |
---|---|
ImageMapUtilities()
|
Method Summary | |
---|---|
static java.lang.String |
getImageMap(java.lang.String name,
ChartRenderingInfo info)
Creates an image map element that complies with the XHTML 1.0 specification. |
static java.lang.String |
getImageMap(java.lang.String name,
ChartRenderingInfo info,
ToolTipTagFragmentGenerator toolTipTagFragmentGenerator,
URLTagFragmentGenerator urlTagFragmentGenerator)
Creates an image map element that complies with the XHTML 1.0 specification. |
static java.lang.String |
htmlEscape(java.lang.String input)
Returns a string that is equivalent to the input string, but with special characters converted to HTML escape sequences. |
static java.lang.String |
javascriptEscape(java.lang.String input)
Returns a string that is equivalent to the input string, but with special characters converted to JavaScript escape sequences. |
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 |
---|
public ImageMapUtilities()
Method Detail |
---|
public static void writeImageMap(java.io.PrintWriter writer, java.lang.String name, ChartRenderingInfo info) throws java.io.IOException
writer
- the writer (null
not permitted).name
- the map name (null
not permitted).info
- the chart rendering info (null
not permitted).
java.io.IOException
- if there are any I/O errors.public static void writeImageMap(java.io.PrintWriter writer, java.lang.String name, ChartRenderingInfo info, boolean useOverLibForToolTips) throws java.io.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/).
java.io.IOException
- if there are any I/O errors.public static void writeImageMap(java.io.PrintWriter writer, java.lang.String name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator) throws java.io.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).
java.io.IOException
- if there are any I/O errors.public static java.lang.String getImageMap(java.lang.String name, ChartRenderingInfo info)
name
- the map name (null
not permitted).info
- the chart rendering info (null
not permitted).
public static java.lang.String getImageMap(java.lang.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 java.lang.String htmlEscape(java.lang.String input)
input
- the string to escape (null
not permitted).
public static java.lang.String javascriptEscape(java.lang.String input)
input
- the string to escape (null
not permitted).
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |