|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode com.imsl.chart.ToolTip
public class ToolTip
A ToolTip for a chart element.
This class requires that the chart's component be a subclass of javax.swing.JComponent. The JComponent class can be subclassed to provide different behaviors for displaying ToolTips.
To use, create an instance of ToolTip to activate the ToolTips in a node and in the node's descendants. The ToolTip string is the value of a node's "ToolTip" attribute or, if it is null, the node's "Title" attribute.
Field Summary |
---|
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
Constructor Summary | |
---|---|
ToolTip(ChartNode parent)
Creates a ToolTip node that enables ToolTips on charts. |
Method Summary | |
---|---|
void |
mouseDragged(MouseEvent e)
Part of the MouseMotionListener interface. |
void |
mouseMoved(MouseEvent event)
Part of the MouseMotionListener interface. |
void |
paint(Draw draw)
Paints this node and all of its children. |
void |
pickPerformed(PickEvent event)
Part of the PickListener interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToolTip(ChartNode parent)
parent
- The ChartNode
parent of this node. Do not use the root
chart node for this argument, because it will
normally select only the background node.Method Detail |
---|
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent event)
mouseMoved
in interface MouseMotionListener
public void paint(Draw draw)
paint
in class ChartNode
draw
- the Draw
object to be paintedpublic void pickPerformed(PickEvent event)
pickPerformed
in interface PickListener
event
- a PickEvent
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |