|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.AbstractSerie
The AbstractSerie class is the super class of all series in the JetChart Library. A series is a sequence of data points depicted in a chart as a line, bars, pie slices, points, etc.
Three classes extends AbstractSerie:
GraphSerie
,
LineSerie
,
AreaSerie
,
BarSerie
,
StackBarSerie
,
PointSerie
,
ImageSerie
,
OHLCBarSerie
,
OHLCLineSerie
,
CandleStickSerie
,
ScatterSerie
,
XYSerie
,
XYLineSerie
,
XYImageSerie
,
BubbleSerie
,
PieSerie
Field Summary | |
static int |
CLIENT_SIDE
Constant used to define generation of a series image map in client-side format. |
static int |
SERVER_SIDE_CERN
Constant used to define generation of a series image map in server-side CERN format. |
static int |
SERVER_SIDE_NCSA
Constant used to define generation of a series image map in server-side NCSA format. |
Constructor Summary | |
AbstractSerie()
|
Method Summary | |
protected void |
finalize()
|
int |
getId()
Returns series id. |
double[][] |
getMultipleValues()
Returns a bidimensional array of multiple values. |
abstract java.lang.String |
getSerieMap(java.lang.String[] urls,
int type,
java.lang.String target)
Creates a chart image map. |
double[] |
getValues()
Returns series values. |
void |
setHighlightColor(java.awt.Color highlightColor)
Sets highlight color. |
void |
setHighlightEnabled(boolean isHighlightEnabled)
Enables/disables highlight of a series data point. |
void |
setId(int serieId)
Sets a series unique ID. |
void |
setLegendEnabled(boolean isLegendEnabled)
Enables/disables a series legend. |
void |
setMultipleValues(double[][] multipleValues)
Sets the values of series whose data points are associated with multiple values, as OHLC series and scatter series. |
void |
setMultipleValues(double[][] multipleValues,
int offset,
int len)
Sets the values of series whose data points are associated with multiple values, as OHLC series and scatter series. |
void |
setSVGURLs(java.lang.String[] svgURLs)
Specifies a list of URLs to be associated with an SVG encoded sequence of series data points. |
void |
setToolTipContent(java.lang.String[] toolTipContent)
Customizes tooltips contents. |
void |
setToolTipEnabled(boolean isToolTipEnabled)
Enables/disables a series tooltips. |
void |
setValueFormat(java.lang.String valueFormat)
Sets the format of values displayed in data points legends and tooltips. |
void |
setValues(double[] values)
Sets series values. |
void |
setValues(double[] values,
int offset,
int len)
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 java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CLIENT_SIDE
getSerieMap(java.lang.String[], int, java.lang.String)
public static final int SERVER_SIDE_NCSA
getSerieMap(java.lang.String[], int, java.lang.String)
public static final int SERVER_SIDE_CERN
getSerieMap(java.lang.String[], int, java.lang.String)
Constructor Detail |
public AbstractSerie()
Method Detail |
public void setId(int serieId)
serieId
- an integer.SerieEvent
,
SerieListener
,
GenericGraph.addSerieListener(com.jinsight.jetchart.SerieListener)
,
Graph.setSerieDraggingEnabled(boolean)
public int getId()
SerieEvent
,
SerieListener
,
GenericGraph.addSerieListener(com.jinsight.jetchart.SerieListener)
,
Graph.setSerieDraggingEnabled(boolean)
public void setValues(double[] values)
values
- An array of double precision numbers.public void setValues(double[] values, int offset, int len)
values
- An array of double precision numbers.offset
- The start offset.len
- The maximum number of values read.public double[] getValues()
setValues(double[])
public void setMultipleValues(double[][] multipleValues)
multipleValues
- A bidimensional array of double precision numbers.OHLCSerie
,
ScatterSerie
public void setMultipleValues(double[][] multipleValues, int offset, int len)
multipleValues
- A bidimensional array of double precision numbers.offset
- The start offset.len
- The maximum number of data read.OHLCSerie
,
ScatterSerie
public double[][] getMultipleValues()
setMultipleValues(double[][])
,
OHLCSerie
public void setValueFormat(java.lang.String valueFormat)
valueFormat
- A pattern string.GraphSerie.setMarkLegendEnabled(boolean)
,
ToolTip
public void setHighlightEnabled(boolean isHighlightEnabled)
setHighlightColor()
method.
Currently, highlight is only supported by a set of subclasses of GraphSerie, like
line series,area series, etc. OHLC bar series, candlestick series, scatter series and pie series
do not support highlight.GraphSerie.setMarksStyle
.isHighlightEnabled
- A boolean value(true/false).setHighlightColor(java.awt.Color)
,
GraphSerie.setMarksStyle(int)
public void setToolTipEnabled(boolean isToolTipEnabled)
setEnabled method of the
ToolTip class is set to true.
- Parameters:
isToolTipEnabled
- A boolean value(true/false).- See Also:
ToolTip.setEnabled(boolean)
public void setToolTipContent(java.lang.String[] toolTipContent)
toolTipContent
- An array of strings.ToolTip
,
ToolTip.setType(int)
,
ToolTip.setLabel(java.lang.String)
public void setHighlightColor(java.awt.Color highlightColor)
highlightColor
- A Color object.setHighlightEnabled(boolean)
public void setLegendEnabled(boolean isLegendEnabled)
setTitle
method. To set the legend symbol color, use the setColor
method.
To display their legends in the legend box, set this method to true.It is useful to display the legend of such series if the tooltip border color is matching respective series color. A series can be identified by comparing the tooltip border color with the legend symbol color.
isLegendEnabled
- A boolean value(true/false).GraphSerie.setColor(java.awt.Color)
,
GraphSerie.setTitle(java.lang.String)
,
ToolTip.setMatchingBorderEnabled(boolean)
public void setValuesQuery(java.lang.String valuesQuery)
valuesQuery
- A sql query string.GenericGraph.setDriver(java.lang.String)
,
GenericGraph.setConnection(java.lang.String, java.lang.String, java.lang.String)
,
setValues(double[])
,
setMultipleValues(double[][])
public void setSVGURLs(java.lang.String[] svgURLs)
svgURLs
- An array of strings.ChartEncoder.svgEncode(java.io.File, boolean, int)
public abstract java.lang.String getSerieMap(java.lang.String[] urls, int type, java.lang.String target)
urls
- An array of strings containing valid urls.type
- An integer representing the format type.target
- A string object.CLIENT_SIDE
,
SERVER_SIDE_NCSA
,
SERVER_SIDE_CERN
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |