com.jinsight.jetchart
Class ImageSerie

java.lang.Object
  |
  +--com.jinsight.jetchart.AbstractSerie
        |
        +--com.jinsight.jetchart.GraphSerie
              |
              +--com.jinsight.jetchart.ImageSerie

public class ImageSerie
extends GraphSerie

The ImageSerie class plots a series whose data points are depicted as images.


Fields inherited from class com.jinsight.jetchart.GraphSerie
ABOVE_TOP_YAXIS, AREA, BAR, BAR_HLC, BAR_OHLC, BESIDE_TOP_YAXIS, CANDLESTICK, DASHED, EMPTY_CIRCLE_MARK, EMPTY_DIAMOND_MARK, EMPTY_SQUARE_MARK, EMPTY_TRIANGLE_MARK, IMAGE, LEGEND, LINE, LINE_HLC, LINE_OHLC, MARK_SHAPE_LEGEND, POINT, ROUNDED_CANDLESTICK, SOLID, SOLID_CIRCLE_MARK, SOLID_DIAMOND_MARK, SOLID_SQUARE_LEGEND, SOLID_SQUARE_MARK, SOLID_TRIANGLE_MARK, STACKED_BAR, X_MARK
 
Fields inherited from class com.jinsight.jetchart.AbstractSerie
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA
 
Constructor Summary
ImageSerie()
          Creates an ImageSerie object.
ImageSerie(double[] values)
          Creates an ImageSerie object.
ImageSerie(double[] values, java.awt.Image[] images)
          Creates an ImageSerie object.
 
Method Summary
 java.lang.String getSerieMap(java.lang.String[] urls, int type, java.lang.String target)
          Creates a chart image map.
 java.lang.String getSerieMap(java.lang.String[] urls, java.lang.String target, boolean addLabels)
          Creates a chart image map.
 java.lang.String getSerieMap(java.lang.String[] urls, java.lang.String target, java.lang.String[] labels)
          Creates a chart image map.
 void setImages(java.awt.Image[] images)
          Sets images to be displayed on data points.
 
Methods inherited from class com.jinsight.jetchart.GraphSerie
finalize, getColor, getMultipleValues, getRegressionLine, getTitle, getType, getValues, removeRegressionLine, setColor, setCoordinatesStatus, setFont, setMarkLegendBackground, setMarkLegendEnabled, setMarkLegendForeground, setMarkLegendOpacityEnabled, setMarksColor, setMarksEnabled, setMarksStyle, setMultipleValues, setStartPoint, setTitle, setTitleFont, setTitlePosition, setToolTipContent, setValues, setValuesQuery
 
Methods inherited from class com.jinsight.jetchart.AbstractSerie
getId, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipEnabled, setValueFormat, setValues
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSerie

public ImageSerie()
Creates an ImageSerie object. Default constructor.

ImageSerie

public ImageSerie(double[] values)
Creates an ImageSerie object.
Parameters:
values - An array of double precision numbers containing series values.

ImageSerie

public ImageSerie(double[] values,
                  java.awt.Image[] images)
Creates an ImageSerie object.
Parameters:
values - An array of double precision numbers containing series values.
images - An array of Image objects to be displayed on data points.
Method Detail

setImages

public void setImages(java.awt.Image[] images)
Sets images to be displayed on data points.
Parameters:
images - An array of Image objects.

getSerieMap

public java.lang.String getSerieMap(java.lang.String[] urls,
                                    int type,
                                    java.lang.String target)
Description copied from class: AbstractSerie
Creates a chart image map. A image map is used in an HTML document to allow regions of an image to be linked to other HTML documents. The web browser will bring up a different document depending where on the image map the user clicks. The map itself is either a separate file (server-side maps) or part of the HTML document (client-side maps).
A client-side map can be inserted into html text to be returned by a servlet that also generates the chart image.
If the 'urls' parameter is informed, data points coordinates are associated with each element found in the array of urls. If hyperlinks are not required set the 'urls' parameter to null.
The second parameter sets the map format type. Image map can be generated in three different formats. A client-side map and an NCSA server or CERN server formatted map. The client-side map is the most used format.
The third parameter sets a target. The target is the name of an html frame used to display the page associated with the image map. This parameter is only related to client-side image mapping. If a target frame is not required set the 'target' parameter to null.
Overrides:
getSerieMap in class GraphSerie
Following copied from class: com.jinsight.jetchart.AbstractSerie
Parameters:
urls - An array of strings containing valid urls.
type - An integer representing the format type.
target - A string object.
See Also:
AbstractSerie.CLIENT_SIDE, AbstractSerie.SERVER_SIDE_NCSA, AbstractSerie.SERVER_SIDE_CERN

getSerieMap

public java.lang.String getSerieMap(java.lang.String[] urls,
                                    java.lang.String target,
                                    boolean addLabels)
Description copied from class: GraphSerie
Creates a chart image map. A image map is used in an HTML document to allow regions of an image to be linked to other HTML documents. The web browser will bring up a different document depending on the region of the image map clicked by user. The map itself is either a separate file (server-side maps) or part of the HTML document (client-side maps).
A client-side map can be inserted into html text to be returned by a charting servlet.
If the 'urls' parameter is informed, data points coordinates are associated with each element found in the array of urls. If hyperlinks are not required set the 'urls' parameter to null.
The second parameter sets a target. The target is the name of an html frame used to display the page associated with the image map. This parameter is only related to client-side image mapping. If a target frame is not required set the 'target' parameter to null.
If a client-side image map is generated, data points values are always inserted into the 'onMouseOver' and 'alt' attributes of the tag. By default, respective labels are not inserted. The 'addLabels' parameter is a flag that controls labels insertion into the tag. If true, data points labels are also inserted.
This variant of the getSerieMap method only applies to client-side maps.
Overrides:
getSerieMap in class GraphSerie
Following copied from class: com.jinsight.jetchart.GraphSerie
Parameters:
urls - An array of strings containing valid urls.
target - A string object.
addLabels - a boolean value(true/false).

getSerieMap

public java.lang.String getSerieMap(java.lang.String[] urls,
                                    java.lang.String target,
                                    java.lang.String[] labels)
Description copied from class: GraphSerie
Creates a chart image map. A image map is used in an HTML document to allow regions of an image to be linked to other HTML documents. The web browser will bring up a different document depending on the region of the image map clicked by user. The map itself is either a separate file (server-side maps) or part of the HTML document (client-side maps).
A client-side map can be inserted into html text to be returned by a charting servlet.
If the 'urls' parameter is informed, data points coordinates are associated with each element found in the array of urls. If hyperlinks are not required set the 'urls' parameter to null.
The second parameter sets a target. The target is the name of an html frame used to display the page associated with the image map. This parameter is only related to client-side image mapping. If a target frame is not required set the 'target' parameter to null.
If a client-side map is generated, data points values are always inserted into the 'onMouseOver' and 'alt' attributes of the tag. By default, respective labels are not inserted. The 'labels' parameter is a list of strings containing description of values. If this parameter is informed, these strings are inserted into the image map along with respective values.
This variant of the getSerieMap method only applies to client-side maps.
Overrides:
getSerieMap in class GraphSerie
Following copied from class: com.jinsight.jetchart.GraphSerie
Parameters:
urls - An array of strings containing valid urls.
target - A string object.
labels - An array of strings containing data points labels.