|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.ScrollingLabel
A scrolling label is a text that slides horizontally across a vertical chart,
displaying the chart labels. When the x coordinate of the mouse cursor is equal to the
x coordinate of a label mark placed on the x axis, the scrolling label is displayed.
The scrolling label is useful in that charts displaying a large number of data points
automatically hide most part of the labels to prevent them from overlapping each other,
so the scrolling label overcomes this problem displaying the label corresponding to the
data point the mouse cursor is moving on.
The scrolling label can be displayed at the chart top position, just above the
starting point of the vertical axis, or above the horizontal axis.
If a label has more than one line the scrolling label displays the widest line.
The scrolling label is only displayed if chart is 2D and orientation is vertical. It has no public constructor and can only be accessed through a 'get' method implemented in the Graph class.
Graph.getScrollingLabel()
Field Summary | |
static int |
ABOVE_XAXIS
Constant used to display the scrolling label above the x axis. |
static int |
TOP_YAXIS
Constant used to display the scrolling label at the top of the y axis. |
Method Summary | |
protected void |
finalize()
|
void |
setColor(java.awt.Color color)
Sets the color of the scrolling label. |
void |
setDescription(java.lang.String description)
Sets a single line of text to be prefixed to the scrolling label. |
void |
setEnabled(boolean isEnabled)
Enables/disables the scrolling label. |
void |
setFont(java.awt.Font font)
Sets the font of the scrolling label. |
void |
setPosition(int position)
Sets the scrolling label position. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TOP_YAXIS
public static final int ABOVE_XAXIS
Method Detail |
public void setDescription(java.lang.String description)
description
- A String object.public void setEnabled(boolean isEnabled)
isEnabled
- A boolean value(true/false).Graph.setHorizontalGraphEnabled(boolean)
,
GenericGraph.set3DEnabled(boolean)
public void setColor(java.awt.Color color)
color
- A Color object.public void setPosition(int position)
position
- One of the constants used to set the scrolling
label position.TOP_YAXIS
,
ABOVE_XAXIS
public void setFont(java.awt.Font font)
font
- A Font object.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 |