|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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.
Target lines are owned by GraphSet objects. The number of target lines
that can be created and added to a GraphSet object 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. |
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
,
BEHIND
public 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_RIGHT
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 |