Class ChartCoordinateView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ChartCoordinateView extends JPanel
A view that displays the data value of the point the mouse pointer currently is over the Chart2D component within two JTextField instances.

Version:
$Revision: 1.10 $
Author:
Achim Westermann
See Also:
  • Field Details

    • m_chart2D

      protected Chart2D m_chart2D
      The chart to display the values from.
    • m_xView

      protected JTextField m_xView
      The x value view.
    • m_yView

      protected JTextField m_yView
      The y value view.
  • Constructor Details

    • ChartCoordinateView

      public ChartCoordinateView(Chart2D chart)
      Creates an component that will contain two text fields that display the chart value (x,y) when moving the mouse over the chart component.

      Parameters:
      chart - the chart to listen to for mouse events.
  • Method Details