|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.GaugeZone
Areas within the tracking zone of a gauge series' needle can be delimited to indicate the state of a gauge series' value. The GaugeZone class takes a start and end values representing the position of both sides of an arc and fills the arc with a given color. The values are taken with respect to the GaugeScale object a GaugeZone is associated with.
GaugeScale,
GaugeSerie| Field Summary | |
static int |
GAUGE_AREA
Constant used to set the radius of the gauge zone arc to the same size of the gauge frame radius. |
static int |
NEEDLE_AREA
Constant used to set the radius of the gauge zone arc to the same size of the needles painted against the GaugeScale object this TargetZone is associated with. |
| Constructor Summary | |
GaugeZone()
Creates a GaugeZone object. |
|
GaugeZone(double startValue,
double endValue)
Creates a GaugeZone object. |
|
| Method Summary | |
protected void |
finalize()
|
void |
setArea(int area)
Sets the area within which a GaugeZone object is painted. |
void |
setColor(java.awt.Color color)
Sets the color of a GaugeZone object. |
void |
setFont(java.awt.Font font)
Sets the font of a GaugeZone text. |
void |
setScale(GaugeScale scale)
Sets the GaugeScale object a GaugeZone is associated with. |
void |
setText(java.lang.String text)
Sets a GaugeZone description text. |
void |
setTextColor(java.awt.Color textColor)
Sets the color of a GaugeZone text. |
void |
setTextPosition(double textPosition)
Sets the distance of the gauge zone text to the gauge zone vertex. |
void |
setValues(double startValue,
double endValue)
Sets the start and end values of a GaugeZone object. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int GAUGE_AREA
public static final int NEEDLE_AREA
| Constructor Detail |
public GaugeZone()
public GaugeZone(double startValue,
double endValue)
startValue - A double precision number.endValue - A double precision number.GaugeScale| Method Detail |
public void setValues(double startValue,
double endValue)
startValue - A double precision numberendValue - A double precision numberGaugeScalepublic void setColor(java.awt.Color color)
color - A Color object.public void setArea(int area)
area - An integer number.GAUGE_AREA,
NEEDLE_AREApublic void setFont(java.awt.Font font)
font - A Font object.public void setText(java.lang.String text)
text - A String object.setTextColor(java.awt.Color),
setTextPosition(double)public void setTextColor(java.awt.Color textColor)
textColor - A Color object.setText(java.lang.String),
setTextPosition(double)public void setTextPosition(double textPosition)
textPosition - A double precision number. It can vary from 0 to 1.setText(java.lang.String),
setTextColor(java.awt.Color)public void setScale(GaugeScale scale)
scale - A GaugeScale object.GaugeScale,
GaugeGraph
protected void finalize()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||