|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.TargetLine
This class implements the properties and methods of a target line.
A target line is used to compare series data points values against an
indicator, which represents a goal to achieve or a limit to be avoided.
The number of target lines that can be created and added to a chart
is unlimited.
GraphSet,
GraphSet.addTargetLine(com.jinsight.jetchart.TargetLine)| Field Summary | |
static int |
ABOVE_CENTER
Constant used to place the target line text centered above the target line. |
static int |
ABOVE_LEFT
Constant used to place the target line text above and to the left of the target line. |
static int |
ABOVE_RIGHT
Constant used to place the target line text above and to the right of the target line. |
static int |
BEHIND
If chart is 2D, this constant is used to place a target line behind the grid and all series. |
static int |
BELOW_CENTER
Constant used to place the target line text centered below the target line. |
static int |
BELOW_LEFT
Constant used to place the target line text below and to the left of the target line. |
static int |
BELOW_RIGHT
Constant used to place the target line text below and to the right of the target line. |
static int |
FRONT
If chart is 2D, this constant is used to place a target line in front of the grid and all series. |
| Constructor Summary | |
TargetLine()
Default constructor of the TargetLine class. |
|
TargetLine(double value)
Constructor of the TargetLine class. |
|
| Method Summary | |
protected void |
finalize()
|
void |
setColor(java.awt.Color color)
Sets the color of a target line. |
void |
setFont(java.awt.Font font)
Sets the font of the target line text. |
void |
setHorizontalEnabled(boolean isHorizontalEnabled)
Sets the orientation of a target line to horizontal or vertical. |
static void |
setPosition(int position)
Sets the position where all target lines are painted. |
void |
setText(java.lang.String text)
Sets the text to be displayed next to the target line. |
void |
setTextColor(java.awt.Color textColor)
Sets the color of the target line text. |
void |
setTextPosition(int textPosition)
Sets the target line text position. |
void |
setThickness(int thickness)
Sets the target line thickness. |
void |
setValue(double value)
Sets the target line value. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ABOVE_CENTER
public static final int ABOVE_LEFT
public static final int ABOVE_RIGHT
public static final int BELOW_CENTER
public static final int BELOW_LEFT
public static final int BELOW_RIGHT
public static final int FRONT
public static final int BEHIND
| Constructor Detail |
public TargetLine()
public TargetLine(double value)
value - A double precision number.| Method Detail |
public void setValue(double value)
value - A double precision number.public void setThickness(int thickness)
thickness - An integer number, equal to or greater than 1.public void setColor(java.awt.Color color)
color - A Color object.public static void setPosition(int position)
position - An integer value.FRONT,
BEHINDpublic void setText(java.lang.String text)
text - A String object.public void setTextColor(java.awt.Color textColor)
textColor - A Color object.setText(java.lang.String)public void setFont(java.awt.Font font)
font - A Font object.setText(java.lang.String)public void setTextPosition(int textPosition)
textPosition - An integer number.setText(java.lang.String),
ABOVE_CENTER,
ABOVE_LEFT,
ABOVE_RIGHT,
BELOW_CENTER,
BELOW_LEFT,
BELOW_RIGHTpublic void setHorizontalEnabled(boolean isHorizontalEnabled)
com.jinsight.jetchart.Graph. This chart context
automatically sets target lines orientation to match the
orientation specified for the entire graph. This method only
takes effect with scatter charts.
isHorizontalEnabled - A boolean value(true/false)Graph,
ScatterGraph,
GraphSet.addTargetLine(com.jinsight.jetchart.TargetLine),
ScatterGraph.addTargetLine(com.jinsight.jetchart.TargetLine)
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 | |||||||||