com.jinsight.jetchart
Class XYLineSerie

java.lang.Object
  |
  +--com.jinsight.jetchart.AbstractSerie
        |
        +--com.jinsight.jetchart.ScatterSerie
              |
              +--com.jinsight.jetchart.XYLineSerie

public class XYLineSerie
extends ScatterSerie

This class implements the properties and methods of XY line series. An XY line series is displayed as a sequence of points connected by lines. Each point is associated with a pair of xy values which are calculated with respect to a horizontal and a vertical scales, respectively.

See Also:
ScatterSerie

Field Summary
static int EMPTY_CIRCLE_MARK
          Constant used to set marks style to an empty circle.
static int EMPTY_DIAMOND_MARK
          Constant used to set marks style to an empty diamond.
static int EMPTY_SQUARE_MARK
          Constant used to set marks style to an empty square.
static int EMPTY_TRIANGLE_MARK
          Constant used to set marks style to an empty triangle.
static int MARK_SHAPE_LEGEND
          Constant used to set the legend symbol of an xy line series to the shape of its data points marks.
static int SOLID_CIRCLE_MARK
          Constant used to set marks style to a solid circle.
static int SOLID_DIAMOND_MARK
          Constant used to set marks style to a solid diamond.
static int SOLID_SQUARE_LEGEND
          Constant used to set the legend symbol of an xy line series to a solid square.
static int SOLID_SQUARE_MARK
          Constant used to set marks style to a solid square.
static int SOLID_TRIANGLE_MARK
          Constant used to set marks style to a solid triangle.
static int X_MARK
          Constant used to set marks style to an X letter.
 
Fields inherited from class com.jinsight.jetchart.AbstractSerie
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA
 
Constructor Summary
XYLineSerie()
          Creates an XYLineSerie object.
XYLineSerie(double[][] multipleValues)
          Creates an XYLineSerie object.
XYLineSerie(double[][] multipleValues, java.lang.String title)
          Creates an XYLineSerie object.
 
Method Summary
 void setLegendStyle(int legendStyle)
          Sets the style of an xy line series legend.
 void setMarksColor(java.awt.Color marksColor)
          Sets the color of the marks displayed on data points.
 void setMarksEnabled(boolean isMarksEnabled)
          Enables/disables marks on coordinates.
 void setMarksStyle(int marksStyle)
          Sets the style of data points' marks.
 void setThickness(int thickness)
          Sets line thickness.
 
Methods inherited from class com.jinsight.jetchart.ScatterSerie
finalize, getColor, getRegressionLine, getSerieMap, removeRegressionLine, setColor, setMultipleValues, setTitle, setToolTipText, setValuesFormat
 
Methods inherited from class com.jinsight.jetchart.AbstractSerie
getId, getMultipleValues, getValues, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipContent, setToolTipEnabled, setValueFormat, setValues, setValues, setValuesQuery
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOLID_SQUARE_MARK

public static final int SOLID_SQUARE_MARK
Constant used to set marks style to a solid square.

EMPTY_SQUARE_MARK

public static final int EMPTY_SQUARE_MARK
Constant used to set marks style to an empty square.

SOLID_TRIANGLE_MARK

public static final int SOLID_TRIANGLE_MARK
Constant used to set marks style to a solid triangle.

EMPTY_TRIANGLE_MARK

public static final int EMPTY_TRIANGLE_MARK
Constant used to set marks style to an empty triangle.

SOLID_DIAMOND_MARK

public static final int SOLID_DIAMOND_MARK
Constant used to set marks style to a solid diamond.

EMPTY_DIAMOND_MARK

public static final int EMPTY_DIAMOND_MARK
Constant used to set marks style to an empty diamond.

SOLID_CIRCLE_MARK

public static final int SOLID_CIRCLE_MARK
Constant used to set marks style to a solid circle.

EMPTY_CIRCLE_MARK

public static final int EMPTY_CIRCLE_MARK
Constant used to set marks style to an empty circle.

X_MARK

public static final int X_MARK
Constant used to set marks style to an X letter.

SOLID_SQUARE_LEGEND

public static final int SOLID_SQUARE_LEGEND
Constant used to set the legend symbol of an xy line series to a solid square.

MARK_SHAPE_LEGEND

public static final int MARK_SHAPE_LEGEND
Constant used to set the legend symbol of an xy line series to the shape of its data points marks.
Constructor Detail

XYLineSerie

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

XYLineSerie

public XYLineSerie(double[][] multipleValues)
Creates an XYLineSerie object. This constructor takes a bidimensional array of values. The subarray contains a pair of values corresponding to the xy coordinates of a data point.
Parameters:
multipleValues - Bidimensional array of double precision numbers.

XYLineSerie

public XYLineSerie(double[][] multipleValues,
                   java.lang.String title)
Creates an XYLineSerie object. This constructor takes a bidimensional array of values and the series title. The subarray contains a pair of values corresponding to the xy coordinates of a data point.
Parameters:
multipleValues - Bidimensional array of double precision numbers.
title - A String object. The series title is displayed in the legend box.
Method Detail

setThickness

public void setThickness(int thickness)
Sets line thickness. Default value is 1 pixel.
Parameters:
thickness - An integer number.

setMarksEnabled

public void setMarksEnabled(boolean isMarksEnabled)
Enables/disables marks on coordinates. If enabled, a small square is displayed on data points. Default value is true.
Parameters:
isMarksEnabled - A boolean value(true/false).

setMarksColor

public void setMarksColor(java.awt.Color marksColor)
Sets the color of the marks displayed on data points.
Parameters:
marksColor - A Color object.
See Also:
setMarksEnabled(boolean)

setMarksStyle

public void setMarksStyle(int marksStyle)
Sets the style of data points' marks. Marks' style is by default a solid square.
Parameters:
marksStyle - An integer value.
See Also:
setMarksEnabled(boolean), SOLID_SQUARE_MARK, EMPTY_SQUARE_MARK, SOLID_TRIANGLE_MARK, EMPTY_TRIANGLE_MARK, SOLID_DIAMOND_MARK, EMPTY_DIAMOND_MARK, SOLID_CIRCLE_MARK, EMPTY_CIRCLE_MARK, X_MARK

setLegendStyle

public void setLegendStyle(int legendStyle)
Sets the style of an xy line series legend. The legend symbol is by default a solid square, but its shape can be changed to match the shape of respective series marks, in which case a horizontal line crossing the symbol is also displayed. The symbol is painted in the marks color and the crossing line is painted in the series color.
Parameters:
legendStyle - An integer value.
See Also:
SOLID_SQUARE_LEGEND, MARK_SHAPE_LEGEND, setMarksEnabled(boolean)