|
||||||||||
| 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.GaugeSerie
A gauge chart indicates the current value using a needle that points to
the corresponding position within a scale range. The class GaugeSerie
implements properties to provide the functionality of a needle, as color,
style, arrow width and length, etc.
An unlimited number of GaugeSerie objects can be added to the context of
a gauge chart, using a single scale or multiple scales. It is also possible
to associate a gauge led with a gauge series, to indicate data state with
respect to a threshold value.
GaugeLed,
GaugeScale| Field Summary | |
static int |
ARROW
Constant used to set the style of a gauge series' needle to an arrow. |
static int |
EMPTY_ARC
Constant used to set the style of a gauge series' needle to an empty arc. |
static int |
FILLED_ARC
Constant used to set the style of a gauge series' needle to a filled arc. |
static int |
LINE
Constant used to set the style of a gauge series' needle to a line. |
| Fields inherited from class com.jinsight.jetchart.AbstractSerie |
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA |
| Constructor Summary | |
GaugeSerie()
Default constructor of the GaugeSerie class. |
|
GaugeSerie(double value)
Constructor of the GaugeSerie class. |
|
GaugeSerie(double value,
java.lang.String title)
Constructor of the GaugeSerie class. |
|
| Method Summary | |
protected void |
finalize()
|
java.lang.String |
getSerieMap(java.lang.String[] urls,
int type,
java.lang.String target)
This method is part of the abstract implementation of class AbstractSerie, and is only implemented here to make GaugeSerie a concrete class. |
java.lang.String |
getSerieMap(java.lang.String url,
int type,
java.lang.String target)
Creates a chart image map. |
java.lang.String |
getTitle()
Returns the series title. |
void |
setArrowColor(java.awt.Color arrowColor)
Sets the arrow color of a gauge series with the needle style set to ARROW. |
void |
setArrowLength(int arrowLength)
Sets the length of a needle's arrow. |
void |
setArrowWidth(int arrowWidth)
Sets the width of a needle's arrow. |
void |
setColor(java.awt.Color color)
Sets the needle color. |
void |
setGaugeLed(GaugeLed gl)
Sets the GaugeLed object a GaugeSerie is associated with. |
void |
setNeedleStyle(int needleStyle)
Sets the needle style. |
void |
setScale(GaugeScale scale)
Sets the GaugeScale object a GaugeSerie is associated with. |
void |
setSVGURL(java.lang.String svgURL)
Specifies a URL to be associated with a gauge series' data point of an SVG encoded gauge chart. |
void |
setSVGURLs(java.lang.String[] svgURLs)
This method is implemented in class AbstractSerie and has no effect with the GaugeSerie class. |
void |
setTitle(java.lang.String title)
Sets the title of a GaugeSerie object. |
void |
setToolTipContent(java.lang.String toolTipContent)
Customizes tooltip content. |
void |
setToolTipContent(java.lang.String[] toolTipContent)
This method is implemented in class AbstractSerie and has no effect with the GaugeSerie class. |
void |
setValue(double value)
Sets the needle value of a GaugeSerie object. |
void |
setValues(double[] values)
Sets series values. |
| Methods inherited from class com.jinsight.jetchart.AbstractSerie |
addMultipleValues, addValue, getId, getMultipleValues, getValues, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setMultipleValues, setToolTipEnabled, setValueFormat, setValues, setValuesQuery |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ARROW
public static final int LINE
public static final int FILLED_ARC
public static final int EMPTY_ARC
| Constructor Detail |
public GaugeSerie()
public GaugeSerie(double value)
value - A double precision number.
public GaugeSerie(double value,
java.lang.String title)
value - A double precision number.title - A String object.setValue(double)| Method Detail |
public void setValue(double value)
value - A double precision number.public void setValues(double[] values)
AbstractSerie
setValues in class AbstractSerievalues - An array of double precision numbers.public void setSVGURL(java.lang.String svgURL)
svgURL - A String object.ChartEncoder.svgEncode(java.io.File, boolean, int)public void setSVGURLs(java.lang.String[] svgURLs)
setSVGURLs in class AbstractSeriesvgURLs - An array of strings.AbstractSerie,
setSVGURL(String)public void setToolTipContent(java.lang.String toolTipContent)
toolTipContent - A String object.ToolTip,
ToolTip.setLabel(java.lang.String)public void setToolTipContent(java.lang.String[] toolTipContent)
setToolTipContent in class AbstractSerietoolTipContent - An array of strings.AbstractSerie,
setToolTipContent(String)public void setTitle(java.lang.String title)
title - A String object.public java.lang.String getTitle()
setTitle(java.lang.String)public void setColor(java.awt.Color color)
color - A Color object.public void setNeedleStyle(int needleStyle)
needleStyle - One of the constants used to set the needle style.ARROW,
LINE,
FILLED_ARC,
EMPTY_ARCpublic void setArrowColor(java.awt.Color arrowColor)
arrowColor - A Color object.setNeedleStyle(int)public void setArrowWidth(int arrowWidth)
arrowWidth - An integer value, greater than 1.setNeedleStyle(int)public void setArrowLength(int arrowLength)
arrowLength - An integer value, greater than 1.setNeedleStyle(int)public void setScale(GaugeScale scale)
scale - A GaugeScale object.GaugeScale,
GaugeGraphpublic void setGaugeLed(GaugeLed gl)
gl - A GaugeLed object.GaugeLed
public java.lang.String getSerieMap(java.lang.String url,
int type,
java.lang.String target)
url - The url to be associated with the data point.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,
int type,
java.lang.String target)
getSerieMap in class AbstractSerieurls - An array of strings containing valid urls.type - An integer representing the format type.target - A string object.AbstractSerie,
getSerieMap(String,int,String)
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 | |||||||||