com.jinsight.jetchart
Class XYLineSerie

java.lang.Object
  extended bycom.jinsight.jetchart.AbstractSerie
      extended bycom.jinsight.jetchart.ScatterSerie
          extended bycom.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 setMarksHeight(int marksHeight)
          Sets the height of a data point mark.
 void setMarksStyle(int marksStyle)
          Sets the style of data points' marks.
 void setMarksWidth(int marksWidth)
          Sets the width of a data point mark.
 void setThickness(int thickness)
          Sets line thickness.
 
Methods inherited from class com.jinsight.jetchart.ScatterSerie
finalize, getColor, getMultipleValues, getRegressionLine, getSerieMap, getTitle, removeRegressionLine, setColor, setDateFormat, setDateFormat, setDateValues, setMultipleValues, setTitle, setToolTipDateFormat, setToolTipDateFormat, setToolTipText, setValuesFormat, setValuesQuery
 
Methods inherited from class com.jinsight.jetchart.AbstractSerie
addMultipleValues, addValue, getId, getValues, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipContent, setToolTipEnabled, setValueFormat, setValues, setValues
 
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.

See Also:
Constant Field Values

EMPTY_SQUARE_MARK

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

See Also:
Constant Field Values

SOLID_TRIANGLE_MARK

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

See Also:
Constant Field Values

EMPTY_TRIANGLE_MARK

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

See Also:
Constant Field Values

SOLID_DIAMOND_MARK

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

See Also:
Constant Field Values

EMPTY_DIAMOND_MARK

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

See Also:
Constant Field Values

SOLID_CIRCLE_MARK

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

See Also:
Constant Field Values

EMPTY_CIRCLE_MARK

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

See Also:
Constant Field Values

X_MARK

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

See Also:
Constant Field Values

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.

See Also:
Constant Field Values

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.

See Also:
Constant Field Values
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

setMarksWidth

public void setMarksWidth(int marksWidth)
Sets the width of a data point mark. Default value is 6 pixels.

Parameters:
marksWidth - An integer value, larger than zero.
See Also:
setMarksStyle(int), setMarksHeight(int)

setMarksHeight

public void setMarksHeight(int marksHeight)
Sets the height of a data point mark. Default value is 6 pixels.

Parameters:
marksHeight - An integer value, larger than zero.
See Also:
setMarksStyle(int), setMarksWidth(int)

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)