|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.Note
com.jinsight.jetchart.ToolTip
Tooltips are popup windows displayed when mouse cursor hovers over a series data point. A tooltip displays content associated with a data point, as the corresponding value.
The ToolTip class is instantiated by the GenericGraph class and can only be accessed through a 'get' method implemented in GenericGraph.
The horizontal and vertical coordinates of the mouse cursor are compared
against the bounds of a rectangular area surrounding the coordinates of a
series data point. Should the cursor is found to be within the rectangular
area the tooltip is displayed. This is the default behaviour, but it is
also possible to display multiple tooltips simultaneously if a chart displays
more than one series. In this case, only one dimension of the rectangular
area surrounding a data point is taken into account.
Multiple tooltips are enabled setting the method setMultipleEnabled
to true. When tooltips are simultaneously displayed, they are arranged vertically
or horizontally, depending on chart orientation, aligned in the center of the
chart area and separated by a customizable gap.
3D charts, scatter charts and pie charts do not display multiple tooltips.
GenericGraph.getToolTip(),
setEnabled(boolean),
setMultipleEnabled(boolean),
setGap(int)| Field Summary | |
static int |
ARROW
Constant used to define tooltip pointer as an arrow. |
static int |
GRAPH_CENTER
Constant used to set the position where multiple tooltips are displayed to the center of the entire graph area. |
static int |
GRAPHSET_CENTER
Constant used to set the position where multiple tooltips are displayed to the center of a GraphSet object. |
static int |
LABEL
constant used to set the tooltip content to the respective data point label. |
static int |
LABEL_AND_VALUE
Constant used to set the tooltip content to the respective data point label and value. |
static int |
LINE
Constant used to define tooltip pointer as a line. |
static int |
NONE
Constant used to define tooltip pointer as none. |
static int |
VALUE
Constant used to set the tooltip content to the respective data point value. |
| Fields inherited from class com.jinsight.jetchart.Note |
CENTER, LEFT, RIGHT |
| Method Summary | |
protected void |
finalize()
|
void |
setDelay(int delay)
Sets tooltip delay, in milliseconds. |
void |
setEnabled(boolean isEnabled)
Enables/disables tooltips display. |
void |
setGap(int gap)
Sets the gap between tooltips simultaneously displayed. |
void |
setLabel(java.lang.String label)
Sets a label to prefix tooltip content. |
void |
setMatchingBorderEnabled(boolean isMatchingBorderEnabled)
Enables/disables a matching border color. |
void |
setMultipleEnabled(boolean isMultipleEnabled)
Enables/disables simultaneous display of tooltips. |
void |
setMultipleToolTipsPosition(int multipleToolTipsPosition)
Sets the position where multiple tooltips are centered and displayed. |
void |
setPointerColor(java.awt.Color pointerColor)
Sets tooltip pointer color. |
void |
setPointerType(int pointerType)
Sets tooltip pointer type. |
void |
setTimerEnabled(boolean isTimerEnabled)
Enables/disables tooltip timer. |
void |
setType(int type)
Sets tooltip type. |
| Methods inherited from class com.jinsight.jetchart.Note |
setAlignment, setBackground, setBorderColor, setBorderEnabled, setBorderThickness, setBounds, setDraggingEnabled, setFont, setForeground, setLocation, setOpacityEnabled, setShadowColor, setShadowEnabled, setText |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VALUE
public static final int LABEL_AND_VALUE
public static final int LABEL
public static final int ARROW
setPointerType(int),
Constant Field Valuespublic static final int LINE
setPointerType(int),
Constant Field Valuespublic static final int NONE
setPointerType(int),
Constant Field Valuespublic static final int GRAPH_CENTER
setMultipleToolTipsPosition(int),
Constant Field Valuespublic static final int GRAPHSET_CENTER
setMultipleToolTipsPosition(int),
Constant Field Values| Method Detail |
public void setEnabled(boolean isEnabled)
setToolTipEnabled method of the AbstractSerie
class.
isEnabled - A boolean value(true/false).AbstractSerie.setToolTipEnabled(boolean),
setType(int)public void setTimerEnabled(boolean isTimerEnabled)
isTimerEnabled - A boolean value.setDelay(int)public void setDelay(int delay)
delay - An integer number.setTimerEnabled(boolean)public void setMultipleEnabled(boolean isMultipleEnabled)
isMultipleEnabled - A boolean value(true/false).GenericGraph.set3DEnabled(boolean)public void setMultipleToolTipsPosition(int multipleToolTipsPosition)
com.jinsight.jetchart.Graph, the
only chart context that supports GraphSet objects.
multipleToolTipsPosition - An integer valueGRAPH_CENTER,
GRAPHSET_CENTER,
setMultipleEnabled(boolean),
Graph,
GraphSetpublic void setLabel(java.lang.String label)
AbstractSerie.setToolTipContent.
label - A string containing tooltip label.AbstractSerie.setToolTipContent(java.lang.String[])public void setType(int type)
com.jinsight.jetchart.Graph.
By default, tooltip type is set to VALUE.
type - An integer number.VALUE,
LABEL_AND_VALUE,
LABELpublic void setPointerType(int pointerType)
pointerType - One of the valid tooltip types.ARROW,
LINE,
NONE,
Note.setOpacityEnabled(boolean)public void setPointerColor(java.awt.Color pointerColor)
pointerColor - A Color object.setPointerType(int),
Note.setOpacityEnabled(boolean)public void setGap(int gap)
gap - An integer number.public void setMatchingBorderEnabled(boolean isMatchingBorderEnabled)
isMatchingBorderEnabled - A boolean value(true/false).setPointerType(int),
AbstractSerie.setLegendEnabled(boolean)
protected void finalize()
throws java.lang.Throwable
finalize in class Notejava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||