java.lang.Object | |
↳ | org.jfree.chart.ChartUtilities |
A collection of utility methods for JFreeChart. Includes methods for converting charts to image formats (PNG and JPEG) plus creating simple HTML image maps.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Applies the current theme to the specified chart.
| |||||||||||
Encodes a
BufferedImage to PNG format. | |||||||||||
Encodes a
BufferedImage to PNG format. | |||||||||||
Creates an HTML image map.
| |||||||||||
Creates an HTML image map.
| |||||||||||
Saves a chart to a file in JPEG format.
| |||||||||||
Saves a chart to a file in JPEG format.
| |||||||||||
Saves a chart to a file in JPEG format.
| |||||||||||
Saves a chart to a file in JPEG format.
| |||||||||||
Saves a chart to the specified file in PNG format.
| |||||||||||
Saves a chart to a file in PNG format.
| |||||||||||
Saves a chart to a file in PNG format.
| |||||||||||
Writes a
BufferedImage to an output stream in JPEG format. | |||||||||||
Writes a
BufferedImage to an output stream in JPEG format. | |||||||||||
Writes a
BufferedImage to an output stream in PNG format. | |||||||||||
Writes a
BufferedImage to an output stream in PNG format. | |||||||||||
Writes a chart to an output stream in JPEG format.
| |||||||||||
Writes a chart to an output stream in JPEG format.
| |||||||||||
Writes a chart to an output stream in JPEG format.
| |||||||||||
Writes a chart to an output stream in JPEG format.
| |||||||||||
Writes a chart to an output stream in PNG format.
| |||||||||||
Writes a chart to an output stream in PNG format.
| |||||||||||
Writes a chart to an output stream in PNG format.
| |||||||||||
Writes a chart to an output stream in PNG format.
| |||||||||||
Writes an image map to the specified writer.
| |||||||||||
Writes an image map to an output stream.
| |||||||||||
Writes a scaled version of a chart to an output stream in PNG format.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Applies the current theme to the specified chart. This method is
provided for convenience, the theme itself is stored in the
ChartFactory
class.
chart | the chart (null not permitted). |
---|
Encodes a BufferedImage
to PNG format.
image | the image (null not permitted). |
---|---|
encodeAlpha | encode alpha? |
compression | the PNG compression level (0-9). |
IOException | if there is an I/O problem. |
---|
Encodes a BufferedImage
to PNG format.
image | the image (null not permitted). |
---|
IOException | if there is an I/O problem. |
---|
Creates an HTML image map. This method maps directly to
getImageMap(String, ChartRenderingInfo, ToolTipTagFragmentGenerator, 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). |
Creates an HTML image map. This method maps to
getImageMap(String, ChartRenderingInfo, ToolTipTagFragmentGenerator, URLTagFragmentGenerator)
, using default
generators.
name | the map name (null not permitted). |
---|---|
info | the chart rendering info (null not permitted). |
Saves a chart to a file in JPEG format. This method allows you to pass
in a ChartRenderingInfo
object, to collect information about the
chart dimensions/entities. You will need this info if you want to
create an HTML image map.
file | the file name (null not permitted). |
---|---|
quality | the quality setting. |
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
IOException | if there are any I/O errors. |
---|
Saves a chart to a file in JPEG format.
file | the file (null not permitted). |
---|---|
quality | the JPEG quality setting. |
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
IOException | if there are any I/O errors. |
---|
Saves a chart to a file in JPEG format. This method allows you to pass
in a ChartRenderingInfo
object, to collect information about the
chart dimensions/entities. You will need this info if you want to
create an HTML image map.
file | the file name (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
IOException | if there are any I/O errors. |
---|
Saves a chart to a file in JPEG format.
file | the file (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
IOException | if there are any I/O errors. |
---|
Saves a chart to the specified file in PNG format.
file | the file name (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
IOException | if there are any I/O errors. |
---|
Saves a chart to a file in PNG format. This method allows you to pass
in a ChartRenderingInfo
object, to collect information about the
chart dimensions/entities. You will need this info if you want to
create an HTML image map.
file | the file (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
encodeAlpha | encode alpha? |
compression | the PNG compression level (0-9). |
IOException | if there are any I/O errors. |
---|
Saves a chart to a file in PNG format. This method allows you to pass
in a ChartRenderingInfo
object, to collect information about the
chart dimensions/entities. You will need this info if you want to
create an HTML image map.
file | the file (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
IOException | if there are any I/O errors. |
---|
Writes a BufferedImage
to an output stream in JPEG format.
out | the output stream (null not permitted). |
---|---|
image | the image (null not permitted). |
IOException | if there are any I/O errors. |
---|
Writes a BufferedImage
to an output stream in JPEG format.
out | the output stream (null not permitted). |
---|---|
quality | the image quality (0.0f to 1.0f). |
image | the image (null not permitted). |
IOException | if there are any I/O errors. |
---|
Writes a BufferedImage
to an output stream in PNG format.
out | the output stream (null not permitted). |
---|---|
image | the image (null not permitted). |
IOException | if there are any I/O errors. |
---|
Writes a BufferedImage
to an output stream in PNG format.
out | the output stream (null not permitted). |
---|---|
image | the image (null not permitted). |
encodeAlpha | encode alpha? |
compression | the compression level (0-9). |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in JPEG format. This method allows
you to pass in a ChartRenderingInfo
object, to collect
information about the chart dimensions/entities. You will need this
info if you want to create an HTML image map.
out | the output stream (null not permitted). |
---|---|
quality | the output quality (0.0f to 1.0f). |
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in JPEG format. Please note that JPEG is a poor format for chart images, use PNG if possible.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in JPEG format. Please note that JPEG is a poor format for chart images, use PNG if possible.
out | the output stream (null not permitted). |
---|---|
quality | the quality setting. |
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in JPEG format. This method allows
you to pass in a ChartRenderingInfo
object, to collect
information about the chart dimensions/entities. You will need this
info if you want to create an HTML image map.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in PNG format. This method allows
you to pass in a ChartRenderingInfo
object, to collect
information about the chart dimensions/entities. You will need this
info if you want to create an HTML image map.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | the chart rendering info (null permitted). |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in PNG format. This method allows
you to pass in a ChartRenderingInfo
object, to collect
information about the chart dimensions/entities. You will need this
info if you want to create an HTML image map.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
info | carries back chart rendering info (null
permitted). |
encodeAlpha | encode alpha? |
compression | the PNG compression level (0-9). |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in PNG format.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
encodeAlpha | encode alpha? |
compression | the compression level (0-9). |
IOException | if there are any I/O errors. |
---|
Writes a chart to an output stream in PNG format.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the image width. |
height | the image height. |
IOException | if there are any I/O errors. |
---|
Writes an image map to the specified writer.
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. |
---|
Writes an image map to an output stream.
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. |
---|
Writes a scaled version of a chart to an output stream in PNG format.
out | the output stream (null not permitted). |
---|---|
chart | the chart (null not permitted). |
width | the unscaled chart width. |
height | the unscaled chart height. |
widthScaleFactor | the horizontal scale factor. |
heightScaleFactor | the vertical scale factor. |
IOException | if there are any I/O problems. |
---|