|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.AbstractSerie
com.jinsight.jetchart.GraphSerie
This class is the superclass of all series whose data points are plotted against only one scale and are associated with descriptive labels, as line series, bar series, area series,etc.
AbstractSerie| Field Summary | |
static int |
ABOVE_TOP_YAXIS
Constant used to display the series title above the top and to the right of the y axis. |
static int |
AREA
Identifies the series as an area series. |
static int |
BAR
Identifies the series as a bar series. |
static int |
BAR_HLC
Identifies the series as an HLC bar series. |
static int |
BAR_OHLC
Identifies the series as an OHLC bar series. |
static int |
BESIDE_TOP_YAXIS
Constant used to display the series title beside the top and to the right of the y axis. |
static int |
CANDLESTICK
Identifies the series as a candlestick series. |
static int |
DASHED
Constant used to set the line style of line series and OHLC/HLC line series to dashed. |
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 |
IMAGE
Identifies the series as an image series. |
static int |
LEGEND
Constant used to display the series title inside the legend box. |
static int |
LINE
Identifies the series as a line series. |
static int |
LINE_HLC
Identifies the series as an HLC line series. |
static int |
LINE_OHLC
Identifies the series as an OHLC line series. |
static int |
MARK_SHAPE_LEGEND
Constant used to set the legend style of line series and OHLC/HLC line series to the shape of respective series' marks. |
static int |
POINT
Identifies the series as a point series. |
static int |
ROUNDED_CANDLESTICK
Identifies the series as a rounded candlestick series. |
static int |
SOLID
Constant used to set the line style of line series and OHLC/HLC line series to solid. |
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 style of line series and OHLC/HLC 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 |
STACKED_BAR
Identifies the series as a stacked bars series. |
static int |
VECTOR
Identifies the series as a vector series. |
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 |
| Method Summary | |
protected void |
finalize()
|
java.awt.Color |
getColor()
Returns the color of this series. |
double[][] |
getMultipleValues()
Returns a bidimensional array of multiple values. |
RegressionLine |
getRegressionLine()
Returns a reference to a RegressionLine object. |
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. |
java.lang.String |
getTitle()
Returns the series title. |
int |
getType()
Returns the series type. |
double[] |
getValues()
Returns series values. |
void |
removeRegressionLine()
Removes the regression line object. |
void |
setColor(java.awt.Color color)
Sets series color. |
void |
setCoordinatesStatus(int[] coordinatesStatus)
Sets the visibility status of a sequence of data points. |
void |
setFont(java.awt.Font font)
Sets series font. |
void |
setMarkLegendBackground(java.awt.Color markLegendBackground)
Sets the color of mark legend background. |
void |
setMarkLegendEnabled(boolean isMarkLegendEnabled)
Enables/disables legends on data points. |
void |
setMarkLegendForeground(java.awt.Color markLegendForeground)
Sets mark legend foreground color. |
void |
setMarkLegendOpacityEnabled(boolean isMarkLegendOpaque)
Enables/disables mark legend opacity. |
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 |
setMultipleValues(double[][] multipleValues)
Sets the values of series whose data points are associated with multiple values, as OHLC series, scatter series and polar series. |
void |
setStartPoint(int startPoint)
Sets a series starting point. |
void |
setTitle(java.lang.String title)
Sets series title. |
void |
setTitleFont(java.awt.Font titleFont)
Sets series title font. |
void |
setTitlePosition(int titlePosition)
Sets the position where a series title is displayed. |
void |
setToolTipContent(java.lang.String[] toolTipContent)
Customizes tooltips contents. |
void |
setValues(double[] values)
Sets series values. |
void |
setValuesQuery(java.lang.String valuesQuery)
Sets a sql query string to access a database and get series values. |
| Methods inherited from class com.jinsight.jetchart.AbstractSerie |
addMultipleValues, addValue, 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 |
| Field Detail |
public static final int LEGEND
public static final int ABOVE_TOP_YAXIS
public static final int BESIDE_TOP_YAXIS
public static final int LINE
getType(),
Constant Field Valuespublic static final int BAR
getType(),
Constant Field Valuespublic static final int STACKED_BAR
getType(),
Constant Field Valuespublic static final int AREA
getType(),
Constant Field Valuespublic static final int IMAGE
getType(),
Constant Field Valuespublic static final int POINT
getType(),
Constant Field Valuespublic static final int BAR_OHLC
getType(),
OHLCBarSerie,
Constant Field Valuespublic static final int BAR_HLC
getType(),
OHLCBarSerie,
Constant Field Valuespublic static final int LINE_OHLC
getType(),
OHLCLineSerie,
Constant Field Valuespublic static final int LINE_HLC
getType(),
OHLCLineSerie,
Constant Field Valuespublic static final int CANDLESTICK
getType(),
CandleStickSerie,
Constant Field Valuespublic static final int ROUNDED_CANDLESTICK
getType(),
CandleStickSerie,
Constant Field Valuespublic static final int VECTOR
getType(),
VectorSerie,
Constant Field Valuespublic static final int SOLID_SQUARE_MARK
public static final int EMPTY_SQUARE_MARK
public static final int SOLID_TRIANGLE_MARK
public static final int EMPTY_TRIANGLE_MARK
public static final int SOLID_DIAMOND_MARK
public static final int EMPTY_DIAMOND_MARK
public static final int SOLID_CIRCLE_MARK
public static final int EMPTY_CIRCLE_MARK
public static final int X_MARK
public static final int SOLID
public static final int DASHED
public static final int SOLID_SQUARE_LEGEND
public static final int MARK_SHAPE_LEGEND
| Method Detail |
public double[] getValues()
AbstractSerie
getValues in class AbstractSerieAbstractSerie.setValues(double[])public double[][] getMultipleValues()
AbstractSerie
getMultipleValues in class AbstractSerieAbstractSerie.setMultipleValues(double[][]),
OHLCSeriepublic void setFont(java.awt.Font font)
font - A Font object.setMarkLegendEnabled(boolean)public int getType()
LINE,
BAR,
STACKED_BAR,
AREA,
IMAGE,
POINT,
BAR_OHLC,
BAR_HLC,
LINE_OHLC,
LINE_HLC,
CANDLESTICK,
ROUNDED_CANDLESTICKpublic RegressionLine getRegressionLine()
RegressionLinepublic void removeRegressionLine()
getRegressionLine() is invoked.
Invoke this method to get rid of the RegressionLine object.
getRegressionLine()public void setCoordinatesStatus(int[] coordinatesStatus)
coordinatesStatus - An integer array of binary values(0 or 1).Graph.setLabels(java.lang.String[]),
LineSeriepublic void setMarksEnabled(boolean isMarksEnabled)
isMarksEnabled - A boolean value(true/false).LineSeriepublic void setMarksColor(java.awt.Color marksColor)
marksColor - A Color object.setMarksEnabled(boolean)public void setMarksStyle(int marksStyle)
marksStyle - An integer value.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_MARKpublic void setMarksWidth(int marksWidth)
marksWidth - An integer value, larger than zero.setMarksStyle(int),
setMarksHeight(int)public void setMarksHeight(int marksHeight)
marksHeight - An integer value, larger than zero.setMarksStyle(int),
setMarksWidth(int)public void setMarkLegendEnabled(boolean isMarkLegendEnabled)
isMarkLegendEnabled - A boolean value(true/false).public void setMarkLegendOpacityEnabled(boolean isMarkLegendOpaque)
isMarkLegendOpaque - A boolean value(true/false).setMarkLegendEnabled(boolean)public void setMarkLegendForeground(java.awt.Color markLegendForeground)
markLegendForeground - A Color object.public void setMarkLegendBackground(java.awt.Color markLegendBackground)
markLegendBackground - A Color object.public void setColor(java.awt.Color color)
color - A Color object.Legend,
setTitlePosition(int)public java.awt.Color getColor()
setColor(java.awt.Color)public void setToolTipContent(java.lang.String[] toolTipContent)
AbstractSerie
setToolTipContent in class AbstractSerietoolTipContent - An array of strings.ToolTip,
ToolTip.setType(int),
ToolTip.setLabel(java.lang.String)public void setTitle(java.lang.String title)
title - A String object.Legend,
setTitlePosition(int),
setTitleFont(java.awt.Font),
LEGEND,
ABOVE_TOP_YAXIS,
BESIDE_TOP_YAXISpublic java.lang.String getTitle()
setTitle(java.lang.String)public void setTitleFont(java.awt.Font titleFont)
Legend.setFont(Font font) method.
titleFont - A Font object.setTitlePosition(int),
LEGEND,
ABOVE_TOP_YAXIS,
BESIDE_TOP_YAXIS,
Legend.setFont(java.awt.Font)public void setTitlePosition(int titlePosition)
titlePosition - An integer valuesetTitle(java.lang.String),
setTitleFont(java.awt.Font),
LEGEND,
ABOVE_TOP_YAXIS,
BESIDE_TOP_YAXISpublic void setStartPoint(int startPoint)
startPoint - An integer number.AbstractSerie.setValues(double[]),
AbstractSerie.setMultipleValues(double[][])
public java.lang.String getSerieMap(java.lang.String[] urls,
int type,
java.lang.String target)
AbstractSerie
getSerieMap in class AbstractSerieurls - An array of strings containing valid urls.type - An integer representing the format type.target - A string object.AbstractSerie.CLIENT_SIDE,
AbstractSerie.SERVER_SIDE_NCSA,
AbstractSerie.SERVER_SIDE_CERN
public java.lang.String getSerieMap(java.lang.String[] urls,
java.lang.String target,
boolean addLabels)
AbstractSerie.setToolTipContent.
getSerieMap method only applies to client-side maps.
urls - An array of strings containing valid urls.target - A string object.addLabels - a boolean value(true/false).AbstractSerie.setToolTipContent(java.lang.String[])
public java.lang.String getSerieMap(java.lang.String[] urls,
java.lang.String target,
java.lang.String[] labels)
AbstractSerie.setToolTipContent.
getSerieMap method only applies to client-side maps.
urls - An array of strings containing valid urls.target - A string object.labels - An array of strings containing data points labels.AbstractSerie.setToolTipContent(java.lang.String[])public void setValues(double[] values)
AbstractSerie
setValues in class AbstractSerievalues - An array of double precision numbers.public void setMultipleValues(double[][] multipleValues)
AbstractSerie
setMultipleValues in class AbstractSeriemultipleValues - A bidimensional array of double precision numbers.OHLCSerie,
ScatterSerie,
PolarSeriepublic void setValuesQuery(java.lang.String valuesQuery)
AbstractSerie
setValuesQuery in class AbstractSerievaluesQuery - A sql query string.GenericGraph.setDriver(java.lang.String),
GenericGraph.setConnection(java.lang.String, java.lang.String, java.lang.String),
AbstractSerie.setValues(double[]),
AbstractSerie.setMultipleValues(double[][])
protected void finalize()
throws java.lang.Throwable
finalize in class AbstractSeriejava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||